mitsuba-renderer / mitsuba2

Mitsuba 2: A Retargetable Forward and Inverse Renderer
Other
2.05k stars 266 forks source link

The porlarization example in the demo video #622

Closed 774880930 closed 2 years ago

774880930 commented 2 years ago

[❔ other question] Recently I've been studying simulations of optical polarization,Do you have the XML file for the first optical polarization example in the demo video?

merlinND commented 2 years ago

Hello @774880930,

I don't have this scene file available, but perhaps this polarization tutorial from Mitsuba 3 helps? https://mitsuba.readthedocs.io/en/latest/src/rendering/polarized_rendering.html

tizian commented 2 years ago

Here is the scene used for the car example: polarization-car.zip

This is a modified version of a scene from Benedikt Bitterli's rendering resources, originally created by Blendswap user "thecali".

EDIT: I forgot to say that the scene here has a tweakable theta parameter (defined in line 5) that corresponds to the rotation of the linear polarizer in degrees. This can also be set directly via the command line interface as, e.g., -Dtheta=90.