gs.options.ViewerOptions 选项#

class genesis.options.ViewerOptions(*, res: tuple | None = None, refresh_rate: int = 60, max_FPS: int | None = 60, camera_pos: tuple = (3.5, 0.5, 2.5), camera_lookat: tuple = (0.0, 0.0, 0.5), camera_up: tuple = (0.0, 0.0, 1.0), camera_fov: float = 40)[源代码]#

基类:Options

Options configuring preperties of the interactive viewer.

备注

The viewer’s camera uses the Rasterizer backend regardless of gs.renderers.* when creating the scene.

参数:
  • res (tuple, shape (2,), optional) – The resolution of the viewer. If not set, will auto-compute using resolution of the connected display.

  • refresh_rate (int) – The refresh rate of the viewer.

  • max_FPS (int | None) – The FPS (frames per second) the viewer will be capped at. Note that this will also synchronize the simulation speed. If not set, the viewer will render at maximum speed.

  • camera_pos (tuple of float, shape (3,)) – The position of the viewer’s camera.

  • camera_lookat (tuple of float, shape (3,)) – The lookat position that the camera.

  • camera_up (tuple of float, shape (3,)) – The up vector of the camera’s extrinsic pose.

  • camera_fov (float) – The field of view (in degrees) of the camera.

gs.options.ViewerOptions 提供了用于配置查看器的选项。此类包含了多种属性,可以用来定制查看器的行为和外观。