Jump to content
  • Advertisement
Sign in to follow this  
mazelle

How to render an object that shine like light sources?

This topic is 3788 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 how to set-up light. But that's it, it's just light. I've been thinking of how to render light emitting objects like a flashlight or particles that emit light. I've thought of turning off lighting and depth rendering when rendering these kinds of objects (just render the texture or mesh). But it still feels wrong. What if the object will be rendered in 3D space? It wouldn't look normal. What's the correct way?

Share this post


Link to post
Share on other sites
Advertisement
Give the object some ambient light. It will then "glow" in the dark. If you create a light within the object, it will light other parts of the scene. The ovberall appearence is that the object is "glowing"

Share this post


Link to post
Share on other sites
You might use some kind of glow or bloom and enhance the effect for emissive textures to give the illusion of it being a source of light... ?

Share this post


Link to post
Share on other sites
A bit of post-processing to over-saturate or blur the light source will probably be an easy enough way of achieving this.

For spotlights (e.g. a torch) you can render light volumes using subtle semi-transparent volumes where the light should be. A bit like 'god rays' for example.

hth
Jack

Share this post


Link to post
Share on other sites
Have a look through Microsoft's, Nvidia's and AMD's developer SDK's - especially the latter two have lots of samples of neat effects and graphical tricks. You can probably find something that looks close to what you want and work from there.

hth
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!