Playing an exported animation

Datetime:2016-08-23 03:02:56         Topic:         Share        Original >>
Here to See The Original Article!!!

Hello all,

I'm trying to execute (at the awake of the scene) an already exported animation with Babylon, but it just "jumps" to the end frame without animation.

  if (BABYLON.Engine.isSupported()) {
 	var canvas = document.getElementById("renderCanvas");
    var engine = new BABYLON.Engine(canvas, true);

    BABYLON.SceneLoader.Load("", "roulette.babylon", engine, function (newScene) {
      // Wait for textures and shaders to be ready
      newScene.executeWhenReady(function () {  

        // Once the scene is loaded, just register a render loop to render it
        engine.runRenderLoop(function() {
		  //for(var i= 0;i<newScene.meshes.length;i++)
var newAnimation = newScene.beginAnimation(newScene.meshes[3], 540, 50000, true);

    }, function (progress) {
        // To do: give progress feedback to user

Find attached an extract of the mesh.


Put your ads here, just $200 per month.