Babylon VRM Demos no longer works

I am interested in the 3D avatars in Babylon and have found the library babylon-vrm-loader.
I wanted to have a look at the possibilities, but all demos do not work with the current Playground Babylon version (4.2.0-alpha.14).

Documentation: How to use VRM Humanoid in Babylon.js - Babylon.js Documentation
Example Playground: Babylon.js Playground

There is also an error displayed in the console.

    Uncaught TypeError: Cannot read property 'undefined' of undefined
        at t._renderWithInstances (babylon.js:16)
        at t._processRendering (babylon.js:16)
        at e.render (cdn.jsdelivr.net/npm/babylon-vrm-loader/dist/index.js:16)
        at e._beforeRenderingMesh (cdn.jsdelivr.net/npm/babylon-vrm-loader/dist/index.js:16)
        at t.render (babylon.js:16)
        at t.render (babylon.js:16)
        at e.renderUnsorted (babylon.js:16)
        at e.render (babylon.js:16)
        at e.render (babylon.js:16)
        at t._renderForCamera (babylon.js:16)

Can anyone help here?

Thank you!

pinging @il-m-yamagishi who is the author

OK, I will check it.

This error may be caused by the commit above.

It breaks OutlineRendering in MToonMaterial. I will fix it.

2 Likes

https://playground.babylonjs.com/#K5W35Y#21

Now this issue was fixed at babylon-vrm-loader@v1.4.13.

5 Likes