mitsuba-renderer / mitsuba2

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

Can I change the parameter "to_world" in my python file? #613

Closed JakeXin7 closed 2 years ago

JakeXin7 commented 2 years ago

[❔ other question]

Description

I list the ParameterMap of camera,

ParameterMap[ PerspectiveCamera.near_clip, PerspectiveCamera.far_clip, PerspectiveCamera.focus_distance, PerspectiveCamera.shutter_open, PerspectiveCamera.shutter_open_time ]

How can I render the scene with a new view direction? Can I change the parameter "to_world" of the camera in my python file?

Speierers commented 2 years ago

Currently this parameter is not exposed in the parameter map. Instead you can instanciate another sensor using the load_dict function and use this new sensor for rendering.

JakeXin7 commented 2 years ago

OK, thanks for help.