# Why i can't load the texture?

**URL:** <https://forums.imgtec.com/t/why-i-cant-load-the-texture/245>\
**Category:** PowerVR Insider\
**Created:** [February 3, 2009, 9:14am UTC](https://forums.imgtec.com/t/why-i-cant-load-the-texture/245 "2009-02-03T09:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![songdefeng](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@songdefeng](https://forums.imgtec.com/u/songdefeng)\
**Post date:** [February 3, 2009, 9:14am UTC](https://forums.imgtec.com/t/why-i-cant-load-the-texture/245/1 "2009-02-03T09:14:21Z")

</div>

&nbsp;Hi ,

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

&nbsp;&nbsp;&nbsp;&nbsp; please helpme&nbsp; . thanks!

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [February 6, 2009, 4:00pm UTC](https://forums.imgtec.com/t/why-i-cant-load-the-texture/245/2 "2009-02-06T16:00:48Z")

</div>

Hello,

&nbsp;
  

If you look at the source code for OGLES2StencilBuffer&nbsp;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&nbsp;from the POD file materials.
  

&nbsp;
  

Regards.
  

&nbsp;
  

Carlos.
  

&nbsp;
