Dkvfx icon indicating copy to clipboard operation
Dkvfx copied to clipboard

Wrong depth decoding

Open sergiobd opened this issue 5 years ago • 1 comments

Hi Keijiro,

I'm opening another issue related to artifacts on depth data. I have been having wrong depth decoding which I first thought was due to hap conversion, then depth clipping. Now I've tracked down the problem to the RGB2Hue function in depthkit's shader code, and I solved it, though it still puzzles me why this does not happen on your captures.

Your capture:

My capture from Azure (has some strange depth segments):

If I replace the RGB2Hue function in Depthkits Common.hsls (I'm using these), the problem gets solved:

Posting this here in case someone runs into the same issues.

sergiobd avatar Jan 20 '20 07:01 sergiobd

@sergiobd I've been having the same issue for years with all my Depthkit clips shot with Azure Kinect. Is there any chance you could share the changes you made to Depthkit's Common.hsls? I looked at the functions you linked, but not really sure how to replace it. Thanks!

cpkcpkcpk avatar Jul 01 '22 15:07 cpkcpkcpk