Hi Werner,
Instead of modifying the main camera attachments, you might want to create a
slave camera whose sole purpose is to render to FBO. Then you can
enable/disable that camera using slaveCamera->setNodeMask (0x0 to disable,
0x) to enable.
Code:
// Create slave camera and set
Hi Glen,
thanks for the hint. I'm still sticking with version 3.2 and this method
is not available there.
I will try to move to the latest version and do like you suggested.
Thanks
- Werner -
Am 09.03.2017 um 15:24 schrieb Glenn Waldron:
Werner,
I have never switched render targets at
Werner,
I have never switched render targets at runtime before, but I have switched
attachments and needed to call camera->dirtyAttachmentMap() after calling
attach() or detach(). Maybe that will work.
Glenn Waldron
On Thu, Mar 9, 2017 at 9:10 AM, Werner Modenbach
Hi all.
Is it possible to redirect the main camera of a view temporarily to a FBO?
It is my intention to get a snapshot of the scene with a modified
projection matrix.
I think about something like that:
osg::ref_ptr camera = view->getCamera();
osg::Camera::RenderTargetImplementation rti =
4 matches
Mail list logo