stanford-shapenet-renderer icon indicating copy to clipboard operation
stanford-shapenet-renderer copied to clipboard

Id map does not show up

Open jimmy-academia opened this issue 3 years ago • 3 comments

I tested the script on a single shape net object file. All other renderings (image, albedo, depth, normal) rendered correctly, but the id map does not appear and there isn't any warning. Does anyone know what might be the issue?

models_r_000_albedo0001 models_r_000_depth0001 models_r_000_normal0001 models_r_000

jimmy-academia avatar Apr 09 '21 10:04 jimmy-academia

For example, if you assign obj.pass_index = 1 and have a color depth of 8 bits, then the value 1 is visually barely visible with 256 different values.

For a color depth of 16 bit you can in principle assign 65536 different object IDs in the scene.

mvoelk avatar Apr 09 '21 11:04 mvoelk

If I remember correctly from playing around some time ago, id map is only produced when --engine=CYCLES. Have you tried that?

panmari avatar Apr 12 '21 14:04 panmari

The passes 'Object Index' and 'Material Index' are not implemented in Eevee (2.92). Consequently id maps will only be generated with Cycles.

mvoelk avatar Apr 17 '21 09:04 mvoelk