POV-Ray : Newsgroups : povray.animations : sunpos.inc and sunrise, sunset : Re: sunpos.inc and sunrise, sunset Server Time
8 Jul 2024 16:33:44 EDT (-0400)
  Re: sunpos.inc and sunrise, sunset  
From: davidafisher
Date: 8 Nov 2002 14:50:02
Message: <web.3dcc1449dccea13167ebf1b60@news.povray.org>
I think I found my own answer.

Declared objects don't have center vectors but bounding boxes. to find the
center of the Sun object in the above code I've applied the following

#declare SunMin = min_extent ( Sun );
#declare SunMax = max_extent ( Sun );
#declare SunVector =
<(SunMin.x+SunMax.x)/2,(SunMin.y+SunMax.y)/2,(SunMin.z+SunMax.z)/2>;

Now to sweat the next problem!


Post a reply to this message

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