HDR lens flare

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

HDR lens flare

Post by jingquan »

Does anyone have an idea of how to create ghosting effects around the bright areas of the scene as part of HDR postprocessing. I have thought of using the bright-filtered image to locate the ghosting spots, but how can I apply it and change it according to view?

Any articles would help too. Thanks.
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

Image
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Thanks, but is there any other free alternatives?
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

i think you can code it, though.

check if sun is in the viewing volume, then project a ray from it to the camera, you should be able to stick a billboard that looks like a flare.
Image
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Thanks. I've done tried similar sprite based. Although it works the results weren't really that nice. I'm looking for a true HDR based version of ghosting. Also, I'll need all of the intensly lit spots to have this feature, not just the sun.

This has awe-inspiring ghosting: http://www.daionet.gr.jp/~masa/rthdribl/
:cry:
I'll see if I can find more info on the web.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Ah, I see they scale the brightpassed image at the center:

Code: Select all

Out.texCoord1 = (texCoord-0.5)*(-2.0) + 0.5;
But I kept getting a repeat of the image if I downscaled it. How can I prevent this?
Post Reply