Hi David, On Tue, Apr 13, 2010 at 12:08 PM, David Spilling <[email protected]> wrote: > Does OSG support rendering to a Vertex Buffer Object?
Not yet... > 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); We might be able to engineer the osg::Camera interface to take an osg::Array as input rather than a osg::Image or osg::Texture, but... it would require quite a bit of work on the backend to support it. I haven't tried rendering to VBO before but it's my understanding that the technique used to render to FBO, then copy the appropriate buffer to PBO, then re-assign this PBO as a VBO. You might be able to implement this right now using a post draw callback attached to an osg::Camera set up as at RTT to FRAME_BUFFER_OBJECT. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

