GeomVertexAnimationSpec

from panda3d.core import GeomVertexAnimationSpec
class GeomVertexAnimationSpec

Bases: GeomEnums

This object describes how the vertex animation, if any, represented in a GeomVertexData is encoded.

Vertex animation includes soft-skinned skeleton animation and morphs (blend shapes), and might be performed on the CPU by Panda, or passed down to the graphics backed to be performed on the hardware (depending on the hardware’s advertised capabilities).

Changing this setting doesn’t by itself change the way the animation is actually performed; this just specifies how the vertices are set up to be animated.

Inheritance diagram

Inheritance diagram of GeomVertexAnimationSpec

__init__(*args, **kwargs)
animation_type
assign()

C++ Interface: assign(const GeomVertexAnimationSpec self, const GeomVertexAnimationSpec other)

getAnimationType()

C++ Interface: get_animation_type(GeomVertexAnimationSpec self)

/**
  • Returns the type of animation represented by this spec.

*/

getIndexedTransforms()

C++ Interface: get_indexed_transforms(GeomVertexAnimationSpec self)

/**
  • This is only meaningful for animation_type AT_hardware. If true, it

  • indicates that the format uses indexed animation tables. It is false if

  • each vertex will reference the first _num_transforms table entries only.

*/

getNumTransforms()

C++ Interface: get_num_transforms(GeomVertexAnimationSpec self)

/**
  • This is only meaningful for animation_type AT_hardware. It specifies the

  • maximum number of transforms that might be simultaneously applied to any

  • one vertex by the data in this format.

*/

get_animation_type()

C++ Interface: get_animation_type(GeomVertexAnimationSpec self)

/**
  • Returns the type of animation represented by this spec.

*/

get_indexed_transforms()

C++ Interface: get_indexed_transforms(GeomVertexAnimationSpec self)

/**
  • This is only meaningful for animation_type AT_hardware. If true, it

  • indicates that the format uses indexed animation tables. It is false if

  • each vertex will reference the first _num_transforms table entries only.

*/

get_num_transforms()

C++ Interface: get_num_transforms(GeomVertexAnimationSpec self)

/**
  • This is only meaningful for animation_type AT_hardware. It specifies the

  • maximum number of transforms that might be simultaneously applied to any

  • one vertex by the data in this format.

*/

indexed_transforms
num_transforms
output()

C++ Interface: output(GeomVertexAnimationSpec self, ostream out)

/**

*/

setHardware()

C++ Interface: set_hardware(const GeomVertexAnimationSpec self, int num_transforms, bool indexed_transforms)

/**
  • Specifies that vertex animation is to be performed by the graphics hardware

  • (or at least by the graphics backend API, which is actually still free to

  • animate the vertices on the CPU).

  • This is only legal if the graphics hardware can support the specified

  • limits on number of transforms and/or indexed transforms. Also, no current

  • graphics API’s support morphing.

*/

setNone()

C++ Interface: set_none(const GeomVertexAnimationSpec self)

/**
  • Specifies that no vertex animation is represented by this spec.

*/

setPanda()

C++ Interface: set_panda(const GeomVertexAnimationSpec self)

/**
  • Specifies that vertex animation is to be performed by Panda. This is the

  • most general setting and can handle any kind of vertex animation

  • represented.

*/

set_hardware()

C++ Interface: set_hardware(const GeomVertexAnimationSpec self, int num_transforms, bool indexed_transforms)

/**
  • Specifies that vertex animation is to be performed by the graphics hardware

  • (or at least by the graphics backend API, which is actually still free to

  • animate the vertices on the CPU).

  • This is only legal if the graphics hardware can support the specified

  • limits on number of transforms and/or indexed transforms. Also, no current

  • graphics API’s support morphing.

*/

set_none()

C++ Interface: set_none(const GeomVertexAnimationSpec self)

/**
  • Specifies that no vertex animation is represented by this spec.

*/

set_panda()

C++ Interface: set_panda(const GeomVertexAnimationSpec self)

/**
  • Specifies that vertex animation is to be performed by Panda. This is the

  • most general setting and can handle any kind of vertex animation

  • represented.

*/