I'd like to migrate away from my current usage of BIND_PER_PRIMITIVE so that I can start using current versions of OSG.
I have working code that does color binding on a per primitive basis. I believe I have a good reason to do so: I have a separate program that tells me what the temperature is for facets on a building. This means that I have one temperature value for each primitive. I can convert the 3-D building model that the program uses into an .ive file. I need to color each side of the building according to temperature, so the natural fit is to use BIND_PER_PRIMITIVE. The problem is that if I have a building in a single geometry object, it ends up having shared vertices which means I can't effectively color per primitive by setting all vertices the same color and coloring by vertex. The only solution I can think of is to split the single building geometry up so that each primitive in the building is its own geometry so that there are no shared vertices within the geometries and I can color each vertex by the color of the primitive. Am I missing anything? I tried looking in the forum archives but I was confused by most of the conversation about this topic. -Ethan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57865#57865 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

