I’m struggling to get my head around the BILLBOARDMODE_USE_POSITION. I was initally thinking of posting this in the Bugs section but figured I might misunderstand it so gonna post it here instead.
I was working on some planes using billboarding using the Y axis in WebXR, when I came across a situation where the plane was still visible in the corner of my eye, but as it was using the camera’s direction instead of position, reading anything from the plane (its displaying some text and small graphics for me) felt annoying. Anything where my direction wasn’t straight at the plane felt a bit off, so I figured I could fix this by having the billboard work based on the camera’s position and not its direction. Now while writing this out, I kinda get why this happens, but am wondering if it’s intended as when I add the BILLBOARDMODE_USE_POSITION flag to the billboardMode, the plane “flips”, making me see the backside of the plane.
I get that the
this.lookAt(camera.position); will point in the opposite direction as the camera direction when looking at the billboarded objects, but this feels counter intuitive to me. I could just flip the texture or my uvs or whatnot, but I’m just wondering if this is intended behaviour.
I’ve made a playground example demonstrating this https://www.babylonjs-playground.com/#H7DRX6#2
Also note that plane 3 is basically invisible as it’s not doublesided