Panda3D Manual: Playing MPG and AVI files
  <<prev top next>>     

Panda now supports AVI format for textures in Panda.

Usage

myMovieTexture=loader.loadTexture("myMovie.avi")
myObject.setTexture(myMovieTexture)

there are also a bunch of utility functions (by default the texture loops)

myMovieTexture.play()
myMovieTexture.play(<first frame>, <end frame>)
myMovieTexture.loop()
myMovieTexture.loop(<first frame>, <end frame>)
myMovieTexture.stop()
myMovieTexture.pose(<frame to jump to>)

Issues

The video texure works by decoding on a frame by frame basis and copying into the texture buffer. As such, it is inadvisable to use more than a few high res video textures at the same time.

Certain encoding formats do not work. So far, DV format has been determined incompatible with Panda.

  <<prev top next>>