Sign in to follow this  
Gl_Terminator

Where i cant get xna skyboxes

Recommended Posts

[quote name='DarklyDreaming' timestamp='1318352376' post='4871502']
No such thing -- a skybox is a skybox; any kind will do.
[/quote]

NO, Ive download skyboxes from internet and they didnt worked, i dont remember the name now but xna have a a special texture format for skyboxes and not all are the same

Share this post


Link to post
Share on other sites
A skybox is a simple cube mesh rendered behind the actual scene, with a texture on it like every other mes. I dont know XNA so good but I highly doubt it has a special texture format. Png, dds, jpg, choose as you like.

Still cant get it to work? Can you render a cube with a texture? If yes, then upscale the cube, disable z-buffer and render it as first object (reactivate z after that). That what a skybox is.

Share this post


Link to post
Share on other sites
The typical skybox uses a cube map texture, which is not at all specific to XNA. A cube map consists of 6 images (hence, the name cube), so you can also take 6 separate images (jpegs, pngs, etc) and load them as Texture2Ds and set each face of the cubemap (XNA's TextureCube) using that texture data. Additionally, you could save that texture data into a single DDS file, which will compile nicely by the XNA content pipeline so you can load the TextureCube object at runtime. This type of texture I'm talking about are like [url="http://rbwhitaker.wikidot.com/texture-library"]these[/url], which consequently come from a [url="http://rbwhitaker.wikidot.com/skyboxes-1"]XNA tutorial[/url] that may help, since you're going to need more than just the texture in getting a skybox set up.

Share this post


Link to post
Share on other sites
Thanks to everyone but i am not a beginner, The texture format i was talking about is DDS, the problem with these files is that i cant find descent skyboxes from the internet, and sometimes when I try to load it it throws an incorrect format exception.the question is where can i DOWNLOAD A DDS FILE THAT HAS A SKYBOX WITH A VERY NICE RES

Share this post


Link to post
Share on other sites
The DirextX texture tool which comes with the DirectX SDK allows you to take any 6 images and put them together into a .DDS format cubemap texture for use as a skybox.

With a bit of manipulation in photoshop beforehand, it shouldn't be too hard to use it to convert skyboxes in other formats into the DDS Texture array you need. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this