[osg-users] Issue in Rendering Obj model using c++ code .

Uma Devi Selvaraj umaselvam1503 at gmail.com
Fri Oct 14 00:05:52 PDT 2016


Hi all,
  I have build osg version 3.4.0 in windows 8. I am able to render 3D models using the command "osgviewer <Model_file>". 

  I have tried a simple c++ code to render 3D model. I gave .obj model as input. For small files (say file size of 577 KB) my code renders the given model successfully, whereas when my input obj model is of size 46,927 KB it takes long time (more than hours & not renders the model). I am facing this problem in debug mode.

But in Release Mode I am facing error.

My code is 



... osg::ref_ptr<osg::Node> root;
	root = osgDB::readNodeFile("D:\\3D_Models\\Concert Stage.obj");
	osgViewer::Viewer viewer;
	viewer.setSceneData(root.get());
	return viewer.run();

I have attached the screenshot of error message.



Thank you!

Cheers,
Uma

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: obj_error.png
Type: image/png
Size: 32407 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161014/e9aaaf63/attachment-0002.png>


More information about the osg-users mailing list