aan02016
12-20-2010, 03:08 AM
Hi,
how do I build textures during runtime as fast as possible every frame?
The program receive a stream from an USB-camera, then I want to make some maths with this stream so I just can't put it onto the screen... Instead I build a texturemapped QUAD...
But how to do this as fast as possible... The only way I can make it work is thru gluBuild2DMipmaps(...), I know it's both slow and the wrong way...
The texture or stream is 640x480 or 800x600... A non power of two and not square :p
I should and will use shaders but I think the big performance gain is a complete different way of doing this glu-thing...
I want some portability so how to do it in openGL 1.4/2.0/3.0 etc, or just some version if you have any ideas!
Any help or ideas is very welcome, thanks in advance!
how do I build textures during runtime as fast as possible every frame?
The program receive a stream from an USB-camera, then I want to make some maths with this stream so I just can't put it onto the screen... Instead I build a texturemapped QUAD...
But how to do this as fast as possible... The only way I can make it work is thru gluBuild2DMipmaps(...), I know it's both slow and the wrong way...
The texture or stream is 640x480 or 800x600... A non power of two and not square :p
I should and will use shaders but I think the big performance gain is a complete different way of doing this glu-thing...
I want some portability so how to do it in openGL 1.4/2.0/3.0 etc, or just some version if you have any ideas!
Any help or ideas is very welcome, thanks in advance!