I compiled osg 3.2.0 and tried to compile my code that it based on it and got 
error messages saying BIND_PER_PRIMITIVE is deprecated.  I thought based on the 
existence of the Geometry::fixDeprecatedData() function that I would still be 
allowed to use BIND_PER_PRIMITIVE and that this function would fix my data for 
me, but it looks instead like the fixDeprecatedData() function is only for 
fixing geometry data created by previous versions of OSG that gets loaded in by 
osg 3.2+.  I suppose this makes sense, but it doesn't help me migrate to osg 
3.2 and still use BIND_PER_PRIMITIVE.  

My understanding is that if I don't mind the performance hit, my best option is 
to use duplicate vertices in my models such that there are no shared vertices.  
Since I can't specify BIND_PER_PRIMITIVE anymore and just have it call 
Geometry::fixDeprecatedData, what would be the most seamless way to proceed?  

The example I gave originally of needing to color the sides of a building was a 
simple case to demonstrate my need; in reality I have many different 3-D model 
types to load that need to be colored per primitive from different temperature 
models, and all of the original 3-D model formats have shared vertices, so I 
need to be able to load the 3-D model at runtime and use a node visitor to 
assign an effective color to each primitive.  

I fear I may be running into a situation where I'll be stuck on osg 3.0.1 
indefinitely?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57873#57873





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to