mapNode  is it NULL ? Did you try  opening it with osgviewer.exe ? Maybe
sharing the file will help finding out.




On Thu, Jan 7, 2010 at 4:02 PM, Tufan Taş <[email protected]> wrote:

> The following is my code for the openflight mode. Am I missing something in
> the code? Only blue screen appears.
>
> osg::Node* mapNode;
> mapNode = osgDB::readNodeFile("C:\\Users\\Tufan\\Desktop\\buffs.flt");
> osg::Group* root = new osg::Group();
> root->addChild(mapNode);
>
> osgViewer::Viewer viewer;
> viewer.setSceneData( root );
>
> viewer.setUpViewInWindow(100, 100, 640, 480);
> viewer.run();
>
> Cheers,
> Tufan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=22239#22239
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to