collada.light.AmbientLight

class collada.light.AmbientLight(id, color, xmlnode=None)

Bases: collada.light.Light

Ambient light as defined in COLLADA tag <ambient>.

digraph inheritance62d63eb89a { rankdir=LR; size="8.0, 12.0"; "AmbientLight" [URL="#collada.light.AmbientLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Ambient light as defined in COLLADA tag <ambient>."]; "Light" -> "AmbientLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundAmbientLight" [URL="collada.light.BoundAmbientLight.html#collada.light.BoundAmbientLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Ambient light bound to a scene with transformation. This gets created when a"]; "BoundLight" -> "BoundAmbientLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundDirectionalLight" [URL="collada.light.BoundDirectionalLight.html#collada.light.BoundDirectionalLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Directional light bound to a scene with transformation. This gets created when a"]; "BoundLight" -> "BoundDirectionalLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundLight" [URL="collada.light.BoundLight.html#collada.light.BoundLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Base class for bound lights"]; "BoundPointLight" [URL="collada.light.BoundPointLight.html#collada.light.BoundPointLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Point light bound to a scene with transformation. This gets created when a"]; "BoundLight" -> "BoundPointLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundSpotLight" [URL="collada.light.BoundSpotLight.html#collada.light.BoundSpotLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Spot light bound to a scene with transformation. This gets created when a"]; "BoundLight" -> "BoundSpotLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DaeObject" [URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="This class is the abstract interface to all collada objects."]; "DirectionalLight" [URL="collada.light.DirectionalLight.html#collada.light.DirectionalLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Directional light as defined in COLLADA tag <directional> tag."]; "Light" -> "DirectionalLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Light" [URL="collada.light.Light.html#collada.light.Light",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Base light class holding data from <light> tags."]; "DaeObject" -> "Light" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PointLight" [URL="collada.light.PointLight.html#collada.light.PointLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Point light as defined in COLLADA tag <point>."]; "Light" -> "PointLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SpotLight" [URL="collada.light.SpotLight.html#collada.light.SpotLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Spot light as defined in COLLADA tag <spot>."]; "Light" -> "SpotLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
__init__(id, color, xmlnode=None)

Create a new ambient light.

Parameters:
  • id (str) – A unique string identifier for the light
  • color (tuple) – Either a tuple of size 3 containing the RGB color value of the light or a tuple of size 4 containing the RGBA color value of the light
  • xmlnode – If loaded from xml, the xml node

Methods

__init__(id, color[, xmlnode]) Create a new ambient light.
bind(matrix) Binds this light to a transform matrix.
load(localscope, node)
save() Saves the light’s properties back to xmlnode
id = None

The unique string identifier for the light

color = None

Either a tuple of size 3 containing the RGB color value of the light or a tuple of size 4 containing the RGBA color value of the light

xmlnode = None

ElementTree representation of the light.

save()

Saves the light’s properties back to xmlnode

bind(matrix)

Binds this light to a transform matrix.

Parameters:matrix (numpy.array) – A 4x4 numpy float matrix
Return type:collada.light.BoundAmbientLight