VRM selection is imo suboptimal.
morphles opened this issue · comments
For generating preview, I am not sure what best solution is yet. One option I considered was making a script that used puppeteer to render a vrm and output an image, but maybe there is better way to do it.
For showing the vrms in here, I think we could use something like whats done in the /import page which shows preview using the VrmDemo component.
puppeteer is overkill :), and also added dependency. At least for me model loads fast enough just let me flick through them quickly and it ill be ok (well still have to be able to go to the model I know too).
Try the node-canvas-webgl to prepare the preivew image.
The same issue for freezing vrm context referenced in #56 needs to be resolved for a preview image to work here.
If this is just about creating a thumbnail, then the simplest solution would be to just load the VRM model (it is already loaded in the Character creator) and then use the screen capture API to create an initial thumbnail. It doesn't have to be good, just recognizable.
This has been solved with vrm load save.