Re: [osg-users] [osgPPU] Render backfaces of a cube into unit output texture

2010-05-21 Thread Martin Panknin
Hi Art, thank you for clearing this up to me, it works perfectly now! What I was trying to accomplish was the rendering of a cube frontface/backface culled in order to generate a "direction texture" for a volume rayaster I'm currently working on. Thanks again! Cheers, Martin ---

Re: [osg-users] [osgPPU] Render backfaces of a cube into unit output texture

2010-05-21 Thread Art Tevs
Hi Martin, ok, first of all, it seems the way how you use osgPPU is not correct. Second, this problem is actually osg related, since osgPPU has nothing to do with back/front face culling. Ok, now lets try to solve your issue: - In your code I see you attach the UnitInOut directly to the proces

[osg-users] [osgPPU] Render backfaces of a cube into unit output texture

2010-05-21 Thread Martin Panknin
Hi, I guess I'm missing something really obvious here. I'm trying to render a simple scene (just a cube), keep the result in a texture and use this texture as a state texture attribute. Only the backfaces of the scene need to be rendered. My approach so far is as follows: 1. Create the scene