Message 1 of 2
Correct way to specify per-vertex color in an FbxMesh

Not applicable
12-21-2015
07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
Does anybody know the best way of storing per-vertex diffuse color data in a mesh? I've seen the FbxGeometryElementVertexColor class and followed the code in the Layers SDK sample, but nothing seems to show up correctly when looking at the file in FBX Review.
Unless I'm mistaken, in the Layers sample code the colors that appear on each face of the cube are generated by creating a separate material on each face. If I change to code to create a single material over the entire mesh then the FbxGeometryElementVertexColor element doesn't seem to do anything.
Is there really no way of creating a single material with per-vertex variation of the diffuse component?
Many thanks,
Simon
-