lens flare

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

lens flare

Post by Cleves »

hey all,

Ok i created a sun but how can i create the lens flare effect using irrlicht?
any ideas? :D
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Billboards.

Get the Ray from your sun to the camera and speckle it with flare billboards at random intervals including at a location almost on top of your camera's near value.
Crud, how do I do this again?
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

and how can tell the sun is visible?
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

Im not sure if this would work exactly but the collision detection demo shows how like you can like select an individual triange based on the direction the user is looking I would guess that maybe you (might) beable to use that? Im not sure exactly if it will work but it would be probably the best place to start id think.
Post Reply