- bun
- vite
npm install or bun install to install tinyusdz npm package to node_modules folder.
Run the server(We use bun + vite).
$ bun run dev
For some reason, vite cannot find tinyusdz.wasm file for caching(optimzieDeps).
Please exclude tinyusdz package to vite.config.ts(or vite.config.js) file as a work around.
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
server: {
headers: {
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'require-corp',
},
},
optimizeDeps: {
exclude: ['tinyusdz'],
},
});$ bun run build
(or vite build)
Content will be installed to ../dist
UsdCookie.usdz : Each asset has a license declared in the readme, typically CC0 or something highly permissive
image is resized to 1024x1024.