Hi all !
I couldn't figure out how to write to a texture using the current FFGL 2.0 sdk for resolume.
Anybody has an example of cpu generated picture sent to "pGL->inputTextures[ 0 ]" in the processOpenGl method ?
all the best
Write To Texture
Write To Texture
Audio-reactive Led designer
https://visualsystem.org/
https://fr.linkedin.com/in/pierre-gufflet-07803697
https://visualsystem.org/
https://fr.linkedin.com/in/pierre-gufflet-07803697
Re: Write To Texture
FreeFrame 1.0 is no longer supported so there's no cpu processing for images anymore. You need to use OpenGL to render textures. You can start by looking at the AddSubtract effect for example. When you're following an OpenGL tutorial pay particular attention to framebufferobjects, that's what you need to capture opengl output if you're interrested in that.
Re: Write To Texture
Ok, but is it still possible to simply load an image (or fill an array in cpu side) and fill a texture with it, like a generator does?
Audio-reactive Led designer
https://visualsystem.org/
https://fr.linkedin.com/in/pierre-gufflet-07803697
https://visualsystem.org/
https://fr.linkedin.com/in/pierre-gufflet-07803697
Re: Write To Texture
Yes you will want to use OpenGL's glTexImage2D function.
This tutorial contains a description on how to load textures: http://www.opengl-tutorial.org/beginner ... ured-cube/
This tutorial contains a description on how to load textures: http://www.opengl-tutorial.org/beginner ... ured-cube/
Re: Write To Texture
Nice tutorial! All the way from explaining and coding for a BMP file to using DXT compressed textures. Interested to run through that myself some time.