You will need a recent Apricot build to and a graphics card that supports GLSL to follow this tut.
In this tut I will show you how to use the new GLSL shaders and nodes to make sweet looking skydomes like this…Which you can see right in the viewport.
here’s another pic showing the wireframe and the node setup
So right now you are thinking… but can’t I just make a skybox or a dome and map a picture to it?
…Well yes you can… but I like my skies to be real domes with a gradient I can control.
If I can control the gradient colour I can makes lots of different skies just by editing the gradient right in blender on the fly.
I also hate horrible seems. Unfortunately Sphere mapping creates distortion and seams.
Yes you can hide the seams a bit by doing various tweeks in gimp and photoshop but bugger that.
This can save oodles of time. It should be possible to bake this into a texture map( I haven’t tested this yet tho).
That is if you need to speed up the game because GLSL is to slow on your card.
There’s a tut on blendernation that show’s you how to do this when you use the GLSL shaders to mix textures to paint a head.
This method avoids seams because I use the global co-orindates to map the gradient to the dome.
Of course if the sphere mapping button worked in the game engine.
I.E you can map a sphere to an object without using UV’s…
You would see no seam if your map was a perfectly tiling panoramic image,
Even if your dome is low poly. But until then this is how I do it.
Also using gradients that are mapped to the global co-ordinates can let you make cool fire effects.
If the gradient and texture bug has been fixed in the nodes.
I will test that out later.
One disadvantage of using global co-ordinates is that if you move the sky dome… up or down.
The gradient stays put.
This can also be an advantage when making smoke particles etc.
It might be possible to get the same effect using the local co-ordinates.
This would mean that the gradient moves with the dome… should you want to parent it to the player or something.
Enough theory… on with the tut
1.Make a new blendfile.
Go to the top view
Create an ico sphere with 3 subdivisions. (you might be able to get a away with less)
3.Scale up the sphere to the following values.
The shape is more ellipsoid… generally this looks a lot better.
4.You might notice some camera clipping issues because this is a mighty huge skydome.
To fix that do the following.
Click on the view menu button… choose view properties.
On the menu that pops up select the clip end value.
Enter 100000 or the some huge number…
If you enter higher than a certain number it just defaults to the highest value.
5.Rename the sphere to skydome_01
Add a new material and call it skydome_01.
Set it be shadeless.
Make sure you’ve turned on Blender GLSL materials found under the game menu.
Your scene up until this point should look like this.
6.To see the dome in the bkrnd we need to flip the normals.
So press tab to go into edit mode
Turn on draw normal… so you can see if you have actually flipped them
Press flip normal.
In the image below BEFORE I’ve flipped the normals.
How the normals look after they have been inverted
7.So if you zoom back in to the scene, you should see the grey sky dome appearing in the bkrnd behind everything.