Page 1 of 1

sun reference

Posted: Mon Feb 12, 2007 2:30 am
by ViPER
I struggle with setting up the sun direction to match a point on the skybox texture. Anybody have a good method or suggestion for setting the sun direction ? reference starting point ?

Posted: Mon Feb 12, 2007 4:39 am
by neillomax
A while back somebody mentioned spawning an indy crate where you want the sun to be.... to get a reference point I guess. Didn't need to do it though.

Someone also posted an article from the rujacan projects' websight... not spelled right, I know. That might help you also.

It had a half globe with reference points to help make it easier.

Posted: Mon Feb 12, 2007 9:20 am
by Imagination
It was vondercrunch who had a tut on this but the old link is down :cry:

Posted: Mon Feb 12, 2007 10:26 am
by jv_map
Trial and error :P .. do quick compiles (no lighting) and look where the sunflare is... should get it just right in about 4 tries :)

Posted: Wed Feb 14, 2007 10:55 pm
by ViPER
Ah.... this works well.

spawn a marker (or a single player spawn) at 0 coords on your map or use viewpos to get your player to 0 coords (harder).

point your crosshares at the point you want your sun and use coord.

the angles provided with coord are the proper angles for sundirection.

Posted: Thu Feb 15, 2007 9:20 am
by jv_map
That's a neato approach too 8-)