View Full Version : Read Z-buffer of a device context
03-04-2012, 11:13 PM
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?
03-05-2012, 07: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.
03-05-2012, 11:49 AM
Okay. I'll give that a shot. Thanks tksuoran :)
03-16-2012, 04:20 PM
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) ?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.