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
- __init__(param0: SceneSetup)
- 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 withCamera.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.
- getWorldTransform() TransformState
Returns the position of the starting node relative to the camera. This is the inverse of the camera transform.
- 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.
- 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.