babylon-runtime / _r

Code Less, Babylon More
https://babylon-runtime.github.io/
Apache License 2.0
8 stars 1 forks source link

add TransformNode in filters #3

Closed Vinc3r closed 4 years ago

Vinc3r commented 5 years ago

to allow use of the selector _r("*:transformnode") (useful for gltf imports, when a mesh with multimaterials is splitted into submeshes)

https://doc.babylonjs.com/api/classes/babylon.transformnode#getclassname

fabsharp commented 5 years ago

Test case please with gltf files and basic selector usage :D

Vinc3r commented 4 years ago

cornellBox.glb should do the trick: https://github.com/babylon-runtime/_r.assets/blob/master/cornellBox/exports/glb/cornellBox.glb

Example: on Blender, cornellBox.000 is one object with 4 materials, once in glTF, the main object is converted in a transformNode, parent of one mesh per materials

img