SceneSetup

from panda3d.core import SceneSetup
class SceneSetup

Bases:

Bases: TypedReferenceCount

This object holds the camera position, etc., and other general setup information for rendering a particular scene.

Inheritance diagram

Inheritance diagram of SceneSetup

__init__(param0: SceneSetup)
getCameraNode() Camera

Returns the camera used to render the scene.

getCameraPath() NodePath

Returns the NodePath to the camera.

getCameraTransform() TransformState

Returns the position of the camera relative to the starting node.

static getClassType() TypeHandle
getCsTransform() TransformState

Returns the transform from the camera’s coordinate system to the GSG’s internal coordinate system.

getCsWorldTransform() TransformState

Returns the position from the starting node relative to the camera, in the GSG’s internal coordinate system.

getCullBounds() BoundingVolume

Returns the bounding volume that should be used to perform view-frustum culling (in the space of getCullCenter()). This is normally the current lens’ bounding volume, but it may be overridden with Camera.setCullBounds().

getCullCenter() NodePath

Returns the point from which the culling operations will be performed. This is normally the camera, but if camera->set_cull_center() has been specified, it will be that special node instead.

getDisplayRegion() DisplayRegion

Returns the display region for the scene.

getInitialState() RenderState

Returns the initial state as set by a previous call to setInitialState().

getInverted() bool

Returns the current setting of the inverted flag. When this is true, the scene is rendered into the window upside-down, flipped like a mirror along the X axis.

getLens() Lens

Returns the particular Lens used for rendering.

getSceneRoot() NodePath

Returns the root node of the scene.

getViewportHeight() int

Returns the height of the viewport (display region) in pixels.

getViewportWidth() int

Returns the width of the viewport (display region) in pixels.

getWorldTransform() TransformState

Returns the position of the starting node relative to the camera. This is the inverse of the camera transform.

setCameraNode(camera_node: Camera)

Specifies the camera used to render the scene.

setCameraPath(camera_path: NodePath)

Specifies the NodePath to the camera.

setCameraTransform(camera_transform: TransformState)

Specifies the position of the camera relative to the starting node.

setCsTransform(cs_transform: TransformState)

Specifies the transform from the camera’s coordinate system to the GSG’s internal coordinate system.

setCsWorldTransform(cs_world_transform: TransformState)

Specifies the position from the starting node relative to the camera, in the GSG’s internal coordinate system.

setDisplayRegion(display_region: DisplayRegion)

Specifies the display region for the scene.

setInitialState(initial_state: RenderState)

Sets the initial state which is applied to all nodes in the scene, as if it were set at the top of the scene graph.

setInverted(inverted: bool)

Changes the current setting of the inverted flag. When this is true, the scene is rendered into the window upside-down and backwards, that is, inverted as if viewed through a mirror placed on the floor.

setLens(lens: Lens)

Indicates the particular Lens used for rendering.

setSceneRoot(scene_root: NodePath)

Specifies the root node of the scene.

setViewportSize(width: int, height: int)

Specifies the size of the viewport (display region), in pixels.

setWorldTransform(world_transform: TransformState)

Specifies the position of the starting node relative to the camera. This is the inverse of the camera transform.