Imagination PowerVR SDK Blog

Not able to map pvr compressed texture

pvrtextool

#1

Hello,

In Opengl ES 2.0 ios, I am not able to map compressed pvr texture to models. I have encoded texture using PVRTextool and am getting the following result,

I have loaded PVRTexture in my game,

Could you please help,

Thank you,

Anusha


#2

Hi Anusha,
Can you provide the API call recording file for this error for me to investigate this issue?
the rough usage for the compressed texture should like the following.
Call UID 26: glGenTextures (1 , 1)
Call UID 27: glBindTexture (GL_TEXTURE_2D , 1)
Call UID 29: glCompressedTexImage2D (GL_TEXTURE_2D , 0 , GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG , 256 , 256 , 0 , 32768 , ~Image(32768 bytes)~)

Please check if there is any error message:D

Thanks,
Kevin


#3

Hello Kevin,

This is API recording.

GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_compression_pvrtc
ram: 8730: GL_TRIANGLES
BuildStripifyInfo: > 2 triangles on an edge… uncertain consequences
BuildStripifyInfo: > 2 triangles on an edge… uncertain consequences
ram: 4677: GL_TRIANGLE_STRIP

This is no error message,

Thank you,

Anusha