Hi Bo, In the source code of OpenSceneGraph Cookbook you will find an example which shows how to integrate an OSG scene view into a GLUT rendering loop. Hope it can help: https://github.com/xarray/osgRecipes/blob/master/cookbook/chapter9/ch09_06/osg_in_glut.cpp
By the way, it is really interesting to see OSG in a Maya scene. :-) Cheers, Wang Rui 2012/5/24 Bo Zhou <pap...@126.com> > Hi, > > I'm trying to integrate osg into a MPxLocatorNode in Maya, draw an osg > scene by MPxLocatorNode::draw method. > > According the Maya's document, we just need to call glVertex3f or > glDrawArrays API and do not need to setup any modelview, projection matrix, > or viewport to OpenGL, just draw geometry data. > > So how could I finish this task ? Could anybody help me ? Thanks ! > > Thank you! > > Cheers, > Bo > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=47830#47830 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org