Hi Kim, Thanks for the suggestion. I have created the following scene graph to get the blur effect.
Group1
|
|
-------------------------------------
| |
| |
Geode Group 2
| |
|
--------------------------------------
Geometry1 | |
|
|
| |
Camera1
Switch[0] Switch[1]
|
|
|
|
Scene Group
|
|
Camera2
|
|
Group
|
|
Geode
|
|
Geometry2
Now let me describe the graph. Geometry1 is the texture aligned quad that
visualize the scene with HUD camera.
Group 2 has three children . First the Camera child renders the scene to a
texture and this texture works as a input texture to be blurred.
The Other 2 children are switch[2] nodes and that are flipped with key press
event. Initially the first switch is enabled. In the diagram i have only
detailed the first switch ,because the second switch is similar in structure.
When the application loads the scene it renders to the texture and i can
visualize it. The output texture from one of the switches are attached to the
HUD camera.
Each switch also contains the camra with absolute reference frame and shader
involved to the quad stateset
But with the key press event i flipped the texture and then i get a blank
screen.Any hint where should i look into to debug it?
I have using the gameoflife example to do the texture flip-flop.
Thanks in advance!
Cheers,
Sajjadul
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34529#34529
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

