adam

Members
  • Content count

    1,440
  • Joined

  • Last visited

  • Days Won

    19

adam last won the day on May 28

adam had the most liked content!

4 Followers

About adam

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    AdmBmn

Profile Information

  • Gender

Recent Profile Visitors

2,424 profile views
  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