Page MenuHome

2D Filter - custom uniform textures
Closed, ArchivedPublic

Description

This patch is a WIP but stable enough for feedback and comments.

The idea is to pass custom textures other then the color, depth or luminance buffer to the 2dfilter shader system.

For more details, you can check this old post:
http://blenderecia.orgfree.com/index.php/blender/2d-filters-glsl-e-custom-textures/

"""
How to use it:

* Select your image using Actuator->2DFilter->Uniform Texture (temporarily the texture most be applied to any object in your scene - the object don't need to be in a visible layer though)

* Choice the name you want to use in your shader (remember: you can't use names starting with gl_)

* Enable your custom filter as usual - Actuator->2DFiter->Custom Filter

* In your shader, acess your texture using sampler2d your_texture_name;
"""


I'm uploading a build at graphical as well.

2do list:
- check for the uniform in the shader before pass them (as we have with depth and luminance)
- create/remove texture that are not applied to any other BGE object
- figure out how to use EnableFilter properly (https://projects.blender.org/tracker/?func=detail&aid=18070&group_id=9&atid=125)
- rename variables and other details
- ...

Details

Type
Patch

Event Timeline

Patch updated to match Unix Line Ends.
No Splash Screens and no font files (BMF 15) this time.

Patch working in Linux now:
081213_c.patch

end of line problem solved:
patch Linux compatible: 081214_d.patch

081217_scons.patch
Blender Player support and scons support

assigning to Zaghaghi :)

Working on cleaning out the patch tracker:

Is this something still being worked on, or should this report be closed? If there is no response in a week, I will close this report. Active patches should start being migrated to Differential.

Mitchell Stokes (moguri) lowered the priority of this task from Normal to Low.Jul 4 2014, 10:27 AM

@Mitchell Stokes (moguri) this patch was never re-visited by me because if I remember correctly it would be addressed by the harmony 2nd phase by @Daniel Stokes (kupoman). I still think it's a needed feature and if harmony is no longer in the horizon I can give this another go in the near future (the patch itself is completely outdated, but the core idea is here anyways)

Aaron Carlisle (Blendify) closed this task as Archived.Sep 29 2018, 3:48 PM