I draw some points on screen with the bgl modul. I applied a custom 2D Filter onto my camera, but the GL drawings aren’t effected. My guess is that it has to do something wiht the pipeline of how and when things are calculated.
Anyway, is there a way to apply 2D filters onto GL stuff?
The problem is that are the 2D filters are appied befor you render your points with the bgl modu (post_draw).
It will work if you render your points in pre_draw, but then the scene objects wil be drawn over the points.
The easiest way would be to write a 2D filter which wil draw your points. Then you can apply your other filters on top of it.
You can also make an overlay scene where you apply your 2D Filter.
for the blend test :
1)you run the blend file as usual
2)you wait for the red rectangle appear (the bgl one)
3)then you press Space bar for running the 2D filter
bgl library run independantly from bge.
bgl seem to work directly on the graphics card.
we can directly run gl.py in the console witout runing bge
(Ctrl C / Ctrl V the gl.py code in the python console )
(and you crunch blender …)