Is a Single Texture Cube Map Possible?
Posted
by
smoth190
on Game Development
See other posts from Game Development
or by smoth190
Published on 2012-04-22T03:28:51Z
Indexed on
2012/10/25
11:17 UTC
Read the original article
Hit count: 310
I'm currently developing a test project to explore OpenGL 3 texturing abilities. I have a simple cube, made of 8 vertices and 36 indices. I want each of the cubes faces to have a different texture, so I devised this texture:
I made it obvious which sections I want visible (I hope...). In Direct3D, I once made a skybox, and I used a cubemap. However, I had to split it into 6 different textures. This is annoying and hard to manage, it would be nice to have just one texture. Is this even possible? I read somewhere that I could do this by duplicating vertices, is that a good idea? Someone else said I could do it in the shader, but that also baffles me...
© Game Development or respective owner