i use ogre 1.8 on iOS
* Texture Compression: yes
- DXT: no
- VTC: no
- PVRTC: yes
I use this command to convert png to pvr
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC -f PVR --bits-per-pixel-2 -m -o /Users/tdo1/Desktop/bt_Text.pvr /Users/tdo1/Desktop/bt_Text.png
and everything is ok
bt_Text.pvr: Loading 1 faces(PF_PVRTC_RGB2,32x32x1) with 5 custom mipmaps from Image. Internal format is PF_PVRTC_RGB2,32x32x1.
but when i do the same thing without mipmap
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC -f PVR --bits-per-pixel-2 -o /Users/tdo1/Desktop/bt_Text.pvr /Users/tdo1/Desktop/bt_Text.png (without -m )
the texture is white
bt_Text.pvr: Loading 1 faces(PF_PVRTC_RGB4,32x32x1) with 0 custom mipmaps from Image. Internal format is PF_PVRTC_RGB4,32x32x1.
Do you know why, could you please help me ?
texture is white with no mipmap
-
- Gnoblar
- Posts: 3
- Joined: Mon Jan 13, 2014 7:59 am
Re: texture is white with no mipmap
Edit ogregles2texture.cpp 126line change mNumMipmaps==0 to mNumMipmaps-1==0
when texture with no mipmap ,the mNumMipmaps is 1,so you must -1,i think this is a error
when texture with no mipmap ,the mNumMipmaps is 1,so you must -1,i think this is a error