Skip to main content

Effects

  • Code location: /effects/entry.js

  • The Septopus Engine provides many basic special effects, such as moving, rotation, and scaling, which reduces the amount of code required for the animation part of accessory development and also reduces the difficulty of animation development.

NameDescriptionImplementation
move3D objects move on the XYZ axisSet the mesh's XYZ coordinates
rotateThe rotation angle of the 3D object on the XYZ axisSet the XYZ rotation of the mesh
scale3D objects are scaled proportionally on the XYZ axesSet the XYZ scale of the mesh
texture3D object material switchingUpdates the mesh material object to use the specified texture
color3D object color switchingUpdate the mesh's material object
opacityTransparency of 3D objectsUpdate the transparency of the mesh
morph3D object deformation switchingSwitch 3D mesh

Calling Method

  • Use a single entry point to call VBW.effects.get(target,animate,cfg) for basic animations.

  • Effects also provides the following functions.

    MethodFunctionSample
    setInitialize the systemVBW.effects.set(camera,scene)
    getGet a single animation processing methodVBW.effects.get(target,animate,cfg)
    groupMethod for batch obtaining animation processingVBW.effects.get(list)
    decodeParsing method for standard animationVBW.effects.decode(std, category)
  • The implementation of a single animation function is split into independent files, which is highly loosely coupled and can be easily expanded and maintained.

Customize Support

  • Effects supports Animation Protocol, but also supports customized animation calculation methods to create more exciting 3D worlds.