Examples
Sinus Rotation 2timed sequenceRandom AnimationBool Animation Linkedimage sequence animationClockTriggerBetweenIn Out AnimTimelineValueEasing exampleBool animation simple
TransformRepeatRepeat 2DGrid Transform advancedattach html element in 3d attach 3d html elementGrid transform simple
Material BasicsBill boardwireframesvideo texturesinus / texcoord offsetsHSB color conversion360 pic to spherecolor area shader effectPhongMaterial exampleSpotLight - exampleSimple Vertex Displacement Map
Follow path arrayFollow path array flocktext meshinterpolate arraysgaussian distributed random numberstexture array loaderArrays and lines 01Geometry to pointsArrays And Lines 02circlecircle harmonicsspiralrainbouncing cubesArray logic between
GLTF/GLB File ExampleDraco Compression examplegltf example: vertex colors GLTF Example Shape Key Animgltf animation exampleGLTF example: Multiple UV ChannelsGLTFscene animation switchinggltf vertex animationGLTF Bones Animation Zombie Walkgltf example: how to load embedded texture GLTF example: skin with multiple meshes/materialsGLTF example: interpolation typesgltf scene example: animated skin attached to object anim GLTF Loose Edges and Pointsgetshader examplegltfsequence_dem
SVG texturevideo textureWebcam texturenoise texturestexture array loadertextarea / input exampleNoise textures 01Blend 2 texturesDisplacement sliceRotate with maskPixelate with maskPixel displace red greenFog texture examplefontfile exampleGLTF model with texturesExample: PixelDifference
intersect: mesh array pickingOrbit controlsClick Counterdistance2dphone motion sensorMouse Picking with StatescrollScreen position to 3Dvr teleportationmediapipe intersect ops interactivity examplesocketcluster example
html elementfade in/out html elementdiv elementattach html element in 3d attach 3d html elementcursor exampleCSS OP Examplehtml css property v2 exampleiFrame v2 examplemodal overlay example
GLTFscene animation switching
Open In Editor
List
GLTFscene op supports animation switching. In this example you will find a brief explanation on how we approach this with a sidebar and animation name array.
To create GLTF scenes with multiple animations for your characters and objects, you should prepare a 3D scene with multiple animations in your favorite 3D application - for example Blender. In blender this is achieved by creation Actions for your 3D scene.
example uses this 3D model: "Animated Swimming Great White Shark Loop" (https://skfb.ly/o9nIK) by LasquetiSpice is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).