Sounds like a driver issue. I have been running various flavors of OSG
on Vista x64 for months on different hardware configurations.

On Dec 19, 2007 6:24 AM, Franclin Foping <[EMAIL PROTECTED]> wrote:
> Hello Everybody,
>  I am trying to run a simple code on Vista and it looks like I have got a
> black screen as output.
>  I have installed OSG 2 on Vista and Linux. OSG works perfectly on Linux.
>  However I have got some issues on Vista.
>  As mentioned early, I cannot run some codes, even osglogo doesn't work.
>  For instance, the following code compiles but doesn't run on Vista:
>
> #include <osgDB/ReadFile>
> #include <osgDB/WriteFile>
> #include <osgViewer/Viewer>
> #include <osgViewer/ViewerEventHandlers>
> #include <osgGA/TrackballManipulator>
> #include <osg/ShapeDrawable>
> using namespace std;
>
>
> int main()
> {
>     osgViewer::Viewer viewer;
>     osg::ref_ptr<osg::Group> root (new osg::Group);
>
>     osg::ref_ptr<osg::Node> fishnode
> (osgDB::readNodeFile("Oyanirami0.3ds"));
>
>     root->addChild(fishnode.get());
>
>     bool result = osgDB::writeNodeFile(*(root.get()),"simple.osg");
>
>     viewer.setSceneData( root.get() );
>
>     //Stats Event Handler s key
>     viewer.addEventHandler(new osgViewer::StatsHandler);
>
>     //Windows size handler
>     viewer.addEventHandler(new osgViewer::WindowSizeHandler);
>
>     return (viewer.run());
>
> }
>
>
>  I am waiting for your reply.
>  Franclin.
>
>
> ________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
>
>
> _______________________________________________
> 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