Hi!
jojo wrote: > As I understand, the command camera->attach(osg::Camera::COLOR_BUFFER, > depth.get(),0,0); tells osg, that I want the color buffer of the camera to be > stored in the image depth. This works, but when I change it to > camera->attach(osg::Camera::DEPTH_BUFFER, depth.get(),0,0); I get the same > result. A colored picture. > > Regards, > jojo I've read your post with great interest! I work with the COLOR_BUFFER (for now...) and I've a question for you. I tried to reproduce your code in mine (thus I don't exactly do the same things) and it seems my _depth image (that I use to store colors...) is initialized at allocationImage but the buffer data is never refreshed. I tried: Code: _depth->allocateImage(vec->x(), vec->y(), 1, GL_COLOR, GL_INT); and Code: _depth->allocateImage(vec->x(), vec->y(), 1, GL_RGBA, GL_INT); Is there any instruction to do that that I skiped? Thanks! Max ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12203#12203 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

