[feature] New filters for CommonFilters

Bug #1374393 reported by Juha Jeronen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
New
Undecided
Unassigned

Bug Description

New filters in this patch:

- Lens flare based on the algorithm by John Chapman. Panda implementation originally by ninth on the forums. I've just cleaned up the code a bit and made it to work together with CommonFilters.

- Desaturation (monochrome) filter with perceptual weighting, and configurable strength, tinting and hue bandpass. Original.

- Scanlines (CRT TV) filter (original). Both static and dynamic modes, configurable strength and which field to process, and the thickness of the desired scanlines (in pixels). Original.

Forum topic acting as a development blog:

https://www.panda3d.org/forums/viewtopic.php?f=9&t=17232

N.B.! This patch depends on first applying the cartoon shader patch in:

https://bugs.launchpad.net/bugs/1221546

Revision history for this message
Juha Jeronen (juha-jeronen) wrote :
Revision history for this message
Juha Jeronen (juha-jeronen) wrote :

Example programs showing how to use the lens flare. Contains binaries (textures), so included as a zip file.

This should go into samples/.

Contains a "Basic" tutorial in the same format as the existing ones, and ninth's original code as an "Advanced" tutorial.

Revision history for this message
Juha Jeronen (juha-jeronen) wrote :

Oh, and before I completely forget:

On the forum, a couple of years back, someone wanted RGB<->HSL colour conversions into Panda's library:

https://www.panda3d.org/forums/viewtopic.php?t=8877

This patch provides my own version of such conversions (in Python; also based on information from Wikipedia), but only as local to CommonFilters. These could be moved into some sensible place in the hierarchy.

Revision history for this message
Juha Jeronen (juha-jeronen) wrote :

Since the last comment, this has expanded into development of a new, modular postprocessing filter framework. Its development is tracked in this forum thread (containing also the code):

https://www.panda3d.org/forums/viewtopic.php?f=9&t=17232

The RGB<->HSL conversions mentioned above are (as of this writing) located in Desaturation.py.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.