Hopefully a problem with an easy solution:
I'm making a Tatooine-Styled map at the moment and just added the 2 suns for the tat2 skydome.
Now my problem is they are at a location where I can't see them at all, so I need to move the sun to the other side of the map. Is it possible? Where does the game know from where to add the suns? Nulls in the skydome model?
How do I change the location of the sun? [Solved]
Moderator: Moderators
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: What a sunny world...
The position of the sun fx ingame is determined by the angles set in the ABC.fx file, there are no hardpoints in a skydome msh. The angles are calculated from the center of your world(0,0,0), the same place where your camera is by default when you first launch ZE and load your wld. Play around with the angles until you get the result you desire.
Example:
The altitude angle adjusts the sun on a vertical arc like a rainbow and the azimuth angle rotates the arc on the horizon.
In this example the sun will appear directly above your map:
In this example it will appear on the right side of your map:
In this example it will appear on the left side of your map:
In this example it will appear in front of your map in a clockwise rotation on Y from the previous test:
Example:
Code: Select all
Angle(125.000000, 120.000000);Code: Select all
Angle([altitude angle], [azimuth angle]);In this example the sun will appear directly above your map:
Code: Select all
Angle(180.000000, 0.000000);Code: Select all
Angle(100.000000, 0.000000);Code: Select all
Angle(260.000000, 0.000000);Code: Select all
Angle(260.000000, 90.000000);-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: What a sunny world...
Okay I will try around a bit. Thanks.
Still, if anybody knows something about this that might be helpful, please post.
Still, if anybody knows something about this that might be helpful, please post.
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: What a sunny world...
Sorry but, once you get any possitive results would you post the code? My northern dune sea map needs those 2 suns as well and I can't figure how to put them, the light is in the right angle but the suns are not visible at all.
Thanks, and good luck.
Thanks, and good luck.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: What a sunny world...
The 2 suns were never a problem. Just get the code from the tat2.fx file.
