POV-Ray : Newsgroups : povray.bugreports : object too far from camera is not shown : Re: object too far from camera is not shown Server Time
12 Nov 2024 14:39:21 EST (-0500)
  Re: object too far from camera is not shown  
From: Le Forgeron
Date: 18 Apr 2020 12:16:08
Message: <5e9b27c8$1@news.povray.org>
Le 18/04/2020 à 16:15, guarnio a écrit :
> I hope someone will be able to help me with what the problem is,
> Thanks in advance.

Old, and known, problem: precision and range of value is limited on
computers.

Do not model the solar system with such precision, not with such small
units.

Precision is good around 0, but is terrible for any other value.

Imagine there is a 4 digits precision, you can keep track of 1.000,
0.009 and 0.001, but 1.009 is the same as 1.000.

Precision of float is 7 digits, precision of double is 11 digits.

Kilometre is not suitable for your model in povray.
 (150 000 000 in your code)

The radius of Earth is 6371 km; that could be the unit sphere, as long
as you do not want to model more than Mars orbit.

If it bother you to divide everything with non-round number, use the
next bigger value (10 000km = 1 pov-unit)

Last hint: take the habit to put comments in your code when defining
magic value (such as 150000000) to remember the unit of such quantity.
( 696342 is the the radius of sun, in km; approximatively)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.