Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Hi Deltakosh, I've read the documentation more thoroughly again and have checked this PG (I've set the button in the billboard mode, see: https://www.babylonjs-playground.com/#ZI9AK7#115 - you need to zoom in ...). In essence, it would likely be the future direction, thanks! However, there could be more work to do. For example, I do not know how display the button text in a color other than white. Yesterday, I've completed the functionality in a somewhat hard way and it is now complete - will post it on the Playground next week. Because it is a (full functioning) prototype, I
  2. Billboards I'm showing need to be in a 3D scene, i.e. to resize depending on their spatial position - I'm showing a non-planar graph. That is basically all.
  3. Hi Adam, I'm using GUI in this particular application prototype already, but it seems not to be meant for this particular purpose. Maybe I'm wrong. BTW, I've also tried to open playground on my windows phone from the link provided by html5devs and it also fails (goes to default PG scene). However, typing of the last part of the url opens the PG without problems. Probably a glitch in the forum software.
  4. I've solved it somehow by drawing a rectangle directly in WebGL, see lines 26 and 27 textureContext.fillStyle = "#B5FFFF"; textureContext.fillRect (0, 0, 1000, 1000); check: https://www.babylonjs-playground.com/index.html#MBENKS#3 As I'm not a neither WebGL nor BABYLON.JS developer, please comment on my solution.
  5. I've improved the example a bit: https://www.babylonjs-playground.com/index.html#MBENKS#1
  6. I can write texts on "billboard style" mashes in any combination of text and background colors. However, I cannot figure out how to do it when wrapping text. For text wrapping I've used a code I've seen on this forum and on Stackoverflow and it works fine. However, it uses direct functions of WebGL and that apparently collides with the usage of BABYLON.JS objects (not surprising as it goes underneath the Babylon layer). So, I can draw text In white, but not in black. I'm sure it can be done, but I'm fighting it the whole morning without succes, Please have a look into this playgroun
  7. Thanks, this is exactly what I need.
  8. this works: label.background = "#E70000"; thanks!
  9. Could you show me that in the code? I've tried: var label = new BABYLON.GUI.Rectangle("label for " + mesh.name); label.background = new BABYLON.Color3(0.9, 0, 0); That does nothing.
  10. I'm displaying some items in the "billboard" mode: https://www.babylonjs-playground.com/index.html#20K47P#1 The items would need to maintain the same color (or change it just a bit with the camera rotations). I believe it must be very simple to do, but, still bein a novice, I do not know how ....
  11. I've just removed the prefix "solved". As a matter of fact, I've made a mistake by stuffing 5 issues in one post. The first issue has been responded to, the others not. Next time, I'll start more focused topics. Two issues have to do with my lack of experience (and shortcomings in the documentation) see #1 and #4. Points #2 and #5 are questions/suggestions regarding the functionality. I believe those are of interest to other forum users. For me, there is a simple workaround: will use a fixed-size font. Point #3 is something I've incidentally discovered while testing, but of no f
  12. Thanks Samuel, looking into your example: https://www.babylonjs-playground.com/#ZI9AK7#21 I've figured out that the hiding in your case works due to the way how you instantiate the texture: advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateForMesh(plane); while I do: advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("ui1"); As I'm really not proficient with 3D programming, I do not understand the difference - will read the documentation one of these days. I would prefer not to change the js library - it goes far beyond my knowledge
  13. Hiding and showing controls by using isVisible (like a Rectangle in this case) works if the control is not linked to a mesh by linkWithMesh. Once it is attached, the control stays visible. The inner controls (in my case the text inside the rectangle) can be hidden. See the playground https://www.babylonjs-playground.com/index.html#RBP60B#6 lines 35-42.
  • Create New...