Cube mapping problem

Blitz3D Forums/Blitz3D Programming/Cube mapping problem

Ion(Posted 2007) [#1]
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?


GfK(Posted 2007) [#2]
Load it with the correct filename. If its saying the texture does not exist in memory, then you simply haven't loaded it properly.


Ion(Posted 2007) [#3]
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.


GfK(Posted 2007) [#4]
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.


_33(Posted 2007) [#5]
spheremap, by memory, is a texture that's twice as wide as it is tall.


Gabriel(Posted 2007) [#6]
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.