Hey Eric,
Thanks for replay to me :).

actually sorry i use them in the code, but it seem i miss to write them
anyway.. here is the code i use currently:


Code:

        //if the context was created then attach to our viewer
    if(graphicsContext)
    {
        viewer->getCamera()->setGraphicsContext(graphicsContext);
    //    viewer->getCamera()->setViewport(new osg::Viewport(0, 0, 
traits->width, traits->height));
        }
        
        
        osg::setNotifyLevel(osg::DEBUG_FP);
        
        root = new osg::MatrixTransform();
        
        osg::Geode* geode = new osg::Geode();
        osg::ShapeDrawable* drawable = new osg::ShapeDrawable( new 
osg::Box(osg::Vec3(0,1,1),1));
        
        drawable->setColor(osg::Vec4(1.0f,0.0f,1.0f,0.5f));
        drawable->getOrCreateStateSet();
        geode->addDrawable(drawable);
        
        root->addChild(geode);*/
        
        viewer->setSceneData(root.get());
    viewer->setCameraManipulator(new osgGA::TrackballManipulator);
    viewer->realize();  




yes i use realize and setCameraManipulator

... 

Thank you!

Cheers,
Laith[/code]

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to