MakeDevice is a tool to...
- Front-end service (MakeDevice)
- Install all dependencies with
yarn install yarn run dev
The webapge will be available at localhost:3000
- Backend server (MakeDevice-backed submodule)
- Ensure all dependencies are installed with
pip install -r requirements.txt - Start the server with
python3 server.py
The server will be availble at localhost:3333
- Aquire .glb model (e.g
vm_rp2040_brain_0.1.glb) - Run the command
npx gltfjsx vm_rp2040_brain_0.1.glb -ito optimize the model through instancing - Store the transformed .glb in
/public/models/virtual_modules/, filename following existing pattern - Upload the transformed model to https://gltf.pmnd.rs/
- Copy the generated Javascript to
/components/models/virtual_modules/, filename following pattern - In the Javascript file change
export function Modeltoexport default function Model - After
dispose={null}pasterotation={[Math.PI / 2, 0, Math.PI]} - Change the path in both places where
useGLTF(shows up to/models/virtual_modules/<name> - Javascript file changes finished
- Update
/components/spec/MakeDeviceDevices.jsonto include the new device, following pattern - Update
/components/models/PF_Module.tsxat the top and bottom following the patterns