arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

How can I get aligned color image with human segmented depth?

Open bbico opened this issue 7 years ago • 1 comments

Hi, I'm now using human depth image in HumanSegmentationImage Sample, but I got no idea with aligned color and depth. So in sample project, human depth resolution showed us 256 x 192 resolution, as is not aligned with ar color camera output (1224 x 2466 or something with iphone xs max). Is there any way to get aligned color and depth images?

bbico avatar Aug 07 '19 07:08 bbico

Have a look at the ARKitShader.shader that comes with the ARKit ARFoundation package. In the vertex shader the camera uvs are transformed. So in the effect shader you pass two uv coordinates to the fragment shader.

sixpolys avatar Aug 14 '19 08:08 sixpolys