Face color to vertex color & VBO

Started by
1 comment, last by deavik 18 years, 7 months ago
Hi I'm loading my mesh from lightwave file. I recover face color and I need to convert to vertex color using VBO. How can I do ?
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]
Advertisement
Maybe, spimply copy this color to every triangle vertex color? )))
I don't understand, what exactly are you asking.
iliak,

OpenGL is a big mutha state machine (I'm sure you've heard this a hundred times, but it sounds impressive!), so anything you set with glColorf for 1 vertex will remain for all vertices you draw after that unless you change the color by again calling glColorf. You have the face color, so do a glColorf, then glVertexf for as many vertices as you have, then again, and so on.

Cheerio!

This topic is closed to new replies.

Advertisement