Hi, The examples are perfectly working now. So I tried to make my own pipeline inspired by all of it.
I made a pipeline composed of three shaders. The first one: green Input: external texture output: nothing is made, so the original green texture I made. I chosed the UnitTexture. The second one: red input: the output of the first one output: the output of the first one + red color I chosed the unitInOut and I have set the input like this: rougeUnit->setInputToUniform(greenUnit,"textureBase2D",true); The third one: blue input: the output of the second one output: the output of the second one + blue color I chosed the unitInOut and I have set the input like this: rougeUnit->setInputToUniform(redUnit,"textureBase2D",true); Then I made a UnitOut to send the result to the screen. ppuout->setInputTextureIndexForViewportReference(-1); I get a black screen, so I guess it did not work at all. Am I doing something wrong this far? Another thing which may be the problem source: I don't understand the viewport & camera thing. In the examples I see that sort of thing: osg::Viewport* vp = camera->getViewport(); camera->setViewport(vp); So it's equal to camera->setViewport(camera->getViewport) and seems strange. Then I don't understand the purpous of that function: ppuout->setInputTextureIndexForViewportReference(-1); It says "Set index of an input texture which size is used as reference for the viewport size" and that -1 is for camera. I'm lost as usual :| Thank you for your time and help. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17569#17569 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

