🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

[Ogre] change colors of certain edges in wire mesh

Started by
1 comment, last by Zakwayda 5 years, 6 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.

 

 

Advertisement

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