|
|
Alain <kua### [at] videotronca> wrote:
> > ----------------what does the code blocks below
> > do?---------------------------#declare EarthRadius = 6367; //radius in km
> > #declare EarthRadius = 6367*0.621371; //radius in mi
>
> Nothing at all as those variables are never used.
> In some other cases, those are usefull for some reason, like actually
> following Earth's curvature.
You were too hasty, my friend.
EarthRadius is used in the S2C macro as the multiplier for the trig functions.
S2C converts Sperical coordinates (lat, long) to Cartesian (x, y, z) and
C2S obviously does the reverse.
I just coded up both for completeness.
If you use layered textures with an alpha channel, you don't need to code up
separate boxes for your maps. You can just sequentially apply each texture to
the box, with the last texture defined being "on top" - just like applying
successive layers of paint.
See the docs or Lohmueller's site, or maybe the standard insert menu.
Post a reply to this message
|
|