Simulating Lens Flares?
spectecjr asks: "Everyone's seen lens flare effects being used in various 3D games recently (including Half Life, Unreal Tournament, etc); but typically, these effects are simulated using Photoshop to create textures which are then billboarded to the screen. So how do the people who write Photoshop plug-ins simulate lens flares? All the tutorials on the 'net seem to be of the nature of the fake-out method used above. So if you were going to write a lens flare simulation from scratch, how would you do it?" Interesting question. It would be interesting to know the mathematics behind modeling lens flares, using the Photoshop model and more realistic models, if they exist.
this page says that the appearance of the flare depends on the kind of camera that produced it. So if you want to simulate a flare the first question should be "what type of camera am I trying to simulate?"
Take a look at this article on gamedev.net. It might contain what you're after.
Gimp has a lens flare simulator in its FlareFX plug-in. Why not get the gimp source and find out how it does it? An option not available for the Photoshop version.
Baz