Skip to content

Commit

Permalink
MuJoCo WASM and ThreeJS Fork from JsDelivr CDN (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM authored Sep 27, 2024
1 parent 40e8943 commit 8aadb78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
<script type="importmap">
{
"imports": {
"three": "/node_modules/three/build/three.module.js"
"three": "https://cdn.jsdelivr.net/gh/kscalelabs/store-deps@master/dist/three/build/three.module.js"
}
}
</script>

<!-- Tar Libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js"></script>

Expand Down
6 changes: 3 additions & 3 deletions frontend/public/examples/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import load_mujoco from "https://cdn.jsdelivr.net/gh/kscalelabs/store-deps@master/dist/mujoco_wasm.js";
import { OrbitControls } from "https://cdn.jsdelivr.net/gh/kscalelabs/store-deps@master/dist/three/examples/jsm/controls/OrbitControls.js";
import { GUI } from "https://cdn.jsdelivr.net/gh/kscalelabs/store-deps@master/dist/three/examples/jsm/libs/lil-gui.module.min.js";
import * as THREE from "three";

import load_mujoco from "../dist/mujoco_wasm.js";
import { OrbitControls } from "../node_modules/three/examples/jsm/controls/OrbitControls.js";
import { GUI } from "../node_modules/three/examples/jsm/libs/lil-gui.module.min.js";
import {
downloadExampleScenesFolder,
getPosition,
Expand Down

0 comments on commit 8aadb78

Please sign in to comment.