How can I make a skybox/skysphere in XNA 4.0?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
Use one of the following tutorials to make a skybox in XNA: http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Skybox.php http://iloveshaders.blogspot.com/2011/05/creating-sky-box.html http://www.toymaker.info/Games/XNA/html/xna_skybox.html http://rbwhitaker.wikidot.com/skyboxes-1 Basically, you want to texture the inside of a sphere or cube. Then draw that sphere or cube with the camera in the center. Always have the camera in the center. |
||||
|
|
|
The easiest way to make a skybox is with a cubemap. You can texture any arbitrary geometry you wish (it doesn't even have to be box-shaped), center it on the view position, apply rotations easily if you wish, etc. |
|||
|
|