How to load standard materials into a VRM Object #1167
-
|
It seams that Standard Materials are not being loaded in 1.0.7. How do I load standard materials now ? here is a snapshot showing the difference in the returned materials property between version 0.6.7 and 1.0.7. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I believe standard materials are loaded properly by the Starting from three-vrm v1.0, You can use I apologize it's not documented on our migration guide properly. |
Beta Was this translation helpful? Give feedback.



I believe standard materials are loaded properly by the
GLTFLoader.Starting from three-vrm v1.0,
VRM.materialsonly hasMToonMaterials.It's because materials need to be managed by the class
VRMare onlyMToonMaterials, which need to callMToonMaterial.update()uponVRM.update().You can use
gltf.parser.getDependencies('material')instead, which lists every material loaded by theGLTFLoader.The method can be applied not only for VRM but also for any glTF models.
I apologize it's not documented on our migration guide properly.