Replies: 1 comment
-
most loaders have a parse method that would allow you to just use the binary arraybuffer https://threejs.org/docs/index.html?q=gltf#examples/en/loaders/GLTFLoader.parse |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm building an app that run locally through my computer. I'm running a server that generates 3d objects (chairs, specifically), and return a 3d model (wavefront .obj format).
My current design is:
React sends JSON request -> Mesh is being created, ".obj" file saved at public folder -> response containing the file name is returned -> r3f renders the new file.
I understand this is not an optimal flow, for some reasons:
I'm trying to change things up to make this work better. I'm noticed trimesh enables converting /obj files to gltf, so that's a start. I'm looking for an option to use r3f to dynamically load the gltf files from the http response itself, without needing to save it and then load it again. Is this thing even possible?
Thank you very much,
Dori
Beta Was this translation helpful? Give feedback.
All reactions