philkr / gamehook

BSD 2-Clause "Simplified" License
119 stars 23 forks source link

Depth maps using copyTarget function #10

Open juanraul8 opened 5 years ago

juanraul8 commented 5 years ago

I am working as a student assistant at university, I am trying to use gamehook library for one of the university projects.

As far as I could check in the source code, the function copyTarget only works with RenderTargetView.

How can I get the depth maps using the copyTarget function? If it is not possible, how can I get the depth maps using this library.

juanraul8 commented 5 years ago

I realize that info.target.depth dimensions are always 0x0 and the id is 0 or 1 for all drawing calls on onBeginDraw() and onEndDraw(). Therefore, it seems the DepthStencilView is not captured by the library.

NagabhushanSN95 commented 3 years ago

Any luck with getting the depth map?

GopiRajuMatta commented 2 years ago

Any follow up on this? If yes, can you please provide some guidelines to extract depth map.