TOP 2D GL Coordinates vs ARB Rectangular Coordinates

I am running into some problems trying to build C++ extension in Touch Designer with two different types of GL coordinate systems being used.

From my understanding Touch Designer uses the standard 2D GL coordinate system for its TOP’s - is there anyway to convert a TOP to use ARB Rectangular coordinates?

Sam

2D texture are different objects types from a rectangle textures, they have a few differences but the main one is that 2D textures are sampled using normalized coordinates (0,1) while rectangle textures are sampled using integer pixel coordinates 0->w-1, 0->h-1. They also use different functions in GLSL to sample the texture.
You can’t treat a 2D texture as a rectangle texture. If you want to get a TOP into a rectangle texture you’ll need to copy it using GLSL (or other GL functions).
There is no reason why you can’t use a 2D texture as an input into openframeworks though.

ahh. OK. That clarifies it. I’ll try and rewrite the OFX code to use 2D textures, shouldn’t be too crazy.

Thanks malcom :slight_smile:

Sam