sun postion/direction
by Very Interactive Person · in Artist Corner · 08/11/2002 (4:45 am) · 7 replies
My sun is at the horizon between sky image 1 and sky image 2. Can someone tell me what the settings would be for the sun? I can't figure it out.
#3
08/12/2002 (4:11 am)
i used Bryce ;(
#5
In addition to the tutorials that Matthew referred to above, Richard O'Brien and I submitted a "Utilities for Mappers" resource that includes a sun vector calculator:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2565
Here is a screen grab showing the normalized vector based on azimuth and altitude:
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/utility_menu.jpg
Being normalized, it's ready to put directly into the editor.
08/16/2002 (4:00 pm)
What altitude for the sun Ward?In addition to the tutorials that Matthew referred to above, Richard O'Brien and I submitted a "Utilities for Mappers" resource that includes a sun vector calculator:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2565
Here is a screen grab showing the normalized vector based on azimuth and altitude:
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/utility_menu.jpg
Being normalized, it's ready to put directly into the editor.
#6
What I found is reliable, but crazy. It seems to work roughly like this:
if (x > abs(y)) { draw_correct_shadows(); } else { screw_up(); }
in other words: as long as x is greater than the absolute value of y, everything is fine. e.g. x=0.4 works with both y=0.3 and y=-0.3
However, x=0.3 works with neither y=0.4 nor y=-0.4
I'm not familiar with the Torque code very much (except for some primitive scripting), but maybe this helps someone to find the problem.
08/18/2002 (4:55 am)
I've hit the same problem, and done some experiments. Namely, I've played with the x and y values and tried to spot a pattern.What I found is reliable, but crazy. It seems to work roughly like this:
if (x > abs(y)) { draw_correct_shadows(); } else { screw_up(); }
in other words: as long as x is greater than the absolute value of y, everything is fine. e.g. x=0.4 works with both y=0.3 and y=-0.3
However, x=0.3 works with neither y=0.4 nor y=-0.4
I'm not familiar with the Torque code very much (except for some primitive scripting), but maybe this helps someone to find the problem.
#7
08/18/2002 (5:47 am)
tnx Desmond, I'll check that out. I dunno the exact altitude... but now I think I found a way to kow that... I should do some more testing with this.. heheh
Torque Owner Very Interactive Person