This is a small app that should be uploaded to IPFS and should be used to load other assets (specifically 3D Models) from IPFS.
git clone {THIS_REPOSITORY}
cd 3d-viewer
npm install
npm run build
- Upload the build folder as a folder upload to Pinata or pin it manually yourself to IPFS.
- Upload a 3D Model file (in one of these formats: obj, 3ds, stl, ply, gltf, glb, 3dm, off) to Pinata or manually add it to IPFS yourself.
- View the model in browser by visiting
${YOUR_GATEWAY_URL}/ipfs/${APP_CID}?object=${3D_MODEL_CID}&filename=${MODEL_FILENAME_WITH_EXTENSION}
Note: it is important that the filename
parameter is included with the correct extension or the viewer will not work.