From: Wei F. <wei...@gm...> - 2009-09-12 10:43:33
|
hi, all using osmesa to do off screen render, i noticed that glReadPixels and OSMesaGetDepthBuffer can both get the depth buffer. so what's the difference between those two functions. is OSMesaGetDepthBuffer faster? and another question: how to convert the data getting from OSMesaGetDepthBuffer to float? according to osmesa.h, it's 16bit float. how to convert it to 32bit float? thanks in advance. |