unobruno

Members
  • Content count

    6
  • Joined

  • Last visited

  1. Yeah i use the camera deliberately. The default mouse inputs in the game are detached. I can only see a top down view. The next problem is, the text on the top side disappear and the text on the bottom side appear. As in your pg example (initial view/starting view)
  2. Hey, i am trying do write text on a mesh. The text should only appear on the top side of the mesh. centered and also in the reading direction. I just played around and this is what i got so far: https://www.babylonjs-playground.com/#XCPP9Y#549 Its kinda buggy and i need ur help.
  3. Hey guys, i got the following scene: As you can see the text is stretching. How do i draw a text and keep the ratio ? My code so far: createRect = function(scene, bId, id, x, y, z, width, depth, height, rotation) { //Add example mesh to the scene let cube = BABYLON.Mesh.CreateBox(bId, 1, scene); let moduleTexture = new BABYLON.DynamicTexture("dynamic texture", 2048, scene, true); let cubeMat = new BABYLON.StandardMaterial(bId, scene); cubeMat.diffuseTexture = moduleTexture; cubeMat.diffuseTexture.uOffset = 0.02; cubeMat.diffuseTexture.wAng = 1.57; cubeMat.diffuseColor = new BABYLON.Color3(0.92, 0.92, 0.92); cubeMat.specularColor = BABYLON.Color3.Black(); cube.material = cubeMat; cube.enableEdgesRendering(); cube.edgesWidth = 5.0; cube.edgesColor = new BABYLON.Color4(0.4, 0.4, 0.4, 1); cube.position = new BABYLON.Vector3(x,y,z); cube.scaling = new BABYLON.Vector3(width, height, depth); cube.rotate(BABYLON.Axis.Y, rotation * Math.PI / 180 , BABYLON.Space.WORLD); var clearColor = "white"; var font = "bold 50em Arial"; var invertY = true; var text = id; var color = "black"; var x = 200; var y = 1224; moduleTexture.drawText(text, x, y, font, color, clearColor, true, true); } PS: I got a orthographic camera with a top down view
  4. unobruno

    How to orientate GUI.Slider vertical ?

    i just used jQuery UI. Might be a better solution for now
  5. unobruno

    How to orientate GUI.Slider vertical ?

    Thx. Thats what i'm searching for
  6. Hey guys, i just need ur help. I need a Vertical Slider in Babylon. I tried the following BabylonJS method, but that doesnt solve my problem. A PG is also below. GUI.StackPanel.isVertical = true; https://www.babylonjs-playground.com/#3VMTI9#3 Best regards and thx for ur help