Dear All,
Does OSG support rendering to a Vertex Buffer Object?
I'm happy with regular texture RTT, but is rendering to VBO as simple as
this:
camera->setRenderTargetImplementation(osg::CameraNode::FRAME_BUFFER_OBJECT);
camera->attach(osg::CameraNode::COLOR_BUFFER, m_texture);
where m_texture's "image" is pointing to a vertex buffer? e.g. something
like
m_vertex = (osg::Vec4f*) new osg::Vec4f[m_nx * m_ny];
m_vertexArray = new osg::Array(m_nx * m_ny, m_vertex);
m_texture->setImage(m_vertex)
?
Does this (apparently simple) operation ensure that the VBO stays entirely
on the GPU, and doesn't do a round trip via the driver/CPU?
Thanks all,
David
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org