Jump to content
  • Advertisement

Archived

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

SarsDP

Glow Effect

This topic is 5339 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

I know that there are many other posts about this topic, but i was wondering if anyone knew of a method to create a 3D glow effect using shaders, that doesn''t require rendering to a texture.

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately no. You''ll need to render the scene to an off-screen texture because you''ll need to blur it.

This may be a really weird idea, but you could try rendering both the plain scene and the blurred regions to the backbuffer one after the other... Might work.

Share this post


Link to post
Share on other sites
depends, on what kind of glow ya want... there has been billboarded glow around lights forever.

Share this post


Link to post
Share on other sites
Pretty much the requirements for the glow is that it has to be done with cg shaders, and that it can''t use OGRE''s render to texture, which left me without any ideas on how to do it.

Share this post


Link to post
Share on other sites
Use yer imagination. It is possible to do a glow effect with only render-to-texture, but your blur effect won''t be as good.

1) Render normal scene;

2) Make everything that is not glowing black, make everything that glows fully self-illuminated. Render to texture;

3) Blur the texture. That can be done by, as example, rendering the texture on top of itself, with a 50% blend, offset to the top, bottom, left and right (four renders). This may cause a performance hit if your texture is too big, so you may try to scale the texture down (the original, no blurred, texture could be drawn at full resolution, and then scaled down into half resolution for blurring).

4) Render the final texture on top of the screen buffer, with additive blending.

Tron 2.0 does more or less that, and it works in cards without pixel shaders.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!