Actual HTML install instructions? #1436
-
The "How to Use" has a section that implies that all you need is that HTML code and it'll "import all of them via CDN" (useful since two of the three "what you need" links are broken now). So I tried that but get the javascript error three-vrm.module.js .. it's not in the repository anywhere. So I grab a copy from https://unpkg.com/browse/@pixiv/[email protected]/lib/ and manage to find the other two javascript files in other places.
Uncaught SyntaxError: Failed to parse import map: Invalid JSON format. JSON.parse: expected double-quoted property name at line 7 column 5 of the JSON data Guys I'm getting the feeling that the "from HTML" section of the examples is not going to work. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
@GullyTechIO In your example, try remove the trailing comma <script type="importmap">
{
"imports": {
"three": "three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/",
- "@pixiv/three-vrm": "https://unpkg.com/browse/@pixiv/[email protected]/lib/three-vrm.module.js",
+ "@pixiv/three-vrm": "https://cdn.jsdelivr.net/npm/@pixiv/[email protected]/lib/three-vrm.module.js"
}
}
</script> |
Beta Was this translation helpful? Give feedback.
-
I tried copying the exact code from https://pixiv.github.io/three-vrm/packages/three-vrm/examples/basic.html and changing that third importmap line to So there is some important difference between the example code in readme.md on the and the example pages. |
Beta Was this translation helpful? Give feedback.
-
Is there a list of functions somewhere? The examples only have |
Beta Was this translation helpful? Give feedback.
You can find some documentations at https://pixiv.github.io/three-vrm/packages/three-vrm/docs.
For moving head you can try