Re: [osg-users] Grabbing depth buffer from pre-render camera?

2008-05-06 Thread Robert Osfield
Hi Jason, On a quick pass I can't spot why the image isn't getting updated. The osgprerender example has usage of a colour buffer being grabbed once per frame and this certainly works try: osgprerender cow.osg --image Perhaps this example can help you. Robert. On Mon, Apr 28, 2008 at 8:06

Re: [osg-users] Grabbing depth buffer from pre-render camera?

2008-05-06 Thread Jason Ziglar
I actually managed to get this to work, luckily. I'm not entirely certain what fixed it - I know the final error was having removed the line setting the ABSOLUTE_RF. Thanks, Robert Osfield wrote: Hi Jason, On a quick pass I can't spot why the image isn't getting updated. The osgprerender

[osg-users] Grabbing depth buffer from pre-render camera?

2008-04-28 Thread Jason Ziglar
I've got a camera set up to perform a pre-render pass, so I can generate a shadow map for the scene of interest. I have verified that the camera is running via the PostDrawCallback, but the resulting image is the same even though the scene is changing between images. The PostDrawCallback