Robert,

 

The following is how I’m initialising the sceneview and the scene renders correctly. Is this the correct way to setup the init visitor?

 

Also, does this mean that display lists will still be compiled as necessary when geometry is first drawn?

 

model = osgDB::readNodeFile("cow.osg");

 

sceneview = new osgUtil::SceneView;

sceneview->setDefaults();

sceneview->setInitVisitor(new osgUtil::GLObjectsVisitor(osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES));

 

sceneview_->setSceneData(model_.get());

 

Thanks,

Gian

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Wednesday, 30 August 2006 11:00 PM
To: osg users
Subject: Re: [osg-users] Problem loading model on 1.1rc1

 

On 8/30/06, Gian Lorenzetto <[EMAIL PROTECTED]> wrote:


Hi Robert,

Thanks for the clarification. I totally agree that calling sceneView->init() early is at best a "work-around", but it does allow me to keep making progress on other things, so a necessary evil :)



No its not a ncessassry evil, its a "got lucky but didn't really fix it, and actually introduced a potentially much worse problem..."
 

I will try your suggested changes to the init traversal.


No init visitor is the workaround, or to just get it compile StateState's as per my example.

 

BTW a sample win32 project is coming, but it may need to wait until the weekend (pesky work getting in the way again ...).


I'm inclined to crack on with 1.1.1-rc2.  I don't think this is an OSG issue, but a peculiar OpenGL driver problem.  The example would still be useful as we probably need to get NVidia involved to fix it.

Robert.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to