FFGL plugin. How to get screen aspect ratio from Arena?
Posted: Sun Mar 17, 2019 17:41
Hi! I am trying to write my own FFGL plugins for Arena using examples from Resolume github repo.
It does work, I am using my own 64bit plugins on Mac.
At the moment I have the problem I can not solve. I am developing a single "circle mask" plugin, which would create a circular mask. The problem is that FFGL screen coordinates are normalised to -1,1. So If I try to draw a circle in normalized coordinates it will be oval not circular. To draw a perfect circle in shader i have to know the actual screen aspect ratio. Is there a way to get this information from Arena? Are there any built in variables for that?
Another question is version of OpenGL/shader. What version of shaders is supported by Resolume Arena? This is important, because the GLSL language differs quite a lot from version to version...
Sorry if my questions are lame, I'm new to shaders and FFGL...
It does work, I am using my own 64bit plugins on Mac.
At the moment I have the problem I can not solve. I am developing a single "circle mask" plugin, which would create a circular mask. The problem is that FFGL screen coordinates are normalised to -1,1. So If I try to draw a circle in normalized coordinates it will be oval not circular. To draw a perfect circle in shader i have to know the actual screen aspect ratio. Is there a way to get this information from Arena? Are there any built in variables for that?
Another question is version of OpenGL/shader. What version of shaders is supported by Resolume Arena? This is important, because the GLSL language differs quite a lot from version to version...
Sorry if my questions are lame, I'm new to shaders and FFGL...