Skip to content

Commit

Permalink
Installing three-obj-loader and three-mtl-loader explicitly
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Oct 11, 2023
1 parent 37e69b9 commit 4c2e00e
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Circle, Line, Text } from '@react-three/drei';
import { ThreeEvent, useLoader } from '@react-three/fiber';
import React from 'react';
import { Euler, Vector3 } from 'three';
import { MTLLoader } from 'three/examples/jsm/loaders/MTLLoader';
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader';
import MTLLoader from 'three-mtl-loader';
import OBJLoader from 'three-obj-loader';

export interface RobotData {
fleet: string;
Expand Down
4 changes: 3 additions & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"react-window": "^1.8.6",
"rmf-models": "workspace:*",
"shallowequal": "^1.1.0",
"three": "^0.156.1"
"three": "^0.156.1",
"three-mtl-loader": "^1.0.2",
"three-obj-loader": "^1.1.3"
},
"devDependencies": {
"@babel/core": "^7.18.6",
Expand Down
Loading

0 comments on commit 4c2e00e

Please sign in to comment.