sun reference

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

sun reference

Post 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 ?
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post 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.
Imagination
Sergeant
Posts: 56
Joined: Thu May 04, 2006 7:35 am

Post by Imagination »

It was vondercrunch who had a tut on this but the old link is down :cry:
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :)
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

That's a neato approach too 8-)
Image
Post Reply