Ricebug on 28/1/2016 at 21:10
I seem to remember someone posting a picture of how the sun/moon is positioned on a globe grid. Does anyone have it?
Is straight up 0/0? Looks like it according to my map. Moon is directly over my head. But I need it just to the left, and I can't get that sucker there.
Yandros on 28/1/2016 at 21:30
Did you mean to post this in The Editor's Guild?
Latitude runs from 0° (straight up) to 90° (equator), and from there to 180° is below the horizon although you can see an object at 95-100° from up in a building or something.
Longitude goes from 0° (south) to 90° (east) to 180° (north) to 270°(west) and back to south.
"Just to the left" will require a positive latitude, like 5-10 degrees at least, as if you leave it 0° it's just sitting directly overhead. To the left depends on the direction that's straight ahead, if it's south then 5-10-15° longitude would do it. Once you have the sun or moon where you want it, be sure to use NV's sunlight calculator to get the right vector for the sunlight setting, if you're planning to use it.
downwinder on 29/1/2016 at 00:01
with new info on possible new planet,i would say the entire astro stuff will have to be changed
Tannar on 29/1/2016 at 00:29
I moved this to TEG.
Ricebug on 29/1/2016 at 01:42
Something's screwy. No matter what number I put in longitude, the moon stays at 0,0. The graphic rotates on its own axis, not on the earth's. This should be the rotation but rotation and longitude both act the same.
Latitude causes it to move front to back (if the player is facing North-South). Bottom Line: the only movement is on the latitudinal axis.
Here's a screenie. The orange moon is celestial object #2, set at 0,0. The white one (the one I'm trying to move) is celestial object #1, set at 0,45.
Inline Image:
http://www.bogadocious.com/temp/moon.png
Yandros on 29/1/2016 at 02:51
Like I tried to say above, if you don't set latitude to a non-zero number, longitude won't do anything, because your moon is sitting at the top pole of the sky sphere so the longitude makes no difference (think of being at the north pole and trying to rotate around the earth, you don't go anywhere). Where are you trying to locate the moon exactly?
Ricebug on 29/1/2016 at 16:15
Thanks, Russ. I finally got it right. What a pain! The reason for the exactness is I'm using a skybox that has a distinct and bright sun in the sky. In order to get the shadows to case correctly (NV's Sunlight Calculator to the rescue) I was using a moon object, trying to move it to where the skybox sun was sitting.
Yandros on 29/1/2016 at 18:27
Ah, I understand. That's a great method for figuring out the location of the skybox sun so you can get the right sunlight vector.