Jump to content


  • Content Count

  • Joined

  • Last visited

About mind0n

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Refer to the playground url below, if we press Up arrow to move the camera ahead and we'll see that the GUI.Multiline is still visible. Is there any way to hide the GUI.Multiline when all the connected meshes are behind the camera? https://www.babylonjs-playground.com/#XCPP9Y#723
  2. Hi @Wingnut, Thanks for the feedback, your example looks great. However, I have to use a GUI line to connect 2 meshes. That's because I need to keep all the lines at the background so the lines never display in front of any mesh no matter how user rotates the camera. I really appreciate if GUI lines could support this feature (connect 2 meshes with a single line).
  3. Refer to the demo below, a GUI line can connect a mesh & a control at the same time by using: line.linkWithMesh(sphere); line.connectedControl = rect1; However, what I want to achieve is that let GUI line link with 2 meshes, each at the end of the line. (eg. line.linkWithMesh(sphere1, sphere2); Is there any way to achieve this? https://www.babylonjs-playground.com/#XCPP9Y#39
  4. Hi @ssaket or @Deltakosh, I understand that this is a complicated problem. So I adjusted the code to narrow down the problem. Refer to the link below, the problem will only occur when billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL. For BILLBOARDMODE_X, BILLBOARDMODE_Y or BILLBOARDMODE_Z, this issue never occurs. And now just one click of the mesh will trigger the issue. Hope this helps. https://www.babylonjs-playground.com/#9XBPW4#2
  5. Refer to the link below, for billboard enabled meshes, I added mouse pick event so the camera will target to the mesh which being clicked. However, after click on the mesh which BILLBOARDMODE_ALL is enabled, I got the following error. I'd be really appreciated if anyone can fix this issue. Thanks. https://www.babylonjs-playground.com/#9XBPW4#2 if (!m.actionManager){ m.actionManager = new BABYLON.ActionManager(scene); } var act = new BABYLON.ExecuteCodeAction( BABYLON.ActionManager.OnPickTrigger, pick ); m.actionManager.registerActi
  6. I searched the babylon.d.ts and cannot find keyword AdvancedDynamicTexture or GUI. Does any one know how to create AdvancedDynamicTexture using TypeScript? Or where is the correct place to get the latest definition file for babylon.js? https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/dist/preview release/babylon.d.ts Solution: https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/dist/preview release/gui/babylon.gui.d.ts
  7. Hi @JohnK, if you look at my code, what I'm using is AdvancedDynamicTexture, not the DynamicTexture within the provided link above. The advancedDynamicTexture were created based on the mesh size automatically. Setting the width & height of AdvancedDynamicTexture does not make any difference of the TextBlock rendering. And setting the width & height of the StackPanel / TextBlock will only crop the rendered text. Is there any way to adjust the rendering resolution of the AdvancedDynamicTexture so the text could rendered better?
  8. Refer to the link below, it looks like that the fatness of the font will be impacted by the width & height of the plain mesh. This is not what I expected. Actually I want the font be rendered normally no matter what the mesh size is. Is there way to fix this issue? How to calculate an appropriate size to make the font look better? https://www.babylonjs-playground.com/#YFRMAK#11 Solution: https://www.babylonjs-playground.com/#YFRMAK#15
  9. Thanks @Deltakosh for the response, is there any way to force the mesh (eg. plain) to always facing the camera? I choose sprite to render clickable image because it always faces the camera automatically. If mesh events will be triggered before sprite events, then I need a way to let the mesh always faces the camera so I can render the image on the mesh instead.
  10. Refer to the playground url below, sprite is in front of the sphere, however the click / pick event triggered on backend sphere first regardless of the sprite's position. Url: https://www.babylonjs-playground.com/#9RUHH#29 Expected result: Player clicked will be triggered instead of Sphere clicked.
  11. Babylon JS have excellent documentation, however, there's still broken links exists and really hope some one can fix it to make the documentation perfect. Open page https://doc.babylonjs.com/examples/ Click the first link item (not the word Document): Link to Typescript Playground Expected result: Page opened successfully at the right panel Actual result: Right panel displayed page not found error Page Not found Looks like you've followed a broken link or entered a URL that doesn't exist on this site.
  • Create New...