rtgs.scene

Gaussian splatting scene that implements ray cast Taichi function.

Module Contents

Classes

SceneHit

Scene hit information.

Stack

Scene

A Gaussian splatting scene representation.

Data

API

rtgs.scene.logger = 'getLogger(...)'
class rtgs.scene.SceneHit

Scene hit information.

Parameters:
  • gaussian_idx – index of the gaussian in the scene Gaussian field.

  • intersections – the solution to Gaussian.hit(ray) as a vec2 interval.

gaussian_idx: int = None
intersections: taichi.math.vec2 = None
depth: int = None
rtgs.scene.vec_stack = 'vector(...)'
class rtgs.scene.Stack

Initialization

stack: rtgs.scene.vec_stack = None
top: int = None
size()
push(idx)
pop()
class rtgs.scene.Scene(max_num_node: int = 128, balance_weight: int = 1, leaf_prim=8)

A Gaussian splatting scene representation.

Parameters:

gaussian_field – a list of all the Gaussians in the scene.

Initialization

gaussian_field: taichi.StructField = None
bvh_field: taichi.StructField = None
max_num_node: int = None
balance_weight: int = None
leaf_prim: int = None
load_file(path: pathlib.Path, scale: float = 1)

Load ply or splt file as a Gaussian splatting scene.

Parameters:

path – ply or splt file path.

hit(ray)

Ray cast hit the Gaussian scene.

Parameters:

ray (Ray) – a camera ray.

Returns:

Scene hit info.

Return type:

SceneHit