Transforms

How do u implement a hough transform on OpenGL?
that brings me to another question… are there any API’s to convert OpenGL images to .bmp (etc) … and to read from a rendered image???
How about reading frame buffers at run time (or real time).

:confused:

A quick Google or searching the Opengl Forums here or a vistit to NeHe’s site would probably get you most of the information and samples you need

http://nehe.gamedev.net/

you can read the frame buffer at run time with:

 glReadPixels(...);

the parameters include start position, width, height, data type, format, storage array.

the type should be GL_UNSIGNED_BYTE
the format should be GL_RGB

the array should be declared:

char* data=(char*)malloc(sizeof(char)*width*height*3);