My interpretation of technique from this article for Panda3D FilterManager.
The advantage of this approach is that any bright objects in the scene would create a lens flare without any special configuration of the scene.
Tested on Panda3D 1.8.0
Radeon HD 4850 and GF 7300 GS
Try to set basic-shaders-only #f in the Config.prc.
EDIT:
Hm, it’s strange, but seems that problem caused by input variables. Try this variant of invert_threshold_r_blur.sha with hardcoded radial blur parameters.
ADD2: ATI video cards (or drivers) are not too frendly with the input variables, so I had to transfer most of parameters to the shader code. Archive updated.
Woah! Man, this is one of the best looking things I’ve seen in Panda in 2012! Really, the effect is amazing and it runs perfectly smooth on my Intel GMA 4500 (your initial package, not the modified version; didn’t try that).
Keep up the great work!
You make me want using Panda again.
This looks like a very nice filter. I was preliminarily discussing with rdb the possibility of integrating it into CommonFilters.py in Panda.
What is the license for your code, and would you mind if this filter was made part of a basic install of Panda?
In case it’s ok, I can do the integration work, unless you specifically want to do it yourself. Using a similar approach as for the other filters, it would be possible to expose the compile-time parameters to the user, as CommonFilters already has the infrastructure to regenerate the filter code when certain parts of its configuration change.
(Note that there will probably be some changes to CommonFilters.py from my cartoon shader patch; e.g. the new version automatically numbers the TEXCOORDn semantics requested by the filters. Integration should be easier with the new version.)
I now have an initial integrated version ready. It was pretty straightforward. Thanks ninth!
The way I did the integration depends on some of the changes to CommonFilters in my cartoon shader patch, so likely that one will have to be processed first.
I made a new thread, in which I’ll post about any updates to the situation: