SetElementId to the Id of the document element to be used as a texture. The texture is updated every frame to match the document element. As an example, this is being used in a Spine template project to map a webgl rendered Spine animation on a separate canvas to a quad on C3 screen and integrated with other C3 objects and layers on the C3 canvas.

For multiple element quads with different sources, experiment with using Clone vs Copy of the instance, this has not been tested yet.

The element can be can be one of the following types: HTMLImageElement, HTMLVideoElement, HTMLCanvasElement, ImageBitmap, OffscreenCanvas or ImageData. Note in worker mode the DOM types cannot be used (HTMLImageElement, HTMLVideoElement, HTMLCanvasElement); in this case use ImageBitmap or OffscreenCanvas instead.

Download

1.1.0.0 Stable (11.86 KB)

Info

Statistics

  • Download count247 total downloads
  • Latest download count 220 downloads of latest version
  • Average download count1 downloads per day average

Owners

  • 6 Comments

  • Order by
Want to leave a comment? Login or Register an account!