Cameras

A Camera defines a position and view direction for 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
class sionna.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-axis with the positive Z-axis being the upward direction.

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

  • orientation – Orientation (α,β,γ) specified through three angles corresponding to a 3D rotation as defined in (3). This parameter is ignored if look_at is not None.

  • look_at – A position or object to look at. If set to None, then orientation 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 xR3 with spherical angles θ and φ, the orientation of the camera will be set equal to (φ,π2θ,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

property orientation

Get/set the orientation

Type:

mi.Point3f

property position

Get/set the position

Type:

mi.Point3f