MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.31k stars 232 forks source link

3d mesh is not showing: importmap seems not working. Import "three" failed #291

Closed cloudyian closed 1 month ago

cloudyian commented 2 months ago

3d Mesh is not showing: loading scene...

error loading extension /extensions/ComfyUI-3D-Pack/js/threeVisualizer.js TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".

Screenshot 2024-08-31 214325 image

omeganow commented 1 month ago

Had the same issue. Seems to be related to the frontend change of ComfyUI and how the .js extensions are loaded I guess they are loaded before the html with the importmap statement.

Falling back to the legacy frontend seems to work for me --front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest (ComfyUI/pull/4379)

MrForExample commented 1 month ago

3D preview nodes now support new ComfyUI's Frontend, cheers 👍

807502278 commented 2 weeks ago

I added this when starting the bat. --front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest But preview 3dgs still cannot be used in the latest version, Only preview mesh can be used image

MrForExample commented 2 weeks ago

Hi @807502278 There is a small bug in 3DGS preview, I fixed already, and it will be available in next update, cheers, have a good weekend 👍

807502278 commented 2 weeks ago

@MrForExample it can be previewed now and there are no bugs. It's very useful. Thank you very much. Well, I may have to work overtime on weekends to do the work about inverse camera pose. I have already done half of it, but I feel that I may not be able to finish it...