Page 1 of 1

[SOLVED]Question about Skybox Rotations

Posted: Fri Aug 22, 2014 8:33 am
by GoodDayToDie!!
Hi guys,

I am using the battleaxe skybox in a new is82 map. However, now that the shadows for the map have been generated, the skybox needs to be rotated 180 degrees. I tried renaming the 6 files for the skybox. But that didn't do anything.
Example:
The 6 files were named as such:
1
2
3
4
5
6

I renamed them to this:
3
4
5
6
1
2

The funny thing is that the result was the same. As if nothing changed! The damn sun still faced the same direction!

Any links or suggestions towards a fix amigos?

Re: Question about Skybox Rotations

Posted: Fri Aug 22, 2014 3:26 pm
by Apache Thunder
Hold up. You don't need to mess with the RS files or create custom mesh. If all you want is to change the rotation on a skybox, you can do this with just a simple code edit. It's found in the SkyAndSun.con file near the bottom of the file:

Code: Select all

sky.setRotAngle 180
Your map likely already has this command. if it was set to 0, or left unspecified, then add 180. If it has 180 already, set it to zero. If it has 90 or something else, use a calculator and add/subtract 180 from what ever number it does have.

Also, if you want to alter the "height" of the skybox. (aka, you want to raise or lower the horizon level), this command you can also change:

Code: Select all

sky.changeOfsSkyHeight 0
Many maps already have this code. Higher numbers mean a higher skybox. Smaller numbers mean it is lower on the map. You won't need large values. Most maps usually have this set in the range of 0-200. Unless you want something odd, you shouldn't have to exceed that. :P

By the way, had you succeeded in flipping the textures wtih the RS file, you would have found that the top and bottom textures no longer line up with the sides of the cube properly which will break the illusion of a sky dome and end up looking like a cube with mismatching textures. It would have never worked out for you that way...Unless you used Photoshop or something like that to rotate the top and bottom textures.

The code above will let you fine tune rotation where as texture flipping only allows rotations of 90 degree steps with no way of doing anything in the middle unless you get really really fancy with photo shop. A lot of unnecessary work for a simple code change. :D

Re: Question about Skybox Rotations

Posted: Fri Aug 22, 2014 5:11 pm
by GoodDayToDie!!
Thank you sir!

Image