adam

Members
  • Content count

    1,440
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by adam

  1. https://www.babylonjs-playground.com/index.html#0Y8MIL#5
  2. I think you should be disposing the meshes instead of the whole scene. https://www.babylonjs-playground.com/index2_5.html#CAVBUX#4
  3. Do not do any optimizations until you know where the bottleneck is. Invest some time in learning how to use the profiler.
  4. So you would be fine if there was just a getter for onDispose, right?
  5. Yes, since the width and height of the text is 100%. You could also do this: https://www.babylonjs-playground.com/#V3R633#5
  6. You need to set isHitTestVisible to false for the text or add the text before you add the stack panel. https://www.babylonjs-playground.com/#V3R633#4 Maybe text controls should have isHitTestVisible set to false by default.
  7. I'm thinking this was for backwards compatibility. Use: node.onDisposeObservable.add(callback);
  8. Try setting img.crossOrigin = "anonymous" before you set img.src. https://stackoverflow.com/questions/23123237/drawing-images-to-canvas-with-img-crossorigin-anonymous-doesnt-work#23123261 edit: this might need to happen here: https://github.com/BabylonJS/Babylon.js/blob/master/gui/src/controls/image.ts#L88
  9. https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image
  10. http://www.babylonjs-playground.com/#XCPP9Y#133 better yet: http://www.babylonjs-playground.com/#XCPP9Y#134
  11. I just submitted a PR that fixes this issue: https://github.com/BabylonJS/Babylon.js/pull/2332
  12. This seems to be working: http://www.babylonjs-playground.com/index.html#PJCV9G#2 I call camera.setTarget in afterRender.
  13. I will tonight.
  14. see the polyfill section https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove
  15. I think we need to use: this.parentNode.removeChild(this); for ie11
  16. I'll be submitting a fix for this tonight.
  17. engine.getFps().toFixed()
  18. PR submitted: https://github.com/BabylonJS/Extensions/pull/109
  19. Is this what you are trying to do? http://www.babylonjs-playground.com/#RNCYVM#14
  20. I'm not seeing an error. edit: OK, I see it after clicking. If possible, you should probably switch to using GUI.
  21. This bug has been fixed. Note: Even though this has been fixed, newcomers should choose GUI over Canvas2D.
  22. https://invisioncommunity.com/files/ https://invisioncommunity.com/4docs/advanced-usage/development/plugins-r71/ https://invisioncommunity.com/4guides/developing-plugins-and-applications/
  23. You can set the scene.pointerDownPredicate: http://playground.babylonjs.com/#F3Q39G
  24. https://www.babylonjs-playground.com/#FBH4J7#2