reading z buffer

Blitz3D Forums/Blitz3D Programming/reading z buffer

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I tried the bufferimage functions you pointed out the last time, they were very interesting, thanks again.
Finally, I wrote a DLL that writes to an ImageBuffer.
Reading from an Imagebuffer is slow, however writing to it is fast. Maybe a graphic card is optimized for uploading data?

I used this technique to write a scaleimage .DLL, it is here: http://www.codersworkshop.com/viewshowcase.php?id=911

I think the zbuffer is a DirectDrawSurface:
http://externalweb.exhedra.com/DirectX4VB/Tutorials/DirectX7/IM_ZBuffer.asp
And I think the frontbuffer and backbuffer are ddsurfaces as well. Indeed they have a fair chance of being on the VRAM, unless you have an old graphic card.

Now if the ZBuffer is a surface, would it be possible to replace it with an ImageBuffer ?