Closed ibcny closed 7 years ago
Hi @phanax
By default, Mitsuba apply a Gaussian filter to the final render output. You can add
<rfilter type="box" />
to the
You can also try spp=1, which means only shoot one ray per pixel. With box filter, it would provide a depth map without averaging samples.
If you don't care too much about boundary pixels (usually I would get rid of them), you can set
<spectrum name="undefined" value="1000000" />
in the
And if you want a exact accurate depth map with clear boundary, maybe you can try to write an OpenGL shader.
Hi,
I'm using the xml script below to extract depth maps from the shapenet v2 object models. The problem is that depth information around the edges seem to be filtered somehow and the pixels are either blurred or crooked and do not represent the real values of the depth information wrt to the camera positions. Depth values start from zero for the background and grow smoothly around the edges. A snapshot is also attached below. Do you have any idea to resolve this issue?
`<?xml version="1.0" encoding="utf-8"?>
`