Replies: 1 comment 1 reply
-
Hello @crz06-CK, I don't believe that there was any special reasoning behind the position of the camera and the size of the receiving plane, the only constraint was that the field of view was fully covered by the receiving plane. Apart from that, it's pretty much arbitrary. For the kernel crash, you will need to post the full error and stack trace. One possibility is that your GPU runs out of memory with the higher render resolution, in which case you could e.g. lower the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the example : https://mitsuba.readthedocs.io/en/stable/src/inverse_rendering/caustics_optimization.html the receiving plane is postioned at a certain distance from the lens origin=[0, -7, 0] and so is the camera origin=[0, -4.65, 0],. I just cannot find the logic how this camera orgin is calculated. (trial n error or what's the math behind it?). The FOV of 45 doesn't cover the full receiving plane. If i change the lens origin to say =[0, -8, 0] and keep the camera as is, the final heightmap is zoomed in. So basically my question is how to calculate the correct camera origin?
# Receiving plane 'receiving-plane': { 'type': 'obj', 'id': 'receiving-plane', 'filename': 'meshes/rectangle.obj', 'to_world': \ mi.ScalarTransform4f.look_at( target=[0, 1, 0], origin=[0, -7, 0], up=[0, 0, 1] ).scale((5, 5, 5)), 'bsdf': {'type': 'ref', 'id': 'white-bsdf'}, },
# Looking at the receiving plane, not looking through the lens sensor_to_world = mi.ScalarTransform4f.look_at( target=[0, -20, 0], origin=[0, -4.65, 0], up=[0, 0, 1] )
a 3d setup of the camera (yellow) at origin=[0, -4.65, 0], and fov of 45. And receiving plane (grey) at origin=[0, -7, 0]. The lens (cyan) at origin=[0, 0, 0]
lens origin=[0, -8, 0] and so is the camera origin=[0, -4.65, 0]
lens origin=[0, -7, 0] and so is the camera origin=[0, -4.65, 0]
PS: any thoughts why the kernel crashes when
render_resolution = (512, 512)
by with low res works fine, like
render_resolution = (256, 256)
Beta Was this translation helpful? Give feedback.
All reactions