POV-Ray : Newsgroups : povray.advanced-users : sunpos.inc : Re: sunpos.inc Server Time
26 Apr 2024 23:21:55 EDT (-0400)
  Re: sunpos.inc  
From: Bald Eagle
Date: 6 Mar 2018 13:00:01
Message: <web.5a9ed70d9d3ded52c437ac910@news.povray.org>
Here's what I used for my watch/compass scene

#declare Feet = 12;
#declare Miles = 5280*Feet;
// radius of Earth
#declare EarthRad = 3959*Miles;
#declare SunRad = 432288*Miles;
#declare SunDist = 92960000*Miles;

#declare SunCorrection = SunDist/1000000000; // correct distance to sun defined
in sunpos.inc

//#####################################

// North +z
// South -z
// East +x
// West -x



#declare Year = 2016;
#declare Month = 7;
#declare Day = 11;
#declare Hour = int(clock);  // 24-hour clock
#declare Minute = (clock-int(clock))*60;
// (UTC-05:00) Eastern Time (US & Canada)
// (+1 hour =  +15 deg)
#declare Lstm = 15*(-5);
// Hopkinton / Contoocook, NH
#declare LAT = 43.2087409;
#declare LONG = -71.7123404;

light_source {SunPos(Year, Month, Day, Hour, Minute, Lstm, LAT,
LONG)*SunCorrection rgb <1, 1, 0> parallel point_at <0, 0, 0>} // added
'parallel' and 'point_at <0, 0, 0>'


Post a reply to this message

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