cmu-ci-lab/MitsubaToFRenderer

Error rendering other mitsuba scenes using docker

Closed this issue · 3 comments

Hello Adithya,

Thank you for the fantastic work on Mitsuba ToF Renderer! I am successfully able to follow the README and run the docker image to use the mitsubaToFRenderer. However, it's only working for cbox (which is available in the repository). When I try to add a different Mitsuba Scene from https://benedikt-bitterli.me/resources/ I cannot render the image.

Here are the steps to reproduce the error:

Running the docker image


sudo docker run -it --rm --name mitsubadocker --hostname mitsubadocker -v <IN_DIR>/:/hosthome/ adithyapediredla/mitsubatofrenderer bin/bash

cd ~ && source /etc/environment && cd /hosthome

mitsuba scene.xml -D samples=16 -D decomposition=none -D tMin=0 -D tMax=20000 -D tRes=20000 -D modulation=none -D lambda=200 -D phase=0 -o output_data.exr

Here I replace <IN_DIR> with the path of the folder containing scene.xml file for the new mitsuba scene.

I get two different types of errors:

Type 1.

For bedroom scene files (Bedroom by SlykDrako) obtained from https://benedikt-bitterli.me/resources/ I get the following error:

mitsubatof-error-bedroomxml

For bathroom2 scene file (Salle de bain by nacimus) obtained from https://benedikt-bitterli.me/resources/ I get the following error:

Untitled

Type 2.

For staircase scene files (The wooden Staircase by Wig42) obtained from https://benedikt-bitterli.me/resources/ I get the following error:

Untitled (1)

Could you please guide me to resolve these errors?

Thank you very much for your time.

Hello Kaustubh:

Thank you for your interest in the renderer.

It seems that the scene is quite large (1.5 million primitives). It is possible that you ran out of RAM. You could try to simplify the scene or use a machine with larger RAM.

Please make sure to add the ToF rendering parameters (such as decomposition, minBound, maxBound etc.) to your scene.xml file to get the ToF functionality. You can copy them from the cbox scene (They should be in the hdrfilm). Please feel free to share your scene.xml file so I could comment if they are added properly.

The second error seems to be a problem in the way the scene is specified. I would try adding the gamma parameter as the error suggests. Every place where the bitmap is used for reflectance (), just add the gamma parameter. Fortunately, you have to add only three places.

Regards,
Adithya

Hello Adithya,

Thank you very much for such a quick response and for sharing all the useful pointers. I will try to make these changes and update you to the earliest.

Thank you once again.

Best Regards,
Kaustubh

Perfect! Switching to a smaller model worked. Thank you very much for the help. If there is any other problem I will open a new issue.

Best Regards,
Kaustubh


Future reference for anyone trying to render scenes from https://benedikt-bitterli.me/resources/ using the docker image - scenes like staircase and Veach, Bidir room work well with 32 GB RAM but models like Contemporary Bathroom and Bedroom need more RAM.