Search the Community

Showing results for tags 'bones'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 19 results

  1. Hi all, I've been wondering, a mesh like "the dude" seems to be using a single skeleton(so you only have to call beginAnimation Once), but he is made up of several meshes, When i export meshes to babylon, the "main" mesh is exported with the entire skeleton(all bones), and children meshes are each exported with their own version of the skeleton (containing only the bones that mesh use), So i have to call beginAnimation for each mesh/child mesh. If i point the child meshes skeletons to the main mesh's skeleton (mesh.skeleton = mainMesh.skeleton), which also contains the bones the child mesh uses, and then beginAnimation, the child mesh is either spagetti, or just not animated properly, So my question, How is it achieved to use the same skeleton? using 3DS Max 2016, exporter 0.8.0, (also tried an older exporter, same result) Cheers
  2. So, I'm looking for ways to create a ragdoll effect using Cannon.js, and (preferably) a skinned, imported mesh. I tried the following 2 methods: #1: Use getRotation/position/absolute.. etc on the bones, to match with the Cannon bodies. This doesn't seem to work like it does the other way around (Match Cannon body to bone position and rotation). #2: Split my model into the different body parts, so each and every limp can be used seperately. This 'can' work, but requires a lot of work, and won't look as good as on a skinned model. Here is an example of a ragdoll, shamelessly stolen from the Cannon.js Three.js Ragdoll example: http://www.babylonjs-playground.com/index.html#XVETC#3 I'm looking for creative ways of achieving this very same ragdoll effect, but with a model. Edit: Forgot to mention, press A to start the ragdoll by enabling the stepping of the Cannon world.
  3. I was wondering if it's possible, and if yes, then how, to get more responsive movement when using getPositionToRef to attach a mesh to a bone assigned to some skeleton from an imported model. I think it's the same when using attachToBone. http://www.babylonjs-playground.com/#1N9CSW#2 The position and rotation of bone #6 (right hand) is used to position the sphere. Imagine it was a sword or a gun. Try moving the camera around, and notice the movement of the sphere. It seems to be a little behind, and not as crisp as one would have hoped for. Am I missing something here?
  4. Hello everyone, long time no see! So i'v ran to an issue where i'm trying to attach meshes to bones from another import. I'v this torso which is built from 2 meshes and this torso assembly holds the skeleton. Then i'v another model and when i'm trying to place the import directly to head bone for example the model flips around Z axis and goes somewhere it doesn't really belong. I'v attached an image which hopefully explains more than my english does What i'm doing wrong? any ideas? - best regards, eljuko
  5. Here's the deal, I'm importing a model with skeleton, bones, animations etc. I assign the model (Index 0) and the skeleton (index 0) global variables. Then, outside of Babylon's native import function, I clone the model and the skeleton, and run animation (from frames) just fine. The problem is, when I try to manually manipulate bones using their getters and setters, somehow, rotating 1 bone from 1 clone of the original, also rotates the bones of all other clones, as well as the original. Changing the names and ID's of bones doesn't seem to help, either. Soo. Is there any way of cloning bones? no clone function exists, and I'm unsure of how to approach this. I'll see if I can create a simple PG, as the project is pretty complex by now. As I mentioned, I can run different animations on the different skeletons without any issues. But as soon as I manually rotate bones, all clones + original are all affected.
  6. Is there any way to get references to the bones a mesh is influenced by? I see there is : I need to get the names of bones.
  7. Is it possible to show the skeleton/bones of an imported mesh? I don't mean lines and debugging layers, but actually rendering the bones themselves, so they won't stay hidden. Is this a possibility, or simply not a feature? PG example, because why not: http://www.babylonjs-playground.com/#1SJMJ0
  8. Hi guys. I have a little task that I can't complet it Let me explain. I have a sphere with 3 bones. Using bones and a slider I modify the sphere geometry, I can scale, translate or rotate the bones, It works like a morph. After deform the mesh I want to save it as new babylon file, without bones, but keep deform geometry, not original. In this scope I update positions, normals, compute normals, but all time the new babylon file is saved like original, and not deform. I have to update anything else? Or I have to save the skeleton too? ....If yes, than I have a problem, because I want to add an animation to the new mesh, that I think will overwrite the skeleton. Here are 2 picture that show my problem http://prntscr.com/8pd0co http://prntscr.com/8pd0qd first sphere is the original, and second is sphere saved. And I make a playground. http://www.babylonjs-playground.com/#1WKAQI#2 Any opinion is welcome. Thanks
  9. I have an armature in blender and I have a mesh that's cut up into smaller modular meshes. To animate I select the modular meshes and parent them to bones then move the bones and the meshes inherit the translations. When I export from blender to babylon it seems that any mesh that is explicitly parented to a bone is missing. I've attached my blend file for reference. It appears as though the mesh and bone data for the missing limbs are in the .babylon file. maybe they are hidden or something? ,{"name":"arm.L","id":"arm.L","materialId":"combined.lambert0.006","billboardMode":0,"position":[0.0203,0.1534,-0.5203],"rotation":[0,1.5708,-1.514],"scaling":[0.05,0.05,0.05],"isVisible":true,"freezeWorldMatrix":false,"isEnabled":true,"checkCollisions":false,"receiveShadows":false ,"positions":[1.1351,6.4324,4.5946,1.1351,-9.5676,6.5946,1.1351,-9.5676,4.5946,1.1351,6.4324,4.5946,1.1351,6.4324,6.5946,1.1351,-9.5676,6.5946,-0.8649,6.4324,-7.4054,-0.8649,4.4324,-5.4054,-0.8649,4.4324,-7.4054,-0.8649,6.4324,-7.4054,-0.8649,6.4324,-5.4054,-0.8649,4.4324,-5.4054,-0.8649,4.4324,-5.4054,-0.8649,2.4324,4.5946,-0.8649,2.4324,-5.4054,-0.8649,4.4324,-5.4054,-0.8649,4.4324,4.5946,-0.8649,2.4324,4.5946,-2.8649,6.4324,-5.4054,-2.8649,4.4324,4.5946,-2.8649,4.4324,-5.4054,-2.8649,6.4324,-5.4054,-2.8649,6.4324,4.5946,-2.8649,4.4324,4.5946,-2.8649,2.4324,0.5946,-2.8649,-9.5676,4.5946,-2.8649,-9.5676,0.5946,-2.8649,2.4324,0.5946,-2.8649,2.4324,4.5946,-2.8649,-9.5676,4.5946,-2.8649,2.4324,-5.4054,-2.8649,-9.5676,-1.4054,-2.8649,-9.5676,-5.4054,-2.8649,2.4324,-5.4054,-2.8649,2.4324,-1.4054,-2.8649,-9.5676,-1.4054,-4.8649,2.4324,-1.4054,-4.8649,-9.5676,0.5946,-4.8649,-9.5676,-1.4054,-4.8649,2.4324,-1.4054,-4.8649,2.4324,0.5946,-4.8649,-9.5676,0.5946,7.1351,4.4324,-5.4054,7.1351,6.4324,-7.4054,7.1351,4.4324,-7.4054,7.1351,6.4324,4.5946,7.1351,6.4324,-7.4054,7.1351,4.4324,-5.4054,7.1351,6.4324,4.5946,7.1351,4.4324,-5.4054,7.1351,-9.5676,4.5946,7.1351,-9.5676,4.5946,7.1351,4.4324,-5.4054,7.1351,-9.5676,-5.4054,3.1351,-9.5676,6.5946,3.1351,6.4324,4.5946,3.1351,-9.5676,4.5946,3.1351,6.4324,6.5946,3.1351,6.4324,4.5946,3.1351,-9.5676,6.5946,7.1351,-9.5676,-5.4054,3.1351,-9.5676,4.5946,7.1351,-9.5676,-5.4054,-2.8649,-9.5676,-1.4054,1.1351,-9.5676,4.5946,3.1351,-9.5676,4.5946,-2.8649,-9.5676,-1.4054,7.1351,-9.5676,4.5946,7.1351,-9.5676,-5.4054,3.1351,-9.5676,4.5946,-2.8649,-9.5676,0.5946,1.1351,-9.5676,4.5946,-2.8649,-9.5676,-1.4054,3.1351,-9.5676,4.5946,-2.8649,-9.5676,0.5946,-2.8649,-9.5676,-1.4054,-4.8649,-9.5676,0.5946,-2.8649,-9.5676,4.5946,1.1351,-9.5676,4.5946,-2.8649,-9.5676,0.5946,3.1351,-9.5676,6.5946,3.1351,-9.5676,4.5946,1.1351,-9.5676,6.5946,-2.8649,-9.5676,-1.4054,7.1351,4.4324,-7.4054,7.1351,4.4324,-5.4054,7.1351,4.4324,-7.4054,-0.8649,4.4324,-5.4054,-0.8649,4.4324,-5.4054,-0.8649,4.4324,4.5946,-0.8649,4.4324,-5.4054,-2.8649,4.4324,4.5946,-0.8649,2.4324,-5.4054,-2.8649,2.4324,-1.4054,-2.8649,2.4324,-5.4054,-0.8649,2.4324,-5.4054,-0.8649,2.4324,4.5946,-2.8649,2.4324,-1.4054,-0.8649,2.4324,4.5946,-2.8649,2.4324,0.5946,-2.8649,2.4324,-1.4054,-2.8649,2.4324,-1.4054,-2.8649,2.4324,0.5946,-4.8649,2.4324,0.5946,-0.8649,2.4324,4.5946,-2.8649,2.4324,4.5946,-2.8649,2.4324,0.5946,-2.8649,2.4324,-1.4054,-4.8649,2.4324,0.5946,-4.8649,2.4324,-1.4054,-0.8649,6.4324,-5.4054,-0.8649,6.4324,-7.4054,7.1351,6.4324,-7.4054,3.1351,6.4324,4.5946,-0.8649,6.4324,-5.4054,3.1351,6.4324,4.5946,1.1351,6.4324,4.5946,-0.8649,6.4324,-5.4054,7.1351,6.4324,-7.4054,7.1351,6.4324,4.5946,3.1351,6.4324,4.5946,-0.8649,6.4324,-5.4054,1.1351,6.4324,4.5946,-2.8649,6.4324,4.5946,1.1351,6.4324,6.5946,1.1351,6.4324,4.5946,-0.8649,6.4324,-5.4054,-2.8649,6.4324,4.5946,-2.8649,6.4324,-5.4054,3.1351,6.4324,4.5946,1.1351,6.4324,6.5946,-2.8649,-9.5676,-1.4054,-4.8649,2.4324,-1.4054,-2.8649,-9.5676,-1.4054,-4.8649,2.4324,-1.4054,7.1351,-9.5676,-5.4054,-0.8649,2.4324,-5.4054,-2.8649,-9.5676,-5.4054,-0.8649,2.4324,-5.4054,-2.8649,2.4324,-5.4054,-2.8649,-9.5676,-5.4054,7.1351,-9.5676,-5.4054,7.1351,4.4324,-5.4054,-0.8649,2.4324,-5.4054,7.1351,4.4324,-5.4054,-0.8649,4.4324,-5.4054,-0.8649,2.4324,-5.4054,-0.8649,4.4324,-5.4054,-2.8649,6.4324,-5.4054,-0.8649,4.4324,-5.4054,-2.8649,6.4324,-5.4054,7.1351,4.4324,-7.4054,-0.8649,6.4324,-7.4054,7.1351,4.4324,-7.4054,7.1351,6.4324,-7.4054,-0.8649,6.4324,-7.4054,-4.8649,2.4324,0.5946,-2.8649,-9.5676,0.5946,-4.8649,-9.5676,0.5946,-2.8649,2.4324,0.5946,-2.8649,-9.5676,0.5946,-4.8649,2.4324,0.5946,1.1351,6.4324,6.5946,3.1351,-9.5676,6.5946,1.1351,-9.5676,6.5946,3.1351,-9.5676,6.5946,1.1351,6.4324,6.5946,3.1351,6.4324,4.5946,7.1351,-9.5676,4.5946,7.1351,6.4324,4.5946,7.1351,-9.5676,4.5946,3.1351,6.4324,4.5946,-0.8649,2.4324,4.5946,1.1351,-9.5676,4.5946,-2.8649,-9.5676,4.5946,-2.8649,2.4324,4.5946,-0.8649,2.4324,4.5946,-2.8649,-9.5676,4.5946,1.1351,6.4324,4.5946,1.1351,-9.5676,4.5946,-0.8649,2.4324,4.5946,-0.8649,4.4324,4.5946,1.1351,6.4324,4.5946,-0.8649,2.4324,4.5946,1.1351,6.4324,4.5946,-0.8649,4.4324,4.5946,-2.8649,6.4324,4.5946,-2.8649,6.4324,4.5946,-0.8649,4.4324,4.5946,-2.8649,4.4324,4.5946] ,"normals":[-0.3015,0.9045,0.3015,-0.5773,-0.5773,0.5773,-0.3015,-0.9045,0.3015,-0.3015,0.9045,0.3015,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.3015,0.9045,-0.3015,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.3015,0.3015,0.9045,-0.3015,0.3015,-0.9045,-0.5773,-0.5773,-0.5773,-0.3015,-0.3015,0.9045,-0.3015,0.3015,0.9045,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.5773,-0.3015,0.9045,0.3015,-0.5773,-0.5773,0.5773,-0.3015,-0.9045,0.3015,-0.3015,0.9045,0.3015,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.3015,-0.9045,-0.3015,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.3015,0.9045,-0.3015,-0.3015,-0.9045,-0.3015,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.5773,0.9045,-0.3015,-0.3015,0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,0.5773,0.5773,0.5773,-0.5773,0.9045,-0.3015,-0.3015,0.5773,0.5773,0.5773,0.9045,-0.3015,-0.3015,0.5773,-0.5773,0.5773,0.5773,-0.5773,0.5773,0.9045,-0.3015,-0.3015,0.5773,-0.5773,-0.5773,0.5773,-0.5773,0.5773,0.3015,0.9045,0.3015,0.3015,-0.9045,0.3015,0.5773,0.5773,0.5773,0.3015,0.9045,0.3015,0.5773,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.3015,-0.9045,0.3015,0.5773,-0.5773,-0.5773,-0.3015,-0.9045,-0.3015,-0.3015,-0.9045,0.3015,0.3015,-0.9045,0.3015,-0.3015,-0.9045,-0.3015,0.5773,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.3015,-0.9045,0.3015,-0.3015,-0.9045,0.3015,-0.3015,-0.9045,0.3015,-0.3015,-0.9045,-0.3015,0.3015,-0.9045,0.3015,-0.3015,-0.9045,0.3015,-0.3015,-0.9045,-0.3015,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,-0.3015,-0.9045,0.3015,-0.3015,-0.9045,0.3015,0.5773,-0.5773,0.5773,0.3015,-0.9045,0.3015,-0.5773,-0.5773,0.5773,-0.3015,-0.9045,-0.3015,0.5773,-0.5773,-0.5773,0.9045,-0.3015,-0.3015,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.3015,-0.3015,0.9045,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.3015,0.3015,-0.9045,-0.3015,0.9045,-0.3015,-0.5773,0.5773,-0.5773,-0.3015,0.3015,-0.9045,-0.3015,0.3015,0.9045,-0.3015,0.9045,-0.3015,-0.3015,0.3015,0.9045,-0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,-0.3015,0.9045,-0.3015,-0.3015,0.9045,0.3015,-0.5773,0.5773,0.5773,-0.3015,0.3015,0.9045,-0.5773,0.5773,0.5773,-0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,-0.5773,0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.3015,0.9045,-0.3015,-0.5773,0.5773,-0.5773,0.5773,0.5773,-0.5773,0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,0.3015,0.9045,0.3015,-0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,0.5773,0.5773,-0.5773,0.5773,0.5773,0.5773,0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,-0.3015,0.9045,0.3015,-0.5773,0.5773,0.5773,-0.5773,0.5773,0.5773,-0.3015,0.9045,0.3015,-0.3015,0.9045,-0.3015,-0.5773,0.5773,0.5773,-0.5773,0.5773,-0.5773,0.3015,0.9045,0.3015,-0.5773,0.5773,0.5773,-0.3015,-0.9045,-0.3015,-0.5773,0.5773,-0.5773,-0.3015,-0.9045,-0.3015,-0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.3015,0.3015,-0.9045,-0.5773,-0.5773,-0.5773,-0.3015,0.3015,-0.9045,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.9045,-0.3015,-0.3015,-0.3015,0.3015,-0.9045,0.9045,-0.3015,-0.3015,-0.5773,-0.5773,-0.5773,-0.3015,0.3015,-0.9045,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,-0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,-0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,-0.3015,-0.9045,0.3015,-0.5773,-0.5773,0.5773,-0.3015,0.9045,0.3015,-0.3015,-0.9045,0.3015,-0.5773,0.5773,0.5773,-0.5773,0.5773,0.5773,0.5773,-0.5773,0.5773,-0.5773,-0.5773,0.5773,0.5773,-0.5773,0.5773,-0.5773,0.5773,0.5773,0.3015,0.9045,0.3015,0.5773,-0.5773,0.5773,0.5773,0.5773,0.5773,0.5773,-0.5773,0.5773,0.3015,0.9045,0.3015,-0.3015,0.3015,0.9045,-0.3015,-0.9045,0.3015,-0.5773,-0.5773,0.5773,-0.5773,0.5773,0.5773,-0.3015,0.3015,0.9045,-0.5773,-0.5773,0.5773,-0.3015,0.9045,0.3015,-0.3015,-0.9045,0.3015,-0.3015,0.3015,0.9045,-0.3015,-0.3015,0.9045,-0.3015,0.9045,0.3015,-0.3015,0.3015,0.9045,-0.3015,0.9045,0.3015,-0.3015,-0.3015,0.9045,-0.5773,0.5773,0.5773,-0.5773,0.5773,0.5773,-0.3015,-0.3015,0.9045,-0.5773,-0.5773,0.5773] ,"uvs":[0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.6001,0.3334,0.6999,0.5414,0.6999,0.3334,0.6001,0.3336,0.6001,0.5416,0.6999,0.5416,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4999,0.8331,0.4001,0.6668,0.4999,0.6668,0.4001,0.8331,0.4001,0.6668,0.4999,0.6945,0.1001,0.8333,0.2001,0.6251,0.8998,0.8333,0.6002,0.6666,0.6999,0.4724,0.6999,0.6666,0.4999,0.8331,0.4001,0.6668,0.4999,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.44,0.8332,0.4001,0.6668,0.4999,0.7334,0.4334,0.8332,0.4001,0.8332,0.4998,0.667,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4999,0.7223,0.4002,0.8331,0.4999,0.6669,0.4001,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4999,0.8332,0.4001,0.8332,0.4999,0.6669,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.4001,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6668,0.4001,0.8332,0.4999,0.7334,0.4002,0.8331,0.4999,0.7223,0.4999,0.6669,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4001,0.8332,0.4999,0.8332,0.4999,0.6669,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6668,0.45,0.8331,0.4999,0.6945,0.4002,0.8332,0.45,0.8332,0.4999,0.667,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.45,0.6669,0.4001,0.8332,0.4999,0.8332,0.4999,0.8331,0.4999,0.6668,0.4001,0.6668,0.4999,0.8331,0.4999,0.6668,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.48,0.8331,0.4999,0.6668,0.4001,0.8332,0.4999,0.8332,0.4999,0.6669,0.6999,0.6665,0.6999,0.4723,0.6001,0.5001,0.6001,0.3332,0.6999,0.3332,0.6999,0.1669,0.4001,0.6668,0.4999,0.8331,0.4001,0.6669,0.4999,0.8332,0.4001,0.6668,0.4999,0.8331,0.4001,0.6669,0.4001,0.8332,0.4999,0.8332,0.4999,0.8331,0.4001,0.6668,0.4999,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.4999,0.8331,0.4001,0.6668,0.4999,0.6668,0.4001,0.6669,0.4999,0.8332,0.4999,0.8331,0.4001,0.6668,0.4001,0.8332,0.4001,0.6669,0.4999,0.8332,0.45,0.8331,0.4001,0.6668,0.4999,0.6668,0.4999,0.8332,0.4001,0.8332,0.4999,0.6669,0.4001,0.8332,0.4001,0.6668,0.4999,0.7916,0.4999,0.75,0.4002,0.8331,0.4999,0.6669,0.4001,0.8332,0.45,0.6669,0.4999,0.8332,0.4999,0.8331,0.4001,0.6668,0.4999,0.6668] ,"indices":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,31,60,32,61,62,63,64,65,66,67,68,69,70,71,72,1,73,2,74,75,76,77,78,79,80,81,82,37,83,38,7,84,8,85,86,87,19,88,20,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,43,110,111,112,113,114,115,116,117,118,119,120,121,122,123,55,124,125,126,127,128,129,57,130,131,132,38,133,34,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,20,149,10,150,151,152,8,153,154,155,156,157,158,159,160,161,162,163,164,57,165,166,167,168,56,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189] ,"subMeshes":[{"materialIndex":0,"verticesStart":0,"verticesCount":190,"indexStart":0,"indexCount":210}] ,"instances":[]} combined.blend
  10. Hi guys I'm writing the locomotion algorithm for a character I created in blender. What I'm trying to achieve is a blend tree that will allow me to blend between the "walk-front", "strife-left" animations according to the velocity of my character (something similar to https://www.youtube.com/watch?v=Xx21y9eJq1U&feature=youtu.be&t=1263). I've been able to blend between two frames, by calculating a weighted average of the transformation matrix for each bone, so far so good. Now before going on with my development I'm asking myself the following design question. Supposing I will have a state machine to control the character, should I write an update(dt) method called at each engine tick and reposition its bones individually or rather bake at run-time a new animation with frames each time the direction/velocity changes? I just do not know the pros/cons sticking with Babylon Animations versus going on with my own update method. What I like of using Babylon Animations is the fact that I can fast up / slow down my walk cycles so to simulate faster/slower velocities. Thank you in advance for any feedback, Joez
  11. Hi all, My company is NOT a games company but we have a lot of educational content which is very much similar to a game. We're in the beginning stages of porting our products to HTML. What we have now is 2D Flash-based (vector) frame-by-frame animation. I'm trying to explain to a bunch of VERY non-gamery people, who know nothing about coding or art, what it means to redo a Flash game in HTML. Anyway, my first task is to try to make them understand the major types of animation that are used in modern mobile games. I'm not a huge mobile gamer myself so I would like some suggestions about what people think is a great example of the following types of animation. I want to show this stuff to my coworkers so they can start to even understand the options. 2D sprite sheet based2D Bones-based2D vector-based (not sure this really exists outside of Flash)3D Best examples would be web or mobile-base and have characters with a cartoony look for kids. Educational would be even better, but I mostly just need good examples of the genres to show to people. All your input is appreciated!
  12. We have a character that has been rigged using CAT. Most of the animations that we have for the character plat without issue, but for some reason part of the face "slides" during some of the animations. There are bones in the face that correspond to what is sliding but we cannot find where or how this is happening in max. Here is a babylonjs playground example. focus the camera on the face and press the "P" key to see the animation. http://www.babylonjs-playground.com/#3I5MK#10 I also have the max file if it helps. It is very large though. 250+ MB http://protest.jht.com/duke/stroke/content/carl/carlLeftMCAM1.max I am not the artist for this, but both of us are at our wits end trying to figure this out. We were using three.js for this project but ported over to Babylon last week. Thanks in advance. Any help that anyone can offer would be appreciated.
  13. Hello everybody! I'm having a problem with armature/rigging/bones animation in Babylonjs after exporting from Blender. There is no animation at all, although the animation is playing in Blender perfectly! I wanted to configure Babylonjs options in Object data like I usually do for meshes, no problem with that. But when it comes to Armature object data, there is a Babylonjs option, but it's empty, no configurable at all. Maybe that's why animation is not playing. But when I downloaded the Blender to Babylon.js exporterIT SAYS: The Blender export plugin supports the following features: MeshesNameGeometry (Positions & normals)PositionRotationScalingTexture coordinates (2 channels)Vertex colorsVisibilityCheck collisionsBillboardReceive and cast shadowsBones (armatures) and bones' animationsAnimationsClearly it says that it supports bones/armatures and their animations! So, can you help resolve this issue, please? Maybe you could download the files here and check them out: http://s000.tinyupload.com/index.php?file_id=88023545882060673436 or here http://www.megafileupload.com/4Zzn/cylanim.zip Thank you!
  14. Hello. I've been experimenting and enjoying Babylon.JS; thanks for all the hard work on the library. I've been trying to blend loaded model bone animations and run into issues. The simplest case would be idle->walk->run loops. This has been mentioned a while back (pre v2) here, here, and here. While you can call custom animations on each bone (ie, arms get one frame set, legs get another), this doesn't help with easing between animations that use the same bone. Another suggestion was storing the combined animations in the model, but that doesn't allow for smooth transitions (or permutes up very quickly) As a learning experiment, I dove into the code. Here's a demo of my results. The babylon.js it references is a hack experiment where I do the following: 1) allow multiple animations per target by not calling stopAnimation(target) on beginAnimation 2) on every call to a scene's animation, pass along a cache 3) on every animation._interpolate() where datatype == Animation.ANIMATIONTYPE_MATRIX, write the matrix to the cache 4) if the animation._interpolate() has a cache hit, invoke the otherwise unused matrixInterpolateFunction() with a factor value to interpolate between the 2 matrix The result plays the animations, mostly. The result is flipped, both in normals and on the z-axis, which I don't understand (my grasp of matrix math is not great). Most of the work revolved around getting data passed between the otherwise isolated animation instances so they could be aware of the other animation to blend. This hack also doesn't handle an arbitrary number of animations to merge or an easy way to work with them, since calls to stop use the target as the common factor. What is the best way to approach this? Is there something I missed in the library? Or how could I implement this correctly for Babylon.js? Thanks
  15. Hi, I'm trying to debug why my mesh is not getting deformed as is should be, and am trying to work back to understand which transformation of the vertex is causing the distortion. On a bone i can see what appear to be 4 transformation matrices. Can anyone explain the difference between: •base matrix •absolute matrix •matrix •world transform I don't entirely understand which of these gets used by a mesh vertex which is weighted to it?
  16. Hello guys! I've recently been playing around with Babylon, and having a blast! One feature that I'm interested if it exists is controlling specific bones in an armature. I'm guessing that when you export a armature to babylon, it just turns into a "normal" mesh with a animation and such. Controlling specific bones would be awesome to "interpolate" between two different animations, as well as controlling foot motion, etc etc. Thanks! -Josh
  17. Long list... trying to fully wrap my head around all this stuff... If I'm wrong on anything feel free to correct me. You won't hurt my feelings. I'm just trying to learn as I go. Octree: scene.createOrUpdateSelectionOctree(); If I put this in my load script anywhere, all the models disappear. It's basically just a black scene. When should this be called in the script, and can anyone give me a very basic overview of how and where to work with the octrees... scene.executeWhenReady?, engine.runRenderLoop?... How do you work with them in real time. FBX / Bones / Animations: If I use the online FBX converter, it doesn't seem to have my bones or animations. Do bones need to be separate files from the meshes and then joined within Babylon? Either my FBX is being exported wrong from 3DS Max 2013, or the converter isn't exporting it correctly, bones cannot be combined into one object, or I'm not setting it up right. BABYLON.SceneLoader.ImportMesh("", "../Models/Monsters/", "BGoblin_1.babylon", scene,function (mapZone, particleSystems){ mapZone[0].scaling = new BABYLON.Vector3(0.005, 0.005, 0.005); mapZone[0].rotation = new BABYLON.Vector3(0, -3.141593, 0.000000); mapZone[0].position = new BABYLON.Vector3(-106.345, 4.32, -13.905); scene.beginAnimation(mapZone[0], 0, 296, true);});Zip file attached with FBX, and *.babylon file. Converted here: http://www.babylonjs.com/converter.html Another weird thing... if I open my FXB in 3DS Max after I save it, only 100 of my 296 or so key frames seem to still be on the model... any ideas on this one? Packages: What's going to be the best way to handle multiple packages. For example, my game is going to have 20~30 maps, and stitch a few of them together by view range and user's machine capabilities. The main town alone has like 600,000 vertices not counting NPCs, collision meshes, etc. So ideally I don't want to have to pack 30 maps worth of objects into a single blender / 3DS Max file. What's going to be the best way to handle this huge number of files. I've tried loading a few things with BABYLON.SceneLoader.ImportMesh but once it's loaded, I have no clue how to access the loaded meshes any longer. objName = scene.getMeshByName("Rag2_bro_mtree_a_04"); throws a null object. There will be way too many items to be able to work with them all in a single 3D editor package. This also brings me into LOD situations where I will for sure need to switch out lower resolution models. This isn't possible if there's no way to call back into the list of loaded models and set visibility etc. Maybe there's something I'm missing, or don't know about... If there was a way to chain the loading of multiple *.babylon packages through a single BABYLON.SceneLoader.Load() call, then I assume that you would be able to manipulate them dynamically in the render loop. Maybe have some kind of function that you can push multiple *.babylon files into a single temp file to load? Then you can load as much stuff as you want up at once.. var fullScene = addPackage(fullScene, "package1.babylon");var fullScene = addPackage(fullScene, "package2.babylon");var fullScene = addPackage(fullScene, "package3.babylon");function addPackage(loaded_packages, package_to_add){ if loaded_packages is a valid babylon file format, then add the package_to_add to the end of loaded_packages return loaded_packages;}BGoblin_1.zip
  18. 2600 FREE bvh files http://mocap.cs.cmu.edu/ babylon dev team, please integrate.bvh support to handle meshes with bones (bvh) For example: BABYLON.bvh.constrain(mesh, bendingStiffness[array], tolerance, scene)
  19. Hi, I try, since yesterday, to start an animation loaded from Blender, but nothing appens. All my scene is loaded from blender. There's camera, lights, walls, a character with its rig, and an animation set for "walk". After reading this tutorial (https://github.com/BabylonJS/Babylon.js/wiki/How-to-use-bones-and-skeletons), I decided to loop manually into scene.meshes to retreive the character, and attach the scene.skeleton[0] to it. I've checked that all vertex groups are ok in Blender, and that each vertex has maximum 4 bones influence (not so easy). The mesh _vertexBuffer has only color, normal and position, but doesn't have matrices weight or matrice indices. Is it the problem ? How can I generate this values ? Is there something to do in Blender to import them automatically ? Here's the light version of my code : <script>var canvas, engine, scene, player;function render(){ scene.render();}window.onload = function(){ canvas = document.getElementById("renderCanvas"); engine = new BABYLON.Engine(canvas, true); BABYLON.SceneLoader.Load("", "testroom.babylon", engine, function (nscene) { scene = nscene; scene.executeWhenReady(function () { for(var i=0,n=scene.meshes.length; i<n; i++) { if(scene.meshes[i].name=="player"){ player = scene.meshes[i]; player.skeleton = scene.skeletons[0]; } } scene.beginAnimation(player.skeleton,0,60,true,1.0); engine.runRenderLoop(render); }); });};</script>Thanks PS: Babylon is really great and has a good render engine. But it could be great to have an API and more examples when building a game from Blender. But well, it's still young and I think it will come after ^^