mind0n

Members
  • Content Count

    10
  • Joined

  • Last visited

About mind0n

  • Rank
    Member

Recent Profile Visitors

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

  1. 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
  2. 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.registerAction(act); function pick(evt){ var mesh = evt.meshUnderPointer; camera.setTarget(mesh); }
  3. 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
  4. mind0n

    How to set appropriate font size

    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?
  5. 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
  6. 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.
  7. 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.
  8. 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.