adam

Members
  • Content count

    1,371
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by adam

  1. Here is one way to do it: http://www.babylonjs-playground.com/#NRH4TH#7 another: http://www.babylonjs-playground.com/#NRH4TH#8
  2. What could be wrong? The sphere is not following the tube. How about providing the link to the PG?
  3. I'm not sure if there is anything you can do for this. It appears to be an FF warning - not an error.
  4. I think if you edit your original post you can add [Solved] to the title.
  5. var worldPathPosition = BABYLON.Vector3.TransformCoordinates(localPathPosition, mesh.getWorldMatrix());
  6. You need to convert it to a flat shaded mesh. http://www.babylonjs-playground.com/#53YWDR#1
  7. http://www.babylonjs-playground.com/#FTQGKP#2 edit: pickedPoint is incorrect, though I added updateCoordinateHeights: http://www.babylonjs-playground.com/#FTQGKP#3
  8. I just want to make sure you realize you don't need to use that makeParent function. You can do this: http://www.babylonjs-playground.com/#KK6J9I#5
  9. You can do this by creating an updatable ground mesh: http://www.babylonjs-playground.com/#FTQGKP#1
  10. solved

    You would have had a faster response time if your PG was more focused. I had to delete some unnecessary code that was causing some errors. This PG demonstrates your issue: http://www.babylonjs-playground.com/index.html#UMF647#5 There appears to be a bug in BJS when setting euler rotation when using a physics in imposter. For now, set rotationQuaternion: http://www.babylonjs-playground.com/index.html#UMF647#7
  11. You can use setParent or addChild for this: https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.abstractMesh.ts#L1823 with keepWorldPositionRotation set to true.
  12. The error I'm seeing in FF is: Error: WebGL: texImage2D: Conversion requires pixel reformatting. Found this in FF code: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/TexUnpackBlob.cpp#335
  13. I got the font to load here: http://www.babylonjs-playground.com/#Q0M3CV#4 There was a breaking change that changed the constructor: https://github.com/BabylonJS/Babylon.js/commit/19ed9366706a8264ffc5c9526f8f9b19bfb4bcbc#diff-69e60dcf75816ab45ec8ed9ef039f79c
  14. solved

    function degreesToRadians(degrees){ var radians = degrees * Math.PI / 180; return radians; }
  15. Another PG that could help: http://www.babylonjs-playground.com/#25M97N#57 I got that from this thread:
  16. This PG might be helpful: http://www.babylonjs-playground.com/#1ZBQR3%237
  17. I used this http://www.typescriptlang.org/play/index.html to convert your code so that it would work in the PG. I made a couple of changes that might be helpful. http://www.babylonjs-playground.com/#236AN2#5
  18. It's not visible because the points of the line are on top of each other. Here is an example of using the RayHelper with a camera: http://www.babylonjs-playground.com/#ZHDBJ#39
  19. Calling updateFacetData updates the normals: http://www.babylonjs-playground.com/#PBVEM#86
  20. Here it is with the showNormals function that Jerome suggested: http://www.babylonjs-playground.com/#PBVEM#84
  21. Hi @Wingnut, I can't take credit for that showNormals function.
  22. You can use jsfiddle to recreate the issue: https://jsfiddle.net/nzexh6a6/4/
  23. I through in that last attachToBone example because it isn't entirely clear to me what you're trying to do. Anyway, you need to get the vertex position relative to the bone it is being influenced by. You should do this before your animation starts. I'd use bone.getLocalPositionFromAbsolute using the world position of the vertex. Then you can use the code in the example above to track the vertex. It might not be perfect because vertices are often influenced by more than one bone.
  24. Here are 3 different ways to attach a mesh to a bone: http://www.babylonjs-playground.com/#1PN9TO#8