Closed MaximilianBader closed 3 years ago
Hi @MaximilianBader,
receive any direct ray hits from the emitter to the sensor
Not really sure to understand what you mean by this. I see you are using a custom integrator (with a custom API). In this integrator do you trace the rays from the senor or the emitters? Do you expect a call to scene.ray_intersect()
to intersect with the camera maybe? This is not supported by the current sensor plugins (e.g. perpective
as those are infinitly small, similar to a point light).
Hi @Speierers,
Thanks for your hints: Indeed I'm using a custom integrator and I'm tracing the rays from the emitter to the sensor. I was indeed hoping to model an intersection of a very small emitter with a direct ray. However, as you said such an intersection cannot be expected without importance sampling the sensor in a realistic manner. Thus, after a discussion with a colleague I will now take a completely different approach to render the scene and define it differently.
Thanks again for your assistance and the enduring patience replying to all my issues!
Hi @Speierers,
now that I've been trying to model the effects in a different form, I'm wondering about the implementation of a volume emitter. Instead of creating a large number of small emitters in each voxel of a volume, I'd like to define a general volume and then assign an light emitting density function to this volume. Is it possible to implement this with Mitsuba2?
@MaximilianBader if this is unrelated to this thread, please open a seperate issue 😉
Yes you should be able to implement volumetric emitters in Mitsuba. Although this will require a little bit of work. I would recommend you read the volpath
integrators and maybe take a look at the Mitsuba 0.6
/PBRT implementation of volumetric emitters to get started.
In this future we might support this natively, but this is a low priority for us.
Summary
No direct ray hit between emitter and sensor which does not reflect phyiscal reality
System configuration
Platform: Ubuntu 20.04 in Windows WSL2 Compiler: Clang Python version: 3.9.5 Mitsuba 2 version: Own forked repo with extension (https://github.com/MaximilianBader/mitsuba2) Compiled variants: "scalar_rgb", "scalar_spectral", "scalar_mono", "packet_mono"
Description
I'm trying to render a scence consisting of a single spherical area emitter, one scattering interface and a single sensor element including the travel time of the respective rays. Rendering the scene with my forked repository (https://github.com/MaximilianBader/mitsuba2) and a custom python script, I encounter the issue that I do not receive any direct ray hits from the emitter to the sensor, but only a single ray hit via the scattering surface. However, in physical reality I do certainly expect a direct light propagation path from emitter to sensor. Do you have any suggestions or advices, how to overcome this issue?
Steps to reproduce
Python script:
Scene:
Output: