RenderOutline and HighlightLayer has question on TransformNode!

Animation weights demo | Babylon.js Playground (babylonjs.com)

image

If the model has a node, there are many levels in Node, and there are many Mesh, transformNode in each level, I am now add a outer light in whole node like this example

What should I do ?


Actually, I want to this effect .
The implementation is also very simple, in the three.

outlinePass.selectedObjects = [object3D];
// outlinePass.selectedObjects = [];

image

  1. As ImportMeshAsync is an async function, you should wait until mesh imported.
  2. Only meshes can have vertex data, transformNodes will not rendered, you can see the reason in the document.
  3. You have to traverse all meshes in the transformNode if you want to hightlight the whole transformNode because of the second point.
    Fixed pg: https://playground.babylonjs.com/#ABDDD6#33
4 Likes

OK, thanks