X3DScene
wrapper_class: Scene
default_light_type: str
light_types: dict
default_viewpoint: dict
camera_sensor_def: str
camera_rig_def: str
default_up_vector: tuple
default_right_vector: tuple
default_view_vector: tuple
default_view_distance: int
__init__(self, *children: 'X3DPrimitive', background=None, environment=True, lighting=None, navigation=None, viewpoint=None, **opts):
LLM Docstring
Set up a scene primitive with an optional background and viewpoint.
children:Anythe scene’s child primitives
background:Anythe background specification
viewpoint:Anythe viewpoint specification
environment:AnyTrue/False/None, a dict ofEnvironmentoptions, or anX3DEnvironmentlighting:Anya list of light specs (dicts with a
typekey resolving vialight_types, orX3DLightinstances)opts:Anyextra scene options
@classmethod
resolve_light(cls, light_spec) -> 'X3DLight':
Resolve a lighting spec (a dict keyed by light type, defaulting to default_light_type,
or an already-built light object) into an X3DLight instance.
light_spec:Anythe lighting spec
:returns:X3DLightthe light
@classmethod
get_view_settings(cls, up_vector=None, view_vector=None, right_vector=None, view_distance=None, view_center=None, view_matrix=None, view_position=None, return_settings=False, **etc):
LLM Docstring
Build viewpoint settings (position/orientation/etc.) from a flexible view specification.
args:Anypositional view arguments
kwargs:Anyview options
:returns:dictthe viewpoint settings