Hi Sajjadul,

Blur effects are usually created as a post process effect whereby the scene
is first rendered to a texture and then shaders are used blur the image. The
result is then rendered to the screen as a full screen quad with the blurred
texture map applied.

You could do this on a key press by using either a switch or nodemask to
swap between the normally rendered scene and the textured fullscreen quad.

You may also want to look at osgPPU as it's designed for these sort of post
processing effects.

K.


On 3 December 2010 14:48, Sajjadul Islam <[email protected]> wrote:

> Hello forum,
>
> I want to blur a dynamic scene with key press event. In that case i have to
> create a call back.
>
> Do i have to create subclass of the osg::Camera::DrawCallback ?
>
> And Do i have to set that subclassed call back class to the camera's final
> draw call back or post draw callback?
>
> These concepts are still blurry. It would be really nice to provide some
> references on these concepts.
>
> Thank you!
>
> Cheers,
> Sajjadul
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=34495#34495
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to