[osg-users] Mesh Functionality
Robert Osfield
robert.osfield at gmail.com
Tue Sep 27 10:30:33 PDT 2016
Hi Mike,
On 27 September 2016 at 18:15, Mike Raider <miketimmons at gmail.com> 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.
More information about the osg-users
mailing list