Multiline weird behaviour

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.

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.

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