POV-Ray : Newsgroups : povray.general : Simulating curvature of the Earth : Re: Simulating curvature of the Earth Server Time
29 May 2024 04:31:04 EDT (-0400)
  Re: Simulating curvature of the Earth  
From: Alain
Date: 20 Aug 2015 19:14:15
Message: <55d65f47$1@news.povray.org>
Le 15-08-20 16:24, Mike Horvath a écrit :
> I have a town model with the horizon in the background and a high camera
> angle. However the horizon is simply an infinite plane. Is there a way
> to simulate the Earth's curvature? Can I use an actual sphere, or is
> povray not precise enough to do that?
>
>
> Mike

Quick and dirty: Use a large disk for your ground. In some cases, this 
may be good enough.

Use a large flattened sephere. This can prevent, or at least reduce, 
some problems with large scale differences between objects.

Use an actual sphere of the appropriate radius translated down by it's 
radius so that the area of interest can be centered around the origin. 
In this case, having milimetric scalled objects in your scene can cause 
some problems: the ground could disapears or have holes, or some small 
objects can go missing, get shifted around or have serious shading isues.

Hard core: Compile your version using tripple or quadruple precision FP 
numbers. Reduce the epsilon value accordingly to the increased 
presision, and very probably have the render time sky rocket.


Alain


Post a reply to this message

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