When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes.I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions?
osgDB::Options* opt = new osgDB::Options;
opt->setOptionString("noRotation");
osg::ref_ptr<osg::Node> node = osgDB::readNodeFile(pathToObjFile, opt);
Im using two windows machines with intel processors (64bit).
OSG was built by ourselves.
One has an integrated intel graphics unit and one with a Nvidia 2080Ti.
I can also view the model using MeshLab or other tools.
Is it possible to fix the invalid references in openscenegraph?
Thank you for the workaround.So as far as i understand you only add the texture coordinate and normal, if there exists one with a index greater than 0 and less then the number of normals or texture coordinates.So that means that openscenegraph now will be able to display the textured mesh, even if the normals are missing, right?
osgDB::Options* opt = new osgDB::Options;
opt->setOptionString("noRotation");
osg::ref_ptr<osg::Node> node = osgDB::readNodeFile(pathToObjFile, opt);
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/b55a82c5-4801-49da-b1c4-149d868bd6fa%40googlegroups.com.
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
To unsubscribe from this group and stop receiving emails from it, send an email to osg-...@googlegroups.com.