Live3D
The Live3D plug-in displays VRML worlds. In order to use it, you will have to understand VRML technology. The API consists of the following ten methods and two callbacks:
AnimateObject(obj,url)- Animate the object
objusing the animation file specified byurl. Supported animation formats include VUEformat from Autodesk. DeleteObject(obj)- Delete the specfied object
objfrom the scene graph. GotoViewPoint(viewpoint,frames)- Move the virtual camera to the named
viewpoint. Animate the move using the number of frames specified byframes. HideObject(obj)- Hide the specified object
obj. LoadScene(url,frame)- Load a new scene from the specified
urlinto the specifiedframe. Ifframeisnull, then the scene is loaded into the current frame. MorphObject(obj,num_vertices,coordinates,frames,morphtype)- This method morphs the object
objby interpolating its vertices onto those specified bycoordinates. The interpolation is animated over the number of frames specified byframes. Themorphtypeargument specifies what type of morph should be performed. It should be one of "ONCE", "BACKFORTH", or "LOOP". onAnchorClick()- This is not a method but an event handler. It is invoked when an anchor within the 3D scene is clicked.
onMouseMove()- This event handler is invoked whenver the mouse moves within the Live3D plug-in window.
SetBackgroundImage(url)- This method load the specified
urlas the background image for the current scene. Various image formats are supported, including PNG, RGB, GIF, JPEG, BMP and RAS. SetAnchorObject(obj,url)- Sets the "anchor" or hypertext link of the specified object
objto the specifiedurl. ShowObject(obj)- Makes the specified object
objvisible. SpinObject(obj,pitch,yaw,roll,local)- This method spins the specified object
obj. Thepitch,yaw, androllarguments are Boolean values that specify which axes the object should be rotated around. Iflocalisfalse, then the rotation occurs in world coordinate space; otherwise it occurs around the geometric center of the object.