Skip to content

How to load standard materials into a VRM Object #1167

Closed Answered by 0b5vr
aMidnightNova asked this question in Help
Discussion options

You must be logged in to vote

I believe standard materials are loaded properly by the GLTFLoader.

Starting from three-vrm v1.0, VRM.materials only has MToonMaterials.
It's because materials need to be managed by the class VRM are only MToonMaterials, which need to call MToonMaterial.update() upon VRM.update().

You can use gltf.parser.getDependencies('material') instead, which lists every material loaded by the GLTFLoader.
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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aMidnightNova
Comment options

@aMidnightNova
Comment options

@0b5vr
Comment options

0b5vr Feb 6, 2023
Maintainer

@aMidnightNova
Comment options

Answer selected by aMidnightNova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants