# terrain generation from pvr Texture directly

**URL:** https://forums.imgtec.com/t/terrain-generation-from-pvr-texture-directly/1771
**Category:** PowerVR Insider
**Created:** [April 30, 2013, 9:44am UTC](https://forums.imgtec.com/t/terrain-generation-from-pvr-texture-directly/1771 "2013-04-30T09:44:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)
#### Post date: [April 30, 2013, 9:44am UTC](https://forums.imgtec.com/t/terrain-generation-from-pvr-texture-directly/1771/1 "2013-04-30T09:44:42Z")

</div>

Dear Team  
  
  
  
i know how to generate terrain from a bitmap , but i was wondering how to do it directly from a png converted to pvr , how can i access to the pixel ( x,y ) r,g,b values ?  
  
  
  
thanks in advance  
  
  
  
david

---

<div class="post-metadata">

### Author: ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)
#### Post date: [May 1, 2013, 7:12am UTC](https://forums.imgtec.com/t/terrain-generation-from-pvr-texture-directly/1771/2 "2013-05-01T07:12:32Z")

</div>

Hi Dgu,  
  
  
  
PVR files are stored in a simple, linear texel array, there’s no file compression going on in a basic PVR. You can literally just access each pixel directly. If you have it stored as, say, RGBA8888, every 32 bits will be a new pixel, and each 8bit value within that will be a different channel.  
  
  
  
It should be largely the same as accessing a bitmap array, just with different formats supported. You can also just bind them as a texture and perform vertex texture reads on supported platforms (sadly, this does not include iOS though).  
  
  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

### Author: ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)
#### Post date: [May 1, 2013, 9:00am UTC](https://forums.imgtec.com/t/terrain-generation-from-pvr-texture-directly/1771/3 "2013-05-01T09:00:05Z")

</div>

thanks Tobias ,that is really interesting , it s my todo list now
