ID buffer, normal buffer,(u,v)buffer

a lot of algorithms use these kinds of buffers, how can I generate these buffers?
as: ID image, normal image and get the (u,v) value for texture coordination of the pixel.

any code examples? or articles on implementation of these?

thanks a lot!

Look for examples of deferred shading. I think that’s close to what you’re looking for. It’ll certainly give you the right kind of insight.
http://www.delphi3d.net/articles/viewarticle.php?article=deferred.htm
http://www.paulsprojects.net/opengl/defshad/defshad.html

P.S. for coords you could output the coordinate values straight to the framebuffer or by placing numbers encoded in the color components of a high res texture. You could use high precision textures and buffers or multiple components.