Karl Cusi
Karl Cusi

Reputation: 49

Fetch 3d Model from IPFS then render using three.js

I don't have a snippet yet, but I can fetch data from the IPFS but still confused on how to render a 3d model on the front-end is there a documentation as it only downloads the file when trying to access the IPFS CID is there a resource or package that I can use to render?

Upvotes: 1

Views: 342

Answers (1)

Pandemonium
Pandemonium

Reputation: 8390

You want to upload and download the 3D files as .glb (GL binary format) so all textures stay in one file, and use a utility like GLTFLoader to load and render the file.

Upvotes: 1

Related Questions