Jump to content
  • Advertisement
Sign in to follow this  
vcGamer

Lens flare...

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

hi everybody... I'm searching for a good lens flare effect, I'm going to implement it in my game using Direct3D of course, I've found some topics with some source codes, but none were totally descriptive, can any one help me? I want to have it like in GTA..., I have a huge terrain. any source codes, comments, or articles... thanks

Share this post


Link to post
Share on other sites
Advertisement
I wrote a lens-flare sample with D3D7 and VB6 if you're interested [smile]

If you can get your hands on the Game Programming Gems books, there was a chapter in there on making lens flares.

The most difficult thing I found with lens flares was to make sure they occluded properly - the actual rendering is relatively trivial. Occlusion needs to be solved by some sort of ray-triangle intersection test, which can be a bit tricky to implement efficiently only for this algorithm (easy if you already have the code lying around!)..

You might want to have a read of:
Lens Flare Tutorial
The Art of Modeling Lens Flares
Both of which reside on this fine website [smile]

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!