# Bump mapping (nIdxTexBump)

**URL:** <https://forums.imgtec.com/t/bump-mapping-nidxtexbump/1384>\
**Category:** PowerVR Insider\
**Created:** [April 13, 2012, 10:56am UTC](https://forums.imgtec.com/t/bump-mapping-nidxtexbump/1384 "2012-04-13T10:56:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![al-prater](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@al-prater](https://forums.imgtec.com/u/al-prater)\
**Post date:** [April 13, 2012, 10:56am UTC](https://forums.imgtec.com/t/bump-mapping-nidxtexbump/1384/1 "2012-04-13T10:56:31Z")

</div>

Hello,  
  
  
  
  
  
I hoping you guys can help me.  
  
  
  
  
  
Setup:  
  
  
I have a simple cube primitive with a lambert material applied (in Maya 2011).  
  
  
The lambert has both diffuse and bump map textures connected via external pngs.  
  
  
  
  
  
Issue:  
  
  
When I export to POD and load up the resulting scene (into iOS), I only find that the nIdxDiffuse is set.  
  
  
nIdxTexBump is always -1 and there is no entry in scene.pTexture for the bump texture.  
  
  
  
  
  
I’ve looked through the BumpMap and ParallaxBumpMap examples. Both load the textures from hardcoded chars. I’m attempting to implement the textures more like the other examples that loop through the pTextures (hence trying to get the bump texture in there).  
  
  
  
  
  
Any help/advice would be greatly appreciated.  
  
  
Thank you  
  
  
Al  
  
  
  
  
  
PS. Mac OSX 10.7 | Maya 2011 | PVR 2.10 | iOS 4+

---

<div class="post-metadata">

**Author:** ![jackasser](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jackasser](https://forums.imgtec.com/u/jackasser)\
**Post date:** [April 15, 2012, 4:49am UTC](https://forums.imgtec.com/t/bump-mapping-nidxtexbump/1384/2 "2012-04-15T04:49:09Z")

</div>

I had the same issue and the exporter only handles diffuse textures. I solved it by having a naming scheme, so when the diffuse texture was loaded i also checked for specuÃ¶ar and bump and dynamically added those if they were found.

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [April 17, 2012, 7:50am UTC](https://forums.imgtec.com/t/bump-mapping-nidxtexbump/1384/3 "2012-04-17T07:50:58Z")

</div>

al.prater wrote:

Issue:  
  
When I export to POD and load up the resulting scene (into iOS), I only find that the nIdxDiffuse is set.  
  
nIdxTexBump is always -1 and there is no entry in scene.pTexture for the bump texture.  
  

&nbsp;
Hi,
&nbsp;

Thanks for reporting this issue. I can confirm it is a bug with the exporter and it will be fixed in a future release.

&nbsp;

Cheers,

&nbsp;

Scott
