Code Monkey home page Code Monkey logo

manyi-transformer's People

Contributors

marshallchang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

manyi-transformer's Issues

Difficulty in Loading Local WASM Files for DracoLoader and KTX2Loader

Description:

In my original concept, I aimed to load all dependencies locally. Thus, between versions 1.1.0 and 1.2.0, I made multiple attempts to enable local loading of WASM files when using DracoLoader and KTX2Loader. Below are the steps I took:

  1. created a "public" folder in the root directory and placed the required "libs" files inside it. This approach worked well in the development environment. @v1.1.0
  2. In the electron-builder configuration, I added the following entry:
"extraResources": [
  "./assets/**",
  "./public/**"
],

This allowed the content of the "public" folder to be successfully copied to the appPath/Content/Resources/public folder during the packaging process. @v1.1.2
3. I then attempted to use the main process to notify the renderer process about the specific path to the "public/libs" files in the production environment. @v1.1.6
4. While this approach worked well when building locally, I encountered errors when using GitHub Actions for the packaging process. It might be related to the Loader's method of loading the path after it is obtained from three.js. However, I am not entirely clear on the exact cause at the moment. Nevertheless, it is evident that this method can indeed read the files. [email protected]

Ultimately, I had to resort to loading resources from a CDN. If you have a better approach, please feel free to submit a Pull Request. Your assistance is greatly appreciated.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.