texture is white with no mipmap

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
tdo1
Gnoblar
Posts: 12
Joined: Thu Jun 14, 2007 4:18 pm

texture is white with no mipmap

Post by tdo1 » Sat Oct 19, 2013 7:19 pm

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.
Capture d’écran 2013-10-19 à 14.15.22.png
Capture d’écran 2013-10-19 à 14.15.22.png (179.74 KiB) Viewed 1095 times

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.
Capture d’écran 2013-10-19 à 14.14.50.png
Capture d’écran 2013-10-19 à 14.14.50.png (193.24 KiB) Viewed 1095 times
Do you know why, could you please help me ?
0 x

zhaoshuyu
Gnoblar
Posts: 3
Joined: Mon Jan 13, 2014 7:59 am

Re: texture is white with no mipmap

Post by zhaoshuyu » Fri Feb 21, 2014 8:11 am

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
0 x

Post Reply