Thanks Robert and sorry for the late reply,

Our sensor package is designed to be a general drop in to any (within reason) 
OpenGL application.  It provides it's own FBO and processing.  They just need 
to be enabled and disabled at the right time.  Having something else create and 
"manage" an FBO for our package to use just adds complexity that we would 
prefer not to deal with.  The PreDraw and PostDraw appear to be working fine 
for this and made it simple to integrate our product with OSG.

Cheers,
Brad


-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Saturday, January 22, 2011 4:42 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Camara: PreDrawCallback and PostDrawCallBack

Hi Brad,

It sounds like you are just using a mutli-pass render to texture
technique, in which case the OSG supports this without need for
callbacks or subclassing.  osgprerender or osgdistortion are good
examples to learn from.

Robert.

On Fri, Jan 21, 2011 at 11:51 PM, Brad Colbert <bcolb...@rscusa.com> wrote:
> Hello folks,
>
> We have a custom sensor model that we have used for some time with OSG.  It 
> provides an FBO for rendering the scene to, processes the captured scene, and 
> then will render the FBO when completed.  I would like to change the way we 
> use it in OSG to make it work closer to the osg::Camera class.
>
> My first thought was to derive a Camera class and override the applicable 
> functions.  At first glance, this appears a bit more involved than I really 
> hoped.
>
> While looking at the Class I see (and now remember) Pre and Post draw calls.  
> My big questions are:
>
> 1.  Is the graphics context bound when these calls are made? (if not, why 
> not) 2.  If so, am I allowed to bind my FBO in the pre-draw, and draw in my 
> post draw?
>
> Thanks!
>
> ---
> Brad Colbert
> Renaissance Sciences Corporation
>
>
> _______________________________________________
> 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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to