I would like to make some bump mapping on a very simplified surface. Of course, I need a normal map, and I would like to read it back from the frame buffer.
Does anybody knows how to ask Opengl to render the normal at each pixel? (x in red, y in green, z in blue). So I just have to make a glReadPixels after this rendering and I’ll have my normal map!