Multiline weird behaviour

Hello,
I Have found some strange multiline behaviour. When you use multiline with meshes and rotate camera in 180 degrees, you will be able to see that multiline there and it is upside down. It’s easy to see this in playground below. I placed spheres around for easier orientaion.
https://www.babylonjs-playground.com/#H03KNW#27

Hey not sure to see what you mean with multiline is upside down

I hope this will be more clear. I created arrow that points upwards. Than I look at my back and there is the same arrow, but with no meshes and it points downwards. This is Multiline behavior. BABYLON.GUI.Line behave somehow thats looks normal to me.
https://www.babylonjs-playground.com/#H03KNW#33

checking to see if @Cedric can have a look :slight_smile:

It looks like the lines are not clipped by the frustum. when is gets behind the camera, it’s flipped. Are the view/projection transformation done on CPU for mesh lines?? I’m investigating…

1 Like

PR Clip multilines by camera near plane when point is attached to a mesh by CedricGuillemet · Pull Request #9223 · BabylonJS/Babylon.js · GitHub