Search the Community
Showing results for tags 'advanceddynamictexture'.
-
Hi all, We have an application being build using babylonjs in which we are using an advanceddynamictexture to show a text block. We use the following line of code to create the texture: let textElementTexture: BABYLON.GUI.AdvancedDynamicTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateForMesh(baseMeshforTextBlock); We also have a refresh key which updates the current scene and redraws the meshes again. We observed that refresh takes a long time due to the text blocks. On profiling further we found out that the above line of code takes around 35ms during the initial scene creation but when we do the refresh, the same line of code takes around 1900ms. We are not sure why there's this huge increase in time. Can someone help us understand this or provide any further guidance to figure out what's causing this? Thanks in advance.
- 11 replies
-
- gui
- advanceddynamictexture
-
(and 1 more)
Tagged with:
-
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
- 1 reply
-
- gui
- advanceddynamictexture
-
(and 1 more)
Tagged with:
-
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
- 3 replies
-
- advanceddynamictexture
- gui
-
(and 3 more)
Tagged with:
-
So I am trying to create an input field above a sphere. I have problems with applying the proper proportions of the input field without the text either being way too small, or being stretched and smudged if when it get large enough. Furthermore I have problems with the textPlane, on which the input is attached, getting in the way and preventing hover and mouse events on the sphere below it. Here is what I got at line 203: http://www.babylonjs-playground.com/#28AM9V#24 I feel like I'm lacking proper control of positioning and sizing the input, probably because I'm doing something silly somewhere. Would love to get some ideas from you guys on how to fix it
-
Hello everybody, Long time I haven't post anything here as my life with babylonjs is going smooth and well. But unfortunetly I am now stuck! I am looking for a way to adapt an advanced texture size depending on the mesh size so that the text on it will keep the same font and shape. I have made a playground to make my request more clear : https://playground.babylonjs.com/#RICIF8 Thanks a lot! Pichou
- 4 replies
-
- advanceddynamictexture
- advancedtexture
-
(and 4 more)
Tagged with:
-
When the text isn't in center on transparent plane, we can't see the text. I would like the same opacity between the two texts. Have you some idea, please ? https://playground.babylonjs.com/#8WC0U7 -I tried to put a light on the side, it doesn't work -I tried to raise the altitude of the text, but the text will be very far from the plane
- 2 replies
-
- advanceddynamictexture
- gui
-
(and 2 more)
Tagged with: