Motion Blur without affecting background
Hello list,
I''m trying to implement motion blur for a specified object. My problem is, this object is in a room and the room has to be rendered as well (without blur). I''ve thought I could render the whole scene to a texture and later render the texture on top of all objects with some alpha, but how do I get it that the room is not affected, only my object? If I would render only the object to the texture in the next frame the room would become very dark. Any tips?
_____________________________________
Visit http://www.nilsschneider.de for finest trance music, studio, bio, guestbook and more!
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
the easiest way is to render the entire scene with the object several times(let''s say 10) to an array of textures, then combine all of them by blending them together with GL_SRC_ALPHA,GL_ONE.
and with a alpha of 0.1.
Another way is to render the object several times(while moving it backwards) each time progressivly more transparent.
IF you want to do a cheap thing then do as in tuturial 36, first render the object to a texture, render the entire scene(with object), then finaly blend the texture you just rendered in a trail behind it.
and with a alpha of 0.1.
Another way is to render the object several times(while moving it backwards) each time progressivly more transparent.
IF you want to do a cheap thing then do as in tuturial 36, first render the object to a texture, render the entire scene(with object), then finaly blend the texture you just rendered in a trail behind it.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement