ArcRotateCamera axes are confusing

Hi there! :slight_smile:

When you use non camera facing mode by setting the ribbonOptions parameter and you draw lines in different directions by a single GreasedLine instance you must set the directions for each line. Just imagine how could the code guess in which direction you want to apply the width of the line when you define the line just by setting the start and the end of the line, just by to 3D points. Actaully there is a ribbonOptions parameter:

directionsAutoMode: BABYLON.GreasedLineRibbonAutoDirectionMode.AUTO_DIRECTIONS_ENHANCED,

which intended to solve this problem but it couldn’t do magic :magic_wand: or it’s not enough sophisticated. :see_no_evil:

https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line/greased_line_ribbon#directionsautomode


After a while of thinking: :slight_smile:

I believe I could calculate the right slope (defined by one direction vector only in the directions parameter) of the ‘widhthened’ line just by taking that one direction and the direction of the line in 3D space. This way all the lines will be facing to the same one direction. I’ll have a look at it today while fixing another issue reported by @phill2mj Is there a way to lazy load lines of varying widths?

Thanks @phill2mj for playing around with GreasedLine and thanks for not loosing your mind :smiley:

:vulcan_salute: