Search the Community
Showing results for tags 'exported'.
-
Hi guys ? I have one question about exported .babylon file. Is it posibel chagne alpha(transparency) of exported .babylon file? I want to make it slowly disepeat or sotmhig like that. When i change the aplha to 0 nothing happens. BABYLON.SceneLoader.ImportMesh("", "textures", "myObj.babylon", scene, function (newMeshes) { var myObj = newMeshes[0]; myObj.alpha = 0; } So I looked in the exported property whith console.log(myObj). BABYLON.SceneLoader.ImportMesh("", "textures", "myObj.babylon", scene, function (newMeshes) { var myObj = newMeshes[0]; console.log(myObj); } it shows me, that alpha is set NaN. And when I again change the alpha to 0 and looked in the property ... alpha was set 0 but again nothing happens. Why is like that ? Sorry for my bad english. ?
-
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() { newScene.render(); //for(var i= 0;i<newScene.meshes.length;i++) //console.log(newScene.meshes[i].name); 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. modelExtract.txt
- 1 reply
-
- babylon.js
- animation
-
(and 1 more)
Tagged with: