Hi Alexey,
To override the alpha value for the model you could write a node visitor
that collects all materials and changes all alpha components. I would
probably change the files and remove the Tr field or change it to 1. A
perhaps better solution would be to pass an option to the obj plugin
that could force it to ignore the Tr field if a d field is already read.
I don't know why you get hangs in osgDB::readNodeFile, all my tests with
osgviewer and osgconv went through without a problem.
Regards,
Per
On 06/29/2011 10:24 AM, Alexey Chernov wrote:
Hi, Per,
thank you very much for such a detailed description! I really didn't expected
it is something wrong with the file itself.
So, can I override these opacity parameters in osgviewer somehow or I need to
solve the file instead?
And, maybe you have some idea, why it can freeze the osgDB::readNodeFile()
method? I also made some experiments and it seems that the freeze is somewhere
in converting OBJ file model to OSG scene graph
(ReaderWriterOBJ::convertModelToSceneGraph() method).
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41012#41012
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org