Here’s a thread for dev conversation on making Modes for the openFrameworks / openGL / Lua version of EYESY.
Perhaps this can be a good place to share tips / tricks / techniques / questions for making ofLua Modes along with sharing scripts themselves (until patchstorage gets an EYESY category - see here to vote for adding the EYESY category there).
Here’s an example I made yesterday which uses Stereo inputs - audio changing circle size, z position, and color, knobs changing rotation.
(had to remove audio on this since it was something off my iPod and not cleared for YT)
They are 2 different “engines” so you can’t run them at the same time. But they can co-exist and you can easily switch between them from the web editor (without a device reboot).
I don’t believe there is a way to switch between engines from the device controls - only from the web editor (or via SSH).
Are there any Web resources that one might refer to in order to begin learning LUA/OFx/OpenGL in general or specifically as they relate to developing Modes for the EYESY?
Curious to see how this goes! I’ve got some old shader code I want to turn into an eyesy mode, but I’m new to OFx/Lua so still struggling to figure out how to do that
So I tried to adapt some shader code into a new mode yesterday and ran into the following issue
[ error ] ofShader: sorry, it looks like you can’t run ‘ARB_shader_objects’
[ error ] ofShader: please check the capabilites of your graphics card:
[ error ] ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
[ error ] ofShader: sorry, it looks like you can’t run ‘ARB_shader_objects’
[ error ] ofShader: please check the capabilites of your graphics card:
[ error ] ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
[ error ] ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
It seems as though you need to set the GL ES version to get shaders working on the Pi. I linked a similar github issue below that seems to solve this issue. The problem I’m running into however, is that the ofGLWindowSettings class being accessed in the c++ code in the github issue doesn’t seem to be implemented in the Lua build of OF. I’ll keep looking into this one but if anyone has any suggestions to address this that would be super helpful!
I ran into similar problems and didn’t get far in solving them.
The github issue above is in regards to OF 0.9.3 and things have changed a bit in OF 0.11.0 (which is what’s on EYESY). (I believe) ofGLWindowSettings settings; does not seem to be used now. Many of the OF shader examples didn’t work for me on the Pi. I worked on this like a month ago and don’t remember all the various details now.