Hi, you need to set the open GL renderer version in the main file as well as in the shader.
take a look at the shader examples and look at the main.cpp file. There is where you set the version. These examples support opengl 2 and >3
The blue and flickering could be that the shader itself that is not written for the mac, I don’t know, I always work in Metal, so the glsl and hlsl shader stuff I am not as familiar with - but since the OFX in general is a broken project on the Mac, my first assumption is that it could be an issue with OFX.
Do you use OFX on the Mac a lot? I really am just trying to compare the results of SMAA vs FXAA vs my other few anti-aliasing scripts. But I’ve been battling OFX for hours just trying to get the examples to run.
But maybe it is just because the shader is .hlsl which is a windows format?
By broken, I merely mean, that if I take a new Mac off the shelf and try to download and compile OFX, it will fail to compile. -My thinking was merely that a project that is not well maintained for the Mac, is likely to have numerous other problems on the Mac, and so when I ran into the blue and flicker/blank screen problem, I merely assume that it is either a problem in OFX or the shader.
one thing to note is that this is a project is almost 5 years old (and written for OF 0.8.0), so you might be suffering from some incompatibilities. Please take a look at the gl folder in examples for projects that are up to date, which may be helpful as a reference, etc.
Interesting, I’ve always found OF to be super easy to set up on with fresh Mac’s, much more so than any other platform. Maybe you’re not using the Project Generator to update projects and/or missing some steps in the setup process?
I got it working, i’ve attached the project. You’ll need to regenerate the xcode project using project generator. Just drag and drop the folder into project generator and press generate. ofxSmaaExample.zip (855.7 KB)
Getting OF to run on Mac is super easy and straight forwards. It is by far the easiest platform to work with.
I already posted a working version of the example you tried to run. Mostly, the problem was that the project needed to be updated with the project generator. There were some other minor things to change too, although all related to being some old code.
The hlsl thing is not an issue. all the shaders are in glsl.
last but not least, when speaking about openFrameworks we use OF while when speaking about an addon or addons in general we use OFX. I mention this as it is still not clear to me what you mean by OFX.