Hi Mike,

On 27 September 2016 at 18:15, Mike Raider <[email protected]> wrote:
> Hi Robert,
>
> Thank you, this changed my mesh and it looks much better.
>
> Now I can see that I am indexing through the mesh to set colors and only 
> changing colors on half of the mesh face.  The mesh face is a square and I am 
> only setting the color on a triangle half of the square.
>
> How do I index through the mesh so i change colors on every triangle face?

There is limited to how well per vertex colours/normals etc. can map
on to primitives in a per primitive way, this is down to how
OpenGL/hardware work.

In you case you could try using GL_TRIANGLES rather GL_QUADS (if this
is what you are presently doing.)

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to