# Vertex Color Problem

**URL:** <https://forums.imgtec.com/t/vertex-color-problem/145>\
**Category:** PowerVR Insider\
**Tags:** pvrgeopod, pvrshaman\
**Created:** [September 18, 2008, 10:36am UTC](https://forums.imgtec.com/t/vertex-color-problem/145 "2008-09-18T10:36:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [September 18, 2008, 10:36am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/1 "2008-09-18T10:36:22Z")

</div>

Hi  
  
  
I have some problem reading vertex colors from a pod file.  
  
  
  
  
  
I have a pod file thats exported from maya where we have set some vertex colors and chosen the export settings to include vertex colors  
  
  
  
  
  
we are then using the pod loader found in PowerVR SDK to load the pod file  
  
  
  
  
  
The result i’m getting is that the variable sVtxColours in the struct SPODMesh is not set every variable is null.

---

<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:** [September 19, 2008, 7:08am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/2 "2008-09-19T07:08:28Z")

</div>

Hi,

&nbsp;
  

Would it be possible for you to send your&nbsp;maya scene to us at&nbsp;[devtech@imgtec.com](mailto:devtech@imgtec.com) so we can take a look. 
  

&nbsp;
  

Thanks, 
  

&nbsp;
  

Scott

---

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [September 19, 2008, 7:31am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/3 "2008-09-19T07:31:10Z")

</div>

yeah… i’ll have one of our artists to send the scene to you

---

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [September 22, 2008, 9:56am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/4 "2008-09-22T09:56:44Z")

</div>

have you had time to take a look at the scene we sent you?

---

<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:** [September 23, 2008, 7:39am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/5 "2008-09-23T07:39:14Z")

</div>

johnny wrote:

have you had time to take a look at the scene we sent you?   

&nbsp;
  

Hi,
  

&nbsp;
  

Thanks for the test scene. We've taken a look and have managed to fix the problem that you're seeing. The updated exporter will appear in the next release of our SDK that should be available within the next couple of days on&nbsp;our website.
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott
  

&nbsp;
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [October 2, 2008, 1:58pm UTC](https://forums.imgtec.com/t/vertex-color-problem/145/6 "2008-10-02T13:58:34Z")

</div>

Hi,  
  
  
  
  
  
we have downloaded your new maya2008 exporter but we still have some problems while trying to read alpha value from a vertex color, it seems like the alpha value always is 0.  
  
  
  
  
  
/Johnny

---

<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:** [October 6, 2008, 12:59pm UTC](https://forums.imgtec.com/t/vertex-color-problem/145/7 "2008-10-06T12:59:43Z")

</div>

johnny wrote:

Hi,   
  
we have downloaded your new maya2008 exporter but we still have some problems while trying to read alpha value from a vertex color, it seems like the alpha value always is 0.   
  
/Johnny

&nbsp;
  

Hi,
  

&nbsp;
  

I've found the cause of this. There is some&nbsp;common code shared between the max and maya plug-ins and it is only storing the RGB colour values.&nbsp;I'm going to look at fixing this and will let you know when there is an updated plug-in.
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott&nbsp;
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [November 5, 2008, 12:10pm UTC](https://forums.imgtec.com/t/vertex-color-problem/145/8 "2008-11-05T12:10:46Z")

</div>

Hi again.  
  
Bumping the thread with an additional problem with vertex colors and the Maya exporter.  
The vertex colors export fine, with alpha and all, when I tried using them on a basic primitive.&nbsp; (only flat shaded, no .pvr file texture)  
  
However, it seems like when I export with vertex colours, the UV-coordinates of the mesh gets discarded somehow.   
  
I exported a textured object, opened the resulting pod-file in PVRShaman and got:   
"error: Node 'pCylinder1 does not contain UVs, material lambert2 requires them"  
and the mesh is displayed grey-shaded.  
  
As far as I know, there's no real connection between UV-coordinates and vertex colors, so this error seems very strange.  
  
Thanks  
  
/Rickard  
  
johnny2008-11-05 13:59:12

---

<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:** [November 6, 2008, 8:08am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/9 "2008-11-06T08:08:23Z")

</div>

johnny wrote:

  
I exported a textured object, opened the resulting pod-file in PVRShaman and got:   
"error: Node 'pCylinder1 does not contain UVs, material lambert2 requires them"  
and the mesh is displayed grey-shaded.  

&nbsp;
  

Hi,
  

&nbsp;
  

Would it be possible for you to send us your scene so I can see if I can reproduce it.
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott

---

<div class="post-metadata">

**Author:** ![johnny-2](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@johnny-2](https://forums.imgtec.com/u/johnny-2)\
**Post date:** [November 6, 2008, 11:31am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/10 "2008-11-06T11:31:04Z")

</div>

Okay, sent the scene to [devtech@imgtec.com](mailto:devtech@imgtec.com)

&nbsp;  
Thanks  
  

  

/Rickard

---

<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:** [November 10, 2008, 9:33am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/11 "2008-11-10T09:33:27Z")

</div>

johnny wrote:

Okay, sent the scene to [devtech@imgtec.com](mailto:devtech@imgtec.com)  

&nbsp;  
Thanks  
  

  

/Rickard  

&nbsp;
  

Cheers, I was able to reproduce the bug and once it has been fixed I'll&nbsp;let you know.
  

&nbsp;
  

Scott

---

<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:** [November 14, 2008, 9:12am UTC](https://forums.imgtec.com/t/vertex-color-problem/145/12 "2008-11-14T09:12:42Z")

</div>

Hi,
  

&nbsp;
  

I've made a fix to the plug-in and the newest version can be downloaded from the PVRGeoPOD page on the website.
  

&nbsp;
  

[https://www.imgtec.com/powervr/insider/powervr-pvrgeopod.asp](https://www.imgtec.com/powervr/insider/powervr-pvrgeopod.asp)
  

&nbsp;
  

If you find any more problems please let me know.
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott
Scott2008-11-14 10:13:39
