weiaicunzai / blender_shapenet_render

Blender render script for ShapeNet models
74 stars 28 forks source link

depth map not accurate? #4

Open hua-wu-que opened 4 years ago

hua-wu-que commented 4 years ago

It seems the generated depth map is only for visualization purpose? Could it be converted to an accurate point cloud?

locoxsoco commented 3 years ago

I got the same issue. I made a test rendering a perfect sphere, setting the camera looking at its center, and adjusting the clip start and clip end at the sphere borders to define the map value correctly.

image

With those parameters, the closest value, which is the center, should be 0 and the longest visible value, which is the borders, should be 128 (ranging values from 0 to 255). However, the results turned out to be 1 and 84~98.

image

I will try modifying from perspective to orthogonal view but if someone finds another method to use I would really appreciate it.