Hi Patrick.

I am not familar with MPV, however let my try to help you ;)

To let the ppu pipeline be applied for the complete scene, you have to provide 
it with a texture containing your scene as input. If you use the standard way, 
scene->osgPPU::Processor->osgPPU::Unit..., and attach a camera which views on 
your scene to the processor, then the camera output (which should be an RTT) 
will be provided into the pipeline. 

How is MPV handling scene rendering? Does it use osg's camera or does it render 
directly to some texture without camera intervention? If the second is true, 
then you can use UnitTexture as a root unit of your pipeline to provide your 
rendering texture into the pipeline.

Best regards,

--- Patrick Castonguay <[EMAIL PROTECTED]> schrieb am Do, 6.11.2008:

> Von: Patrick Castonguay <[EMAIL PROTECTED]>
> Betreff: [osg-users] osgPPU vs RTT
> An: osg-users@lists.openscenegraph.org
> Datum: Donnerstag, 6. November 2008, 20:38
> Hi, 
> I am trying to get osgPPU to work with the MPV project (a
> CIGI compliant IG)...  I am having a little bit of a hard
> time figuring out how to get the two to talk to each other. 
> As MPV is very modular and based on a plugin stucture, what
> I have to work with (so far) is the root node of the scene. 
> The examples all have their own viewer that are used by PPU
> but I would like to stay away from that and "just
> insert" the pipeline to affect the intire scene (the
> displaying of the scene is handled by an other plugin inside
> MPV).
> Anybody have an idea of how could I attach a PPU pipeline
> to the scene? 
> My other option is to not use osgPPU and start doing my own
> RTT, a little like ├ůsa Engvall is intending to do...
> Patrick Castonguay
> H: 613 435 2235
> C: 613 325 1341
> Technology Innovation Management (TIM) Student - Modeling
> and Simulation stream
> Carleton University, Ottawa,
> ON_______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

osg-users mailing list

Reply via email to