BillboardEffect¶
-
class BillboardEffect¶
Bases:
RenderEffectIndicates that geometry at this node should automatically rotate to face the camera, or any other arbitrary node.
Inheritance diagram
digraph inheritancea681312b22 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "BillboardEffect" [URL="acron.core.BillboardEffect.html#acron.core.BillboardEffect",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderEffect" -> "BillboardEffect" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RenderEffect" [URL="acron.core.RenderEffect.html#acron.core.RenderEffect",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderEffect" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- BillboardEffect.get_axial_rotate()¶
Returns true if this billboard rotates only around the axis of the up vector, or false if it rotates freely in three dimensions.
- static BillboardEffect.get_class_type()¶
- BillboardEffect.get_eye_relative()¶
Returns true if this billboard interprets the up vector relative to the camera, or false if it is relative to the world.
- BillboardEffect.get_fixed_depth()¶
Returns true if this billboard always appears at a fixed distance from the camera.
- BillboardEffect.get_look_at()¶
Returns the node this billboard will rotate to look towards. If this is empty, it means the billboard will rotate towards the current camera node, wherever that might be.
- BillboardEffect.get_look_at_point()¶
Returns the point, relative to the
look_at()node, towards which the billboard will rotate. Normally this is (0, 0, 0).
- BillboardEffect.get_offset()¶
Returns the distance toward the camera (or the look_at_point) the billboard is moved towards, after rotating. This can be used to ensure the billboard is not obscured by nearby geometry.
- BillboardEffect.get_up_vector()¶
Returns the up vector in effect for this billboard.
- BillboardEffect.is_off()¶
Returns true if the
BillboardEffectis an ‘off’BillboardEffect, indicating that it does not enable billboarding. This kind ofBillboardEffectisn’t particularly useful and isn’t normally created or stored in the graph; it might be implicitly discovered as the result of a NodePath::get_rel_state().
- static BillboardEffect.make()¶
Constructs a new
BillboardEffectobject with the indicated properties.
- static BillboardEffect.make_axis()¶
A convenience function to make a typical axis-rotating billboard.
- static BillboardEffect.make_point_eye()¶
A convenience function to make a typical eye-relative point-rotating billboard.
- static BillboardEffect.make_point_world()¶
A convenience function to make a typical world-relative point-rotating billboard.