Jump to content


  • Content Count

  • Joined

  • Last visited

About swat0284

  • Rank
    Advanced Member

Recent Profile Visitors

867 profile views
  1. Hello can i Detect Unhandled expression at line on obj loader and show alert to user that obj file is wrong?
  2. Hello, is there any way to slowdown time in babylon to get slowmontion effect? In unity3d we have got full control of game time.
  3. So how can i generate ultiple animation for multiple objects
  4. Hello i try to run 5 animations on 5 diffrent models but i have an error: Uncaught TypeError: Cannot read property 'frame' of undefined at i._interpolate (babylon.js:18) at i.animate (babylon.js:19) at e._animate (babylon.js:19) at i._animate (babylon.js:12) at i.render (babylon.js:12) at main.js:33 at n._renderLoop (babylon.js:4) My code is very silmpy function CreateAnimation(index) { var moveAnimation = new BABYLON.Animation("moveAnimation", "position", 30, BABYLON.Animation.ANIMATIONTYPE_VECTOR3, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE); //t
  5. http://www.babylonjs-playground.com/#O3RBC#5 sample, rotation doesnt work and i dont know why
  6. Hello, when i want to rotate my mesh by using animations it gone, i can get object, see it position but mesh is gone checkpointsPositions re objects so they have got quarention HERE - i add "rotation" "QUATERNION" just everything connected with rotation function CreateAnimation(index = 0) { var rotationAnimation = new BABYLON.Animation("rotationAnimation", "HERE", 30, BABYLON.Animation.ANIMATIONTYPE_QUATERNION, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE); var rotationKeys = []; var rotationLenght = 0; for(var i = 0 ; i < checkpointsPositions[index].length-1 ; i++) {
  7. Hello i try to move mesh by this code: var players = []; function Temp(){ for(var i = 0 ; playersCount > i ; i++){ players[i] = new BABYLON.AbstractMesh("s"+i,scene); players[i] = LoadModel(i);//assign loaded mesh to element of array players[i].position = new BABYLON.Vector3(10,1,-10); // i have got Cannot set property 'position' of undefined } } function LoadModel(i){ var model; BABYLON.SceneLoader.ImportMesh("","models/","scene.babylon",scene, function(newMeshes) { model = newMeshes[newMeshes.length-1]; console.log(newMeshes.length); console.log(newMesh
  8. Hello, i try to move mesh along 2 points using: BezierCurveEase(.6,.11,1,.53) and animationBezierTorus.setEasingFunction(bezierEase); but my app work like this: http://www.babylonjs-playground.com/#F9Z7K#0 i try to make that mesh move along this curve: http://cubic-bezier.com/#.6,.11,1,.53
  9. Hello, can i load a model from local disc? Let user to drag it from local disc and show model in a webpage babylon canvas? How can i calculate volume and surface area?
  10. I have solution but it is very very slow <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Babylon.js sample code</title> <!-- Babylon.js --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://www.babylonjs.com/hand.minified-1.2.js"></script> <script src="http://www.babylonjs.com/cannon.js"></script> <script src="http://www.babyl
  11. Ok great, Do you know how i can fast create and extrude mesh from svg file path?
  12. I create shape by createlines and then extrude it to make mesh. Surface is stg like surface=a*b for cube wall where a is height of cube wall and b is width of wall
  13. Hello how to calculate surface of mesh? I create mesh by BABYLON.Mesh.CreateLines("sl", shape, scene); var extruded = BABYLON.Mesh.ExtrudeShape("extruded", shape, path, 2, 0, 3, scene);
  14. I have a task to create falt mesh from svg/corel/vector file, at this point i find http://jsfiddle.net/mqmkc7xz/ and it ll work i think
  • Create New...