Tootsville.AvatarViewer.createViewerInCanvas

Function

Tootsville.AvatarViewer.createViewerInCanvas is a function with lambda list: (toot, canvas, container)

Create a stand-alone Avatar Viewer in a CANVAS.

Create a 3D viewer with a single avatar in it, out of an arbitrary CANVAS element. Creates a Babylon 3D scene with just the avatar.

This is useful for paperdolls, character selection, &c.

The Toot info (avatar info) passed in must be in the form described at TOOTSVILLE TOOT-INFO, and will be ultimately passed to Tootsville.AvatarBuilder.build, qv.