David Catuhe 7 år sedan
förälder
incheckning
7562b77895

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 13432 - 13412
Playground/babylon.d.txt


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 15024 - 15004
dist/preview release/babylon.d.ts


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 27 - 27
dist/preview release/babylon.js


+ 34 - 3
dist/preview release/babylon.max.js

@@ -20,7 +20,7 @@ var __extends = (this && this.__extends) || (function () {
     if(typeof exports === 'object' && typeof module === 'object')
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = factory();
         module.exports = factory();
     else if(typeof define === 'function' && define.amd)
     else if(typeof define === 'function' && define.amd)
-        define("babylonjs",  factory);
+        define("babylonjs", [], factory);
     else if(typeof exports === 'object')
     else if(typeof exports === 'object')
         exports["babylonjs"] = factory();
         exports["babylonjs"] = factory();
     else {
     else {
@@ -47099,6 +47099,16 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(AnimationGroup.prototype, "animatables", {
+            /**
+             * returning the list of animatables controlled by this animation group.
+             */
+            get: function () {
+                return this._animatables;
+            },
+            enumerable: true,
+            configurable: true
+        });
         /**
         /**
          * Add an animation (with its target) in the group
          * Add an animation (with its target) in the group
          * @param animation defines the animation we want to add
          * @param animation defines the animation we want to add
@@ -47259,6 +47269,22 @@ var BABYLON;
             return this;
             return this;
         };
         };
         /**
         /**
+         * Goes to a specific frame in this animation group
+         *
+         * @param frame the frame number to go to
+         * @return the animationGroup
+         */
+        AnimationGroup.prototype.goToFrame = function (frame) {
+            if (!this._isStarted) {
+                return this;
+            }
+            for (var index = 0; index < this._animatables.length; index++) {
+                var animatable = this._animatables[index];
+                animatable.goToFrame(frame);
+            }
+            return this;
+        };
+        /**
          * Dispose all associated resources
          * Dispose all associated resources
          */
          */
         AnimationGroup.prototype.dispose = function () {
         AnimationGroup.prototype.dispose = function () {
@@ -90919,8 +90945,13 @@ var BABYLON;
          * @param scene The scene to add the material to
          * @param scene The scene to add the material to
          */
          */
         function EnvironmentHelper(options, scene) {
         function EnvironmentHelper(options, scene) {
+            var _this = this;
+            this._errorHandler = function (message, exception) {
+                _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
+            };
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._scene = scene;
             this._scene = scene;
+            this.onErrorObservable = new BABYLON.Observable();
             this._setupBackground();
             this._setupBackground();
             this._setupImageProcessing();
             this._setupImageProcessing();
         }
         }
@@ -91247,7 +91278,7 @@ var BABYLON;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 return;
                 return;
             }
             }
-            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
+            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             diffuseTexture.gammaSpace = false;
             diffuseTexture.gammaSpace = false;
             diffuseTexture.hasAlpha = true;
             diffuseTexture.hasAlpha = true;
             this._groundMaterial.diffuseTexture = diffuseTexture;
             this._groundMaterial.diffuseTexture = diffuseTexture;
@@ -91333,7 +91364,7 @@ var BABYLON;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 return;
                 return;
             }
             }
-            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
+            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 27 - 27
dist/preview release/babylon.worker.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 13608 - 13588
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 10 - 10
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 34 - 3
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -20,7 +20,7 @@ var __extends = (this && this.__extends) || (function () {
     if(typeof exports === 'object' && typeof module === 'object')
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = factory();
         module.exports = factory();
     else if(typeof define === 'function' && define.amd)
     else if(typeof define === 'function' && define.amd)
-        define("babylonjs",  factory);
+        define("babylonjs", [], factory);
     else if(typeof exports === 'object')
     else if(typeof exports === 'object')
         exports["babylonjs"] = factory();
         exports["babylonjs"] = factory();
     else {
     else {
@@ -47099,6 +47099,16 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(AnimationGroup.prototype, "animatables", {
+            /**
+             * returning the list of animatables controlled by this animation group.
+             */
+            get: function () {
+                return this._animatables;
+            },
+            enumerable: true,
+            configurable: true
+        });
         /**
         /**
          * Add an animation (with its target) in the group
          * Add an animation (with its target) in the group
          * @param animation defines the animation we want to add
          * @param animation defines the animation we want to add
@@ -47259,6 +47269,22 @@ var BABYLON;
             return this;
             return this;
         };
         };
         /**
         /**
+         * Goes to a specific frame in this animation group
+         *
+         * @param frame the frame number to go to
+         * @return the animationGroup
+         */
+        AnimationGroup.prototype.goToFrame = function (frame) {
+            if (!this._isStarted) {
+                return this;
+            }
+            for (var index = 0; index < this._animatables.length; index++) {
+                var animatable = this._animatables[index];
+                animatable.goToFrame(frame);
+            }
+            return this;
+        };
+        /**
          * Dispose all associated resources
          * Dispose all associated resources
          */
          */
         AnimationGroup.prototype.dispose = function () {
         AnimationGroup.prototype.dispose = function () {
@@ -89828,8 +89854,13 @@ var BABYLON;
          * @param scene The scene to add the material to
          * @param scene The scene to add the material to
          */
          */
         function EnvironmentHelper(options, scene) {
         function EnvironmentHelper(options, scene) {
+            var _this = this;
+            this._errorHandler = function (message, exception) {
+                _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
+            };
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._scene = scene;
             this._scene = scene;
+            this.onErrorObservable = new BABYLON.Observable();
             this._setupBackground();
             this._setupBackground();
             this._setupImageProcessing();
             this._setupImageProcessing();
         }
         }
@@ -90156,7 +90187,7 @@ var BABYLON;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 return;
                 return;
             }
             }
-            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
+            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             diffuseTexture.gammaSpace = false;
             diffuseTexture.gammaSpace = false;
             diffuseTexture.hasAlpha = true;
             diffuseTexture.hasAlpha = true;
             this._groundMaterial.diffuseTexture = diffuseTexture;
             this._groundMaterial.diffuseTexture = diffuseTexture;
@@ -90242,7 +90273,7 @@ var BABYLON;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 return;
                 return;
             }
             }
-            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
+            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;

+ 33 - 2
dist/preview release/customConfigurations/minimalGLTFViewer/es6.js

@@ -47072,6 +47072,16 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(AnimationGroup.prototype, "animatables", {
+            /**
+             * returning the list of animatables controlled by this animation group.
+             */
+            get: function () {
+                return this._animatables;
+            },
+            enumerable: true,
+            configurable: true
+        });
         /**
         /**
          * Add an animation (with its target) in the group
          * Add an animation (with its target) in the group
          * @param animation defines the animation we want to add
          * @param animation defines the animation we want to add
@@ -47232,6 +47242,22 @@ var BABYLON;
             return this;
             return this;
         };
         };
         /**
         /**
+         * Goes to a specific frame in this animation group
+         *
+         * @param frame the frame number to go to
+         * @return the animationGroup
+         */
+        AnimationGroup.prototype.goToFrame = function (frame) {
+            if (!this._isStarted) {
+                return this;
+            }
+            for (var index = 0; index < this._animatables.length; index++) {
+                var animatable = this._animatables[index];
+                animatable.goToFrame(frame);
+            }
+            return this;
+        };
+        /**
          * Dispose all associated resources
          * Dispose all associated resources
          */
          */
         AnimationGroup.prototype.dispose = function () {
         AnimationGroup.prototype.dispose = function () {
@@ -89801,8 +89827,13 @@ var BABYLON;
          * @param scene The scene to add the material to
          * @param scene The scene to add the material to
          */
          */
         function EnvironmentHelper(options, scene) {
         function EnvironmentHelper(options, scene) {
+            var _this = this;
+            this._errorHandler = function (message, exception) {
+                _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
+            };
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._scene = scene;
             this._scene = scene;
+            this.onErrorObservable = new BABYLON.Observable();
             this._setupBackground();
             this._setupBackground();
             this._setupImageProcessing();
             this._setupImageProcessing();
         }
         }
@@ -90129,7 +90160,7 @@ var BABYLON;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 return;
                 return;
             }
             }
-            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
+            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             diffuseTexture.gammaSpace = false;
             diffuseTexture.gammaSpace = false;
             diffuseTexture.hasAlpha = true;
             diffuseTexture.hasAlpha = true;
             this._groundMaterial.diffuseTexture = diffuseTexture;
             this._groundMaterial.diffuseTexture = diffuseTexture;
@@ -90215,7 +90246,7 @@ var BABYLON;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 return;
                 return;
             }
             }
-            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
+            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;

+ 33 - 2
dist/preview release/es6.js

@@ -47072,6 +47072,16 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(AnimationGroup.prototype, "animatables", {
+            /**
+             * returning the list of animatables controlled by this animation group.
+             */
+            get: function () {
+                return this._animatables;
+            },
+            enumerable: true,
+            configurable: true
+        });
         /**
         /**
          * Add an animation (with its target) in the group
          * Add an animation (with its target) in the group
          * @param animation defines the animation we want to add
          * @param animation defines the animation we want to add
@@ -47232,6 +47242,22 @@ var BABYLON;
             return this;
             return this;
         };
         };
         /**
         /**
+         * Goes to a specific frame in this animation group
+         *
+         * @param frame the frame number to go to
+         * @return the animationGroup
+         */
+        AnimationGroup.prototype.goToFrame = function (frame) {
+            if (!this._isStarted) {
+                return this;
+            }
+            for (var index = 0; index < this._animatables.length; index++) {
+                var animatable = this._animatables[index];
+                animatable.goToFrame(frame);
+            }
+            return this;
+        };
+        /**
          * Dispose all associated resources
          * Dispose all associated resources
          */
          */
         AnimationGroup.prototype.dispose = function () {
         AnimationGroup.prototype.dispose = function () {
@@ -90892,8 +90918,13 @@ var BABYLON;
          * @param scene The scene to add the material to
          * @param scene The scene to add the material to
          */
          */
         function EnvironmentHelper(options, scene) {
         function EnvironmentHelper(options, scene) {
+            var _this = this;
+            this._errorHandler = function (message, exception) {
+                _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
+            };
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._scene = scene;
             this._scene = scene;
+            this.onErrorObservable = new BABYLON.Observable();
             this._setupBackground();
             this._setupBackground();
             this._setupImageProcessing();
             this._setupImageProcessing();
         }
         }
@@ -91220,7 +91251,7 @@ var BABYLON;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 return;
                 return;
             }
             }
-            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
+            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             diffuseTexture.gammaSpace = false;
             diffuseTexture.gammaSpace = false;
             diffuseTexture.hasAlpha = true;
             diffuseTexture.hasAlpha = true;
             this._groundMaterial.diffuseTexture = diffuseTexture;
             this._groundMaterial.diffuseTexture = diffuseTexture;
@@ -91306,7 +91337,7 @@ var BABYLON;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 return;
                 return;
             }
             }
-            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
+            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 28 - 28
dist/preview release/viewer/babylon.viewer.js


+ 35 - 4
dist/preview release/viewer/babylon.viewer.max.js

@@ -4,7 +4,7 @@
     if(typeof exports === 'object' && typeof module === 'object')
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = factory();
         module.exports = factory();
     else if(typeof define === 'function' && define.amd)
     else if(typeof define === 'function' && define.amd)
-        define("babylonjs-viewer",  factory);
+        define("babylonjs-viewer", [], factory);
     else if(typeof exports === 'object')
     else if(typeof exports === 'object')
         exports["babylonjs-viewer"] = factory();
         exports["babylonjs-viewer"] = factory();
     else {
     else {
@@ -103,7 +103,7 @@ var __extends = (this && this.__extends) || (function () {
     if(true)
     if(true)
         module.exports = factory();
         module.exports = factory();
     else if(typeof define === 'function' && define.amd)
     else if(typeof define === 'function' && define.amd)
-        define("babylonjs",  factory);
+        define("babylonjs", [], factory);
     else if(typeof exports === 'object')
     else if(typeof exports === 'object')
         exports["babylonjs"] = factory();
         exports["babylonjs"] = factory();
     else {
     else {
@@ -47182,6 +47182,16 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(AnimationGroup.prototype, "animatables", {
+            /**
+             * returning the list of animatables controlled by this animation group.
+             */
+            get: function () {
+                return this._animatables;
+            },
+            enumerable: true,
+            configurable: true
+        });
         /**
         /**
          * Add an animation (with its target) in the group
          * Add an animation (with its target) in the group
          * @param animation defines the animation we want to add
          * @param animation defines the animation we want to add
@@ -47342,6 +47352,22 @@ var BABYLON;
             return this;
             return this;
         };
         };
         /**
         /**
+         * Goes to a specific frame in this animation group
+         *
+         * @param frame the frame number to go to
+         * @return the animationGroup
+         */
+        AnimationGroup.prototype.goToFrame = function (frame) {
+            if (!this._isStarted) {
+                return this;
+            }
+            for (var index = 0; index < this._animatables.length; index++) {
+                var animatable = this._animatables[index];
+                animatable.goToFrame(frame);
+            }
+            return this;
+        };
+        /**
          * Dispose all associated resources
          * Dispose all associated resources
          */
          */
         AnimationGroup.prototype.dispose = function () {
         AnimationGroup.prototype.dispose = function () {
@@ -91002,8 +91028,13 @@ var BABYLON;
          * @param scene The scene to add the material to
          * @param scene The scene to add the material to
          */
          */
         function EnvironmentHelper(options, scene) {
         function EnvironmentHelper(options, scene) {
+            var _this = this;
+            this._errorHandler = function (message, exception) {
+                _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
+            };
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
             this._scene = scene;
             this._scene = scene;
+            this.onErrorObservable = new BABYLON.Observable();
             this._setupBackground();
             this._setupBackground();
             this._setupImageProcessing();
             this._setupImageProcessing();
         }
         }
@@ -91330,7 +91361,7 @@ var BABYLON;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 this._groundMaterial.diffuseTexture = this._options.groundTexture;
                 return;
                 return;
             }
             }
-            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
+            var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             diffuseTexture.gammaSpace = false;
             diffuseTexture.gammaSpace = false;
             diffuseTexture.hasAlpha = true;
             diffuseTexture.hasAlpha = true;
             this._groundMaterial.diffuseTexture = diffuseTexture;
             this._groundMaterial.diffuseTexture = diffuseTexture;
@@ -91416,7 +91447,7 @@ var BABYLON;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
                 return;
                 return;
             }
             }
-            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
+            this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxTexture.gammaSpace = false;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
             this._skyboxMaterial.reflectionTexture = this._skyboxTexture;