Load a tile bmp in an opengl texture

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Load a tile bmp in an opengl texture

815 次查看
_andev_
Contributor II

Hi,

I would like to benchmark my application using different image formats for textures. I'm trying standard bmps,

tiled bmps and the tiled bmp in raw version. To create the tiled versions I'm using vTexture from the Vivante Toolkit.

The toolkit has a sample 'TiledTexture.zip' with a 123.bmp. I've generated a tiled bmp from this image with:

vTextureTools.exe -t -src 123.bmp

This generates 123-tiled.bmp

I've generated too the same tile but in raw format with:

vTextureTools.exe -t -r -src 123.bmp

This generates 123-tiled-bgra8888.raw

I've followed the tutorial8.cpp in order to create succesfully a texture from the tiled file in raw format (the 123-tiled-bgra8888.raw file)

but I've no luck doing the same with the bmp one (123-tiled.bmp). Any hint or code?

Regards.

0 项奖励
2 回复数

674 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Anonymous,

You can try to follow the example Tile linear texture to multi-supertiled texture and output bgra8888

as: vTextureTools.exe -2 -r --raw=bgra8888 -src 123-tiled.bmp

Hope this helps

0 项奖励

674 次查看
_andev_
Contributor II

Hi,

Thanks for your answer! The demo code is checking that the raw file is tiled.

Multi-tiled, Super-tiled and Multi-Super-tiled are not supported. I've commented

the check and the screen is white when I draw the texture.

0 项奖励