Advertisement

[Ogre] change colors of certain edges in wire mesh

Started by December 08, 2018 10:18 PM
1 comment, last by Zakwayda 5 years, 11 months ago

Hope this is the right forum.

I'm using Ogre and have rendered a wireframe of triangles by creating manual objects and feeding it vertex and index buffers.

My question is, if I want to turn some of the edges of my wire mesh a different color, how would that normally be done? I.e., A triangle having 3 edges where 2 edges are white and I change one edge to green.

 

 

I know very little about Ogre, but typically you'd use vertex colors for this, with vertex positions (and other attributes if necessary) duplicated as needed to facilitate differently colored edges.

If Ogre is anything like other rendering engines, I'd assume you can create custom meshes with arbitrary data and vertex formats. You said you're feeding the renderer vertex and index buffers, so presumably there's a way to incorporate color attributes as well.

This topic is closed to new replies.

Advertisement