jhadenfeldt

Members
  • Content Count

    7
  • Joined

  • Last visited

About jhadenfeldt

  • Rank
    Newbie

Recent Profile Visitors

37 profile views
  1. I am trying to use the GUI MultiLine in combination with a GUI Rectangle, which works fine: https://www.babylonjs-playground.com/#WV5YD6#1 The problem I'm having is the position of the line that is attached to the rectangle. Is there a way to not have the line centered in the middle of the rectangle, but define an offset that allows me to position the end of the line in one of the corners? In the screenshot, I marked what I'm trying to do with a red line:
  2. jhadenfeldt

    How to use content of any canvas as a texture

    Great, thank you so much!
  3. Hast du diesen Link bereits gesehen? https://msdn.microsoft.com/de-de/magazine/mt614269.aspx Ist zwar eine aeltere Version, aber sieht nach einem guten Tutorial fuer Anfaenger aus.
  4. I have a canvas and want to use it's content as a texture. I assume there is a way to use dynamicTexture for that, but couldn't find out a way to do that. I've created a demo here: https://codepen.io/anon/pen/mQVLaJ I'd like to use the content of the canvas ("Hello World") as the texture for the plane. (I know that I could write the text directly to the dynamicTexture. The text in the example is only for demo purposes. In my project it won't be text.)
  5. jhadenfeldt

    depth map only has 1 bit color depth

    Ooh, that makes sense! Thank you! I feel like that could be added to the documentation here: https://doc.babylonjs.com/how_to/how_to_use_depthrenderer_to_get_depth_values Would you accept a PR if I extend the documentation?
  6. jhadenfeldt

    depth map only has 1 bit color depth

    So I was able to reproduce the case in the playground: https://playground.babylonjs.com/#NH8QH5 Why does the depth map not look like in this example? https://www.babylonjs-playground.com/#T5YWJQ#4
  7. I am having a hard time getting a depth map to work within my project. I understand that the depth map should be a grey scale image with the elements closer to the camera being colored darker. In my project though, I only get a 1 bit image (the plane on the left has the depthMap as a diffuseTexture). I tried my depth map code on the playground and I get the desired outcome, but I can't port my whole project to the playground. Does anyone know what could cause this issue?