im trying to port a video feedback sketch to openFrameworks. the setup is very simple, 2 FBO’s drawing into each other, one also draws to the screen. there is a third shader which is used to seed the system with noise.
(note that i’m using the programmable pipeline renderer, i have no desire to spend any time with the ancient openGL versions, also my existing glsl code is written for the newer style of openGL.)
the problem i’m running into is that i need the textures being bound to the FBOs to be in GL_REPEAT wrap mode. i get an openGL error (invalid enumerant) when I try to set this mode on any texture, unless I add a call to ofDisableArbTex() however, adding this call unfortunately breaks the texture sampling in my shaders (i did notice that ofDisableArbTex causes normalized texture coordinates to be used, and adjusted for it.) I can get a gradient across the screen but I can’t sample from textures! I tried changing sampler2DRect to sampler2D also.
im totally lost on this and i’ve probably spent more time trying to figure it out than it would take to write the code from scratch. any help would be greatly appreciated. i have uploaded a simple version of the project that only does noise through a blur, using FBOs: https://github.com/jrsa/blur_fbo_test/