-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow loading of models from strings #6891
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you! |
I agree this feature makes sense! Although I would follow the precedent set by shaders, where |
I'd like to try and work on this. |
@davepagurek I implemented the method to load obj/stl from a string, but wonder if this is still up for debate and I was a little premature. Should I make the pr? |
Feel free to make a PR, thanks! |
Increasing access
Most appropriate sub-area of p5.js?
Feature enhancement details
The current loadModel function takes a path to load a model from a .stl or .obj file, however this requires that a server exists that serves these assets.
A function that loads models directly from a string can increase portability of examples (as in copy + paste) and allows loading models without a server.
The following example:
could also be written as:
The changes in code should be trivial, as this can reuse already existing helper functions.
The text was updated successfully, but these errors were encountered: