PyMaterialXRender.Camera

class Camera

Bases: pybind11_object

A simple camera class, supporting transform matrices and arcball functionality for object-viewing applications.

See:

https://materialx.org/docs/api/class_camera.html

Methods

__init__(*args, **kwargs)

create()

createOrthographicMatrix(arg0, arg1, arg2, ...)

createPerspectiveMatrix(arg0, arg1, arg2, ...)

createViewMatrix(arg0, arg1, arg2)

getProjectionMatrix(self)

getViewDirection(self)

getViewMatrix(self)

getViewPosition(self)

getViewportSize(self)

getWorldMatrix(self)

getWorldViewProjMatrix(self)

projectToViewport(self, arg0)

setProjectionMatrix(self, arg0)

setViewMatrix(self, arg0)

setViewportSize(self, arg0)

setWorldMatrix(self, arg0)

transformPointPerspective(arg0, arg1)

unprojectFromViewport(self, arg0)

Methods

__init__(*args, **kwargs)
static create() Camera
static createOrthographicMatrix(arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) Matrix44
static createPerspectiveMatrix(arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) Matrix44
static createViewMatrix(arg0: Vector3, arg1: Vector3, arg2: Vector3) Matrix44
getProjectionMatrix(self: Camera) Matrix44
getViewDirection(self: Camera) Vector3
getViewMatrix(self: Camera) Matrix44
getViewPosition(self: Camera) Vector3
getViewportSize(self: Camera) Vector2
getWorldMatrix(self: Camera) Matrix44
getWorldViewProjMatrix(self: Camera) Matrix44
projectToViewport(self: Camera, arg0: Vector3) Vector3
setProjectionMatrix(self: Camera, arg0: Matrix44) None
setViewMatrix(self: Camera, arg0: Matrix44) None
setViewportSize(self: Camera, arg0: Vector2) None
setWorldMatrix(self: Camera, arg0: Matrix44) None
static transformPointPerspective(arg0: Matrix44, arg1: Vector3) Vector3
unprojectFromViewport(self: Camera, arg0: Vector3) Vector3