PDA

View Full Version : Bitmap transformation



erez
02-11-2003, 06:58 AM
Hi All ,
I want to do the following task and i want to know if OpenGL has some support to do it.
Let say that i have 3 buffers SOURCE,TRANSFORM and DESTINATION.All buffers have the same width & height.
now lets say that the buffers SOURCE & DESTINATION are pictures and the buffer TRANSFORM will represent the transformation between the source and the destination.

The transformation rule is:
for each valid i,j

DESTINATION[i,j] = SOURCE[ TRANSFORM[i,j] ]
the value TRANSFORM[i,j] is the offset of the pixel in the buffer SOURCE.

Thanks in advanced ,
Feigenbaum Erez

ScottManDeath
02-11-2003, 07:19 AM
Originally posted by erez:
Hi All ,
I want to do the following task and i want to know if OpenGL has some support to do it.
Let say that i have 3 buffers SOURCE,TRANSFORM and DESTINATION.All buffers have the same width & height.
now lets say that the buffers SOURCE & DESTINATION are pictures and the buffer TRANSFORM will represent the transformation between the source and the destination.

The transformation rule is:
for each valid i,j

DESTINATION[i,j] = SOURCE[ TRANSFORM[i,j] ]
the value TRANSFORM[i,j] is the offset of the pixel in the buffer SOURCE.

Thanks in advanced ,
Feigenbaum Erez

Hi

you should go for NV_texture_shader or NV_ARB_fragment_program with dependent texure reads and dS/dT textures

Bye
ScottManDeath



[This message has been edited by ScottManDeath (edited 02-11-2003).]