Cube mapping problem
Blitz3D Forums/Blitz3D Programming/Cube mapping problem| 
 | ||
| I have a problem with applying a cube-map to a mesh. The mesh is in 3ds-format meaning that it will load it's standard texture automatically. As soon as I try loading the cube-map texture with the 128 flag, the application generates a runtime-error saying "Texture does not exist"... How do I fix this? | 
| 
 | ||
| Load it with the correct filename.  If its saying the texture does not exist in memory, then you simply haven't loaded it properly. | 
| 
 | ||
| lol, that's not the case, since when I try loading it with any-other flags (spherical mapping for example) it loads and displays correctly. | 
| 
 | ||
| Is your cubemap texture in the right format?  Its been years but as far as I recall cubemap textures have to contain six equal sized, square images in a strip, and in a specific order; Left, front, right, back, top, bottom. That might explain why only flag 128 isn't working. | 
| 
 | ||
| spheremap, by memory, is a texture that's twice as wide as it is tall. | 
| 
 | ||
|  spheremap, by memory, is a texture that's twice as wide as it is tall. No, a spheremap is perfectly square normally. Regardless, he's using a cube map and GFK's description of six equal sized square images in a strip is quite correct for one of those. |