Cameras

ACamera defines a position and view directionfor rendering the scene.

../../_images/camera.png

A new camera can be instantiated as follows:

scene=load_scene(rt.scene.munich)cam=Camera(position=(200.,0.0,50.))cam.look_at((0.0,0.0,0.0))scene.render(cam)
../../_images/camera_example.png
classsionna.rt.Camera(position,orientation=(0.0,0.0,0.0),look_at=None)[source]

Camera defining a position and view direction for rendering a scene

In its local coordinate system, a camera looks toward the positive X-axiswith the positive Z-axis being the upward direction.

Parameters:
  • position – Position\((x,y,z)\) [m] as three-dimensional vector

  • orientation – Orientation\((\alpha, \beta, \gamma)\) specifiedthrough three angles corresponding to a 3D rotationas defined in(3).This parameter is ignored iflook_at is notNone.

  • look_at – A position or object to look at.If set toNone, thenorientation is used to orient the device.

look_at(target)[source]

Sets the orientation so that the camera looks at a position,scene object, or radio device

Given a point\(\mathbf{x}\in\mathbb{R}^3\) with spherical angles\(\theta\) and\(\varphi\), the orientation of the camerawill be set equal to\((\varphi, \frac{\pi}{2}-\theta, 0.0)\).

Parameters:

target (sionna.rt.radio_devices.radio_device.RadioDevice |sionna.rt.scene_object.SceneObject |mitsuba.Point3f) – A position or object to look at.

Return type:

None

propertyorientation

Get/set the orientation

Type:

mi.Point3f

propertyposition

Get/set the position

Type:

mi.Point3f