Hi Simon

I'm attaching to the depth buffer (look on the right --> camera->attach(Camera::DEPTH_BUFFER, image.get(), 0, 0); ;-)

Thanks anyway.

Dominic


Am 11.01.10 22:15, schrieb Simon Hammett:
2010/1/11 Dominic Stalder <dominic.stal...@bluewin.ch <mailto:dominic.stal...@bluewin.ch>>

    camera->attach(Camera::COLOR_BUFFER, image.get(), 0, 0); -->
    camera->attach(Camera::DEPTH_BUFFER, image.get(), 0, 0);


Well you are trying to attach a depth texture to the color buffer, that's not going to work.

Try

camera->attach(Camera::DEPTH_BUFFER, ...

instead.

--
http://www.ssTk.co.uk


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to