Actually there is plenty of stuff online about blooming in openGL.
The best way would be to sue GLSL shaders. You can use openGL code directly in any OF application so I would simply recommend you to read yourself into openGL and GLSL shaders a little more.
There is allready an addon that makes using shaders inside of OF really easy.
[quote author=“moka”]Actually there is plenty of stuff online about blooming in openGL.
The best way would be to sue GLSL shaders. You can use openGL code directly in any OF application so I would simply recommend you to read yourself into openGL and GLSL shaders a little more.
There is allready an addon that makes using shaders inside of OF really easy.[/quote]
Thanks a lot for the reply!
Well can I actually make that ofCircle(100,400,radius); bloom using regular OpenGL shaders? I couldn’t figure out how to apply that shader into the OF circle.
But as you said I will read more into opengl and shaders. Will update this as soon as I got something working!
I still couldn’t figure out how to apply the GLSL shader and get the bloom effect… but I found an alternative way with transparent PNGs. (with ofAlphaBlending).
Is it fine to use transparent PNG images to add visual effects (like bloom, glow) to an openframeworks (opengl) application?
What were the errors? I have been searching for a good bloom GLSL shader myself. I have found HLSL ones but that does not help when you primarily work on MacOS.
The mysterious runtime error. Can you bring up a debugger mode and see where it stops?
Try to run the program without the shader code to see if the error is there. It could be that you are not calling the shader correctly. Try a simple shader from here: http://www.lighthouse3d.com/opengl/glsl/
I’d have to look at my notes I rewrote ofShader to remove the ARB extensions.