Creating a Simple 3D Game with XNA/Creating a Sky Sphere

From Wikibooks, open books for an open world
Jump to: navigation, search

Creating Your World[edit]

A sky sphere is the boundary surrounding your world, projecting an image which appears to go into the horizon. Creating the sphere itself in Blender is easy. Just create a new UVSphere, with 16 segments and rings. Don't worry about the size for now, we can adjust this in XNA.

Blender SkySphere1.png

Next up, using the same process as with the eye previously, mark the seam down the middle of the sphere, and unwrap it.

Blender SkySphere2.png

With this, paint a simple sea texture onto the image.

Blender SkySphere3.png

And map it onto the sphere. Finally, with all the faces selected, push space and select 'Edit'/'Normals'/'Flip'.

Blender SkySphere4.png

What this will do is project the texture inside the sphere instead of outside as with a normal model, allowing you to see the texture if your camera is placed inside it.

Next, export it as before by selecting the object and using the FBX export script.