jhadenfeldt

Members
  • Content Count

    11
  • Joined

  • Last visited

Everything posted by jhadenfeldt

  1. I'm trying to get post process working on a project that also should run in VR, but unfortunately things break as soon as I add the scene.createDefaultVRExperience() to the project. This happens even if VR is not activated yet. Is there any way to use post process and VR together? Here is an playground highlighting the issue: https://www.babylonjs-playground.com/#T49RDX (just uncomment line 9) Thanks!
  2. jhadenfeldt

    Using VR and PostProcess together

    You guys are awesome, thank you very much, works flawlessly!
  3. jhadenfeldt

    Animate plane scaling

    I'm trying to animate the scaling of a plane, but that doesn't seem to be possible? https://playground.babylonjs.com/#AUH1BY Am I doing something wrong here?
  4. jhadenfeldt

    Animate plane scaling

    Duh, makes sense. Thank you!
  5. 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:
  6. 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.)
  7. jhadenfeldt

    How to use content of any canvas as a texture

    Great, thank you so much!
  8. 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.
  9. 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?
  10. 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?
  11. 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