Why i can't load the texture?

 Hi ,

   I  use  the  example OGLES2StencilBuffer  change the Sphere.pod(with stone .pvr)to my file  terrain.pod (with the terrain_tex.pvr), but there is a error : can't load the terrain_tex.pvr  .when I use another pvr file (ex : stone ,.pvr), it can run .ofcoure  can not see the terrain .

     please helpme  . thanks!

Hello,

 

If you look at the source code for OGLES2StencilBuffer you will see that the PVR files are not loaded from the POD file itself but from the application and matched to the POD file materials names. You can change the code easily to get the texture file name from the POD file materials.

 

Regards.

 

Carlos.