PDA

View Full Version : 32 bit integer single channel color buffer & FBO



marco_dup1
02-08-2005, 11:57 AM
Hi

Is there a real chance that I would get a RenderBuffer of 32 bit integers? I use this as a ID buffer. A single channel buffer would simplify my code. 24 bit would be also ok but 16 bit is a little bit to few.

thanks and regards

Marco

Relic
02-08-2005, 10:01 PM
Nope. The trend goes to floats.
For pixel IDs in a color buffer the usual method is to use an RGBA8 32 bit buffer and encode the number in the RGBA channels.
Make sure everything which could change the input color (lighting, blending, texturing, etc.) is off when rendering the IDs.

marco_dup1
02-09-2005, 12:27 AM
Originally posted by Relic:
Nope. The trend goes to floats.
For pixel IDs in a color buffer the usual method is to use an RGBA8 32 bit buffer and encode the number in the RGBA channels.
Make sure everything which could change the input color (lighting, blending, texturing, etc.) is off when rendering the IDs.Thats what I now do. But how can I sure its robust?