Hi Alexey,
The model is invisible since it has a material that has alpha set to 0.
If you look in the ford.osg file all the material colors has alpha set
to 0. When I look at the ford.mtl file I notice that the alpha component
is missing for all colors and my guess would be that the obj plugin
somehow defaults to alpha 0 when the alpha component is missing.
Regards,
Per
On 06/28/2011 03:44 PM, Alexey Chernov wrote:
Hi,
I suffer strange problem loading obj file in OpenSceneGraph (tried versions
from 2.8.3 to 3.0 RC2). osgviewer starts successfully, prints nothing to
console but don't show the model, only background is painted.
If I load the file in my code using
Code:
osg::Node* model = osgDB::readNodeFile(location);
the app just freezes and is unable to load the model, too. I tried many
different *.obj files without any success, one of them is attached (it's sample
from 3DSMax converted to *.obj). It can be loaded successfully in Blender and
3DSMax.
Did someone face the same problem? I have really no idea what it can be. So any
help would be highly appreciated.
Thank you!
Cheers,
Alexey
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40988#40988
Attachments:
http://forum.openscenegraph.org//files/ford_model_151.zip
_______________________________________________
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