Bro, I have run into a big trouble.
aim: I want a contour line like HighlightLayer.
playground: https://playground.babylonjs.com/#QKPRI5
Plans:
1:renderOutline
2:HighlightLayer
3:two box
Issues — renderOutline:
1: Each mesh requires a separate setting of ‘outlineWidth’ size.
2: After zooming in and out,Different sizes of Outline.
Issues — HighlightLayer:
Exactly what I want. but!
1: Outline is distorted!
2: Even when obscured, Outline will appear(highlight).
configuration: i7-10870h + GTX 1650 (notebook) Google Chrome:141.0.7390.55(Official Version) (64)
Issues — two box:
copy mesh and set ‘renderingGroupId‘‘outlineMesh.scaling = new Vector3(1.05, 1.05, 1.05)‘
1: After zooming in and out,Different sizes of Outline(The border is relatively clear. Not too bad).
2: Setting the ‘renderingGroupId’ causes the ‘HighlightLayer’ to malfunction
3: The back box1 covers the front box2 (because renderingGroupId)
Ps: If you know how to do it. Please try to use concise and universal expressions as much as possible. like ‘Primary English’ (doge.jpg)(¬‿¬ )
playground: https://playground.babylonjs.com/#QKPRI5

