Quadrant I and II should produce something between 0 and -1, and the other 2 quadrants should produce something between 0 and 1Įg, with my box, Sun Heading Angle = 64.6. Quadrant II, z=sin(-90) (sun heading angle will be negative, so negative in front will make positive) Anything between 0 and 45° will be between 0 and 1)įor z, let there be 4 quadrants, like in this picture (the quadrants are what the roman numerals are) Y = tan(24.7) = 0.46 (make sure whatever you are using is set to degrees not radians.
Using sun altitude, y = tan (sun altitude value) Let x=1 if sun heading is on right side, and let x=-1 if sun heading is on left side We have to work out the sun vector from the Sun heading and Sun altitude values. Sky_n a go of your track and test out your skybox. Sky_x (x is first letter of direction, eg x=n if north. Open up the lighting file, and get the game to load your images by adding lines like these: (8) - Put the 5 images into your track folder. For 0005 (up), do not copy and paste the fog colour into it. Open up your 0002, 0003, 0004 images (north, east, south), copy and paste the fog colour from that separate file into your skybox image, make sure it is positioned to the bottom, and repeat what was done above. If you dont understand, dont worry, it will work. I think that the game's skybox's edges overlap, and from testing, 1010x1010 pixels seems to be the right size. Heres what we should have (note: I've darkened the pasted image so you can see what i did. Save image as something like sky_west.png. Paste what you copied now, center it (should automatically center anyway).
Now resize the base image to 1024x1024 pixels. If you are using photoshop, you might want to make an action out of this (google it). Go back to the 0001 image, and flatten it (so the fog colour and skybox image are one layer). Should be like this:Ĭopy and paste this layer into a blank document, as you will need this for the remaining 3 side images. Then, from the half way mark, do a gradient fade upwards, about 1/4 of the image up. From about halfway to the bottom, fill with this colour. These will be needed for the games fog colour. (5) - The images rendered will be these directions Could take a while depending on your computer. Find your script, and let it render the 5 images. Once you've edited these lines, save the script. These will be saved as Filename0001.bmp, Filename0001.bmp etc. Things to edit: Owner = your computer sign in nameįolder = Folder name (if not on the desktop, edit path to suit)įilename = Name of the images. InitAnim "C:\Documents and Settings\Owner\Desktop\Folder\Filename", 1 This will determine the location and name of the rendered images. With that downloaded script you have, you will need to edit the second line. (4) - Once you have something you like, its time to export. (3) - Have a play around with Atmosphere settings (the blue-white gradient) and Cloudscape (the cloud image). But whatever setting you render with, write down the values for Sun heading and Sun altitude, these will be needed for your track. You can move this round later if you like. Move these around till you get a setting you think is right. The left one is sun direction, the right is sun elevation. There will be 2 pictures, each with a red line on them. Click on the Sun icon on the left hand panel. Move the three lined thingy round to look at different parts of your sky, as that is the camera. Hit 'Render Preview' to have a look at what you have. This will make your box have a higher quality, but will take longer to render. Optional settings: Go into 'render settings', and increase quality sliders. For this tutorial, we are going to forget about land, so untick 'land' (you can try adding land later on at your own will. On the Rendering Control Panel, set 'image size' to 960px x 960px. I know this looks like alot of work, but once you know what you are doing, it will take like 10 minutes every time you need to make one So here's a tutorial to make a seamless skybox. Everyone seems to be releasing tracks without custom skies, unless I made them or you are talking about Wilson's tracks.