How to use the AnimationUtils function from three

Find comprehensive JavaScript three.AnimationUtils code examples handpicked from public code repositorys.

1323
1324
1325
1326
1327
1328
1329
1330
1331
      var targetName = node.name ? node.name : node.uuid;
      var interpolation = sampler.interpolation !== undefined ? INTERPOLATION[sampler.interpolation] : THREE.InterpolateLinear; // KeyframeTrack.optimize() will modify given 'times' and 'values'
      // buffers before creating a truncated copy to keep. Because buffers may
      // be reused by other tracks, make copies here.

      tracks.push(new TypedKeyframeTrack(targetName + '.' + PATH_PROPERTIES[target.path], THREE.AnimationUtils.arraySlice(inputAccessor.array, 0), THREE.AnimationUtils.arraySlice(outputAccessor.array, 0), interpolation));
    }
  }
}
fork icon0
star icon1
watch icon0

+ 9 other calls in file

2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
// be reused by other tracks, make copies here.
for (var j = 0, jl = targetNames.length; j < jl; j++) {
  var track = new TypedKeyframeTrack(
    targetNames[j] + '.' + PATH_PROPERTIES[target.path],
    THREE.AnimationUtils.arraySlice(inputAccessor.array, 0),
    THREE.AnimationUtils.arraySlice(outputAccessor.array, 0),
    interpolation,
  );

  // Here is the trick to enable custom interpolation.
fork icon0
star icon0
watch icon0

+ 15 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)