View Full Version : ID buffer, normal buffer,(u,v)buffer
weicao
01-04-2004, 09:44 PM
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!
dorbie
01-04-2004, 09:58 PM
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
dorbie
01-04-2004, 10:03 PM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.