View Full Version : Read Z-buffer of a device context
atulrungta
03-04-2012, 10:13 PM
Hi all,
How can I read and write to the Z-buffer of a process? If for example, I have a visualization software running, is it possible for me to read (and possibly write) the Z-buffer values using GDI/OpenGL/DirectX?
Thanks,
Atul
tksuoran
03-05-2012, 06:49 AM
This is not quite simple, but doable. You could do something like that with a custom OpenGL*library wrapper. You could start with APITrace and modify it do what you need, instead of tracing.
atulrungta
03-05-2012, 10:49 AM
Okay. I'll give that a shot. Thanks tksuoran :)
Best,
Atul
atulrungta
03-16-2012, 03:20 PM
Hi,
As pointed to me by tksuoran, I looked at the codebase of ApiTrace. But I was unable to extract much out of it. I see that all these tracer software use their own OpenGL32.dll, why is that so? Is the dll doing the call intercept? If yes, how do I replicate the same (since the dll is not in a human readable format) ?
Thanks,
Atul
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.