Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Motion Blur without affecting background

This topic is 5703 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!