adam

Members
  • Content count

    1,335
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by adam

  1. If you try loading this page: <!doctype html> <html> <head> <script src="babylon.canvas2d.js"></script> <script src="babylon.max.js"></script> </head> <body> </body> </html> and then open the console you will see this error: Uncaught TypeError: Cannot read property 'Effect' of undefined at babylon.canvas2d.js:1 edit: Scripts execute in the order they appear on the page unless the html5 async property is used.
  2. You are describing a dropbox issue. I quickly found this with a simple google search. https://www.dropboxforum.com/t5/Sharing-and-collaboration/My-public-links-are-no-longer-working/m-p/211934
  3. You need a camera. http://doc.babylonjs.com/tutorials/creating_a_basic_scene
  4. This is a CORS issue. https://enable-cors.org/
  5. You need to load BJS first.
  6. This is an issue with parenting the mesh to the camera. http://www.babylonjs-playground.com/#1BZJVJ#92 http://www.babylonjs-playground.com/#1BZJVJ#96 edit: also occurs when parenting to a mesh (skeletonViewer lags): http://www.babylonjs-playground.com/#1BZJVJ#93 attachToBone doesn't look bad though: http://www.babylonjs-playground.com/#1BZJVJ#94 http://www.babylonjs-playground.com/#1BZJVJ#95 For now you should use attachToBone. edit 2: I got it to work by computing the world matrix of the mesh before getting the position or the bone: http://www.babylonjs-playground.com/#1N9CSW#6 I'll submit a PR to fix this issue sometime this week.
  7. It appears to me that you might have some skeleton issues. http://www.babylonjs-playground.com/#1N9CSW#5 http://www.babylonjs-playground.com/#1N9CSW#4
  8. https://doc.babylonjs.com/tutorials/layermasks_and_multi-cam_textures
  9. I'd try setting angularSensibility according to distance. https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.arcRotateCamera.ts#L58
  10. I think this is closer to what you want: http://babylonjs-playground.azurewebsites.net/#7CPXT#1
  11. http://doc.babylonjs.com/overviews/solid_particle_system#particle-management
  12. Here is a good RayHelper example: http://www.babylonjs-playground.com/#ZHDBJ#37
  13. It appears as though the plugin is setup to share materials between physics bodies if they have the same friction and restitution. https://github.com/BabylonJS/Babylon.js/blob/master/src/Physics/Plugins/babylon.cannonJSPlugin.ts#L200 For now, make sure your bodies don't have the same friction and restitution when you create them: http://babylonjs-playground.azurewebsites.net/#249T6Y#1
  14. It's working on this simple model: http://www.babylonjs-playground.com/#OCCLB#25 Weird
  15. https://github.com/BabylonJS/Babylon.js/commit/582d21e43967e6740e01ca267aa546107e4bce6c
  16. You can also use getChildMeshes()
  17. It was deprecated: https://github.com/BabylonJS/Babylon.js/commit/582d21e43967e6740e01ca267aa546107e4bce6c#diff-a924ac169e6c559246fb90e4dcf876d7 Use getDescendants instead
  18. http://www.babylonjs-playground.com/#1EZHCT#1
  19. http://stackoverflow.com/questions/9339870/how-to-reduce-numbers-significance-in-jsons-stringify
  20. This PG doesn't use scene.pickWithRay, but it could still be helpful: http://www.babylonjs-playground.com/#ZHDBJ#36
  21. http://www.babylonjs-playground.com/#LY90E#0 mesh1 is using setPivotPoint
  22. You shouldn't have to use a worker for this. I experimented with something similar and didn't see any performance gains:
  23. Javascript is Typescript. If you want to submit a PR, simply submit the javascript and the core team will work with you.
  24. I still don't understand what the issue is.