Hi,
I design my scene with osgProducer and I want to bring up the design
inside a window.
I design my scene with osgProducer and I want to bring up the design
inside a window.
With the code that I wrote, the window appears, the scene rather not see.
How can I do?
Miriam
int main()
{
Producer::CameraConfig* cameraC= buildWindow();
osgProducer::Viewer v(cameraC);
v.setSceneData(root);
v.realize();
while(!v.done())
{
v.sync();
v.update();
v.frame();
}
}
Producer::CameraConfig* viewLibAuToti::buildWindow()
{
Producer::RenderSurface* renderSurface= new
Producer::RenderSurface();
renderSurface->useBorder(true);
renderSurface->setWindowRectangle(0,0,800,600);
renderSurface->fullScreen(false);
renderSurface->setWindowName("View Simulation");
Producer::Camera* camera= new Producer::Camera();
camera->setRenderSurface(renderSurface);
Producer::CameraConfig* cameraConfig= new Producer::CameraConfig();
cameraConfig->addCamera("camera", camera);
return cameraConfig;
}
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org