[osg-users] Vector script out of range

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Oct 4 05:23:06 PDT 2016



Hi Uma,

There is no model attached.
Without giving us a model that shows this behavior and some basic 
information on your OSG-Version, build environment etc. it is hard to 
guess what is going on.
Most likely the ply-reader produces the error, so please try to attach 
the model so we can investigate. In case you are building OSG yourself, 
it should be easy to attach a debugger and check what is going on for 
yourself ...

Cheers
Sebastian
> Hi,
>
> I have tried a simple program in C++ to render 3d model using Osg Viewer.
> When I am trying to run the code I am getting "vector script out of range error " for some 3d model.
>
> This is my code.
>
> /*osg header files */
>
> int main(int argc,char**argv)
> {
>
>
> 	/*using ref_ptr*/
> 	osg::ref_ptr<osg::Node> root = osgDB::readNodeFile("bunny.ply");
> 	osgViewer::Viewer viewer;
> 	viewer.setSceneData(root.get());
> 	return viewer.run();
> }
>
> can some body tell me what is the problem. but it is working for some models. I have attached the 3d model file. I have loaded 2963 KB file
>
>
> Thank you!
>
> Cheers,
> Uma
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68842#68842
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list