-
I am experimenting with generated scenes where most of the object are simple primitives like cylinders or rects. I am interested to get irradiance readings for most of the scene object, so most of them contain irradiancemeters. I can't get the measured light right and I suspect that when I call Are objects that I turn to irradiancemeters occluders or not? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @isolin import mitsuba as mi
from mitsuba import ScalarTransform4f as T
mi.set_variant('cuda_ad_rgb')
scene_description = {
'type': 'scene',
'emitter': {
'type': 'cube',
'to_world': T.translate(mi.ScalarPoint3f(-5, 0, 0)),
'emitter' : {
'type': 'area',
'radiance': {
'type': 'rgb',
'value' : [0.9, 0.9, 0.9]
}
}
},
'irradiancemeter': {
'type': 'cube',
'to_world': T.translate(mi.ScalarPoint3f(5, 0, 0)),
'sensor' : {
'type': 'irradiancemeter',
'film': {
'type': 'hdrfilm',
'width': 1,
'height': 1
}
}
},
#'irradiancemeter_occluder': {
# 'type': 'cube',
# 'sensor' : {
# 'type': 'irradiancemeter',
# }
#},
'integrator': {
'type': 'path'
}
}
scene = mi.load_dict(scene_description)
out = mi.render(scene, spp=1024, sensor=scene.sensors()[0])
print(out) # Has value 0 if irradiancemeter_occluder is in the scene, othwise it's non-zero |
Beta Was this translation helpful? Give feedback.
Hi @isolin
I believe they still are occluders. I setup a scene with 3 cubes which are aligned to verify this: