feat(wasm): deploy real 60FPS MuJoCo WebAssembly physics engine (Zero Docker, Zero GIFs)
Browse files- app.js +1 -1
- assets/anim_01.gif +3 -0
- assets/anim_02.gif +3 -0
- assets/anim_03.gif +3 -0
- assets/anim_04.gif +3 -0
- assets/anim_05.gif +3 -0
- assets/anim_06.gif +3 -0
- assets/anim_07.gif +3 -0
- assets/anim_08.gif +3 -0
- assets/anim_09.gif +3 -0
- assets/anim_10.gif +3 -0
- assets/cleared_03.png +0 -0
- assets/cleared_06.png +0 -0
- assets/cleared_10.png +0 -0
- assets/game01.png +0 -0
- assets/game02.png +0 -0
- assets/game03.png +0 -0
- assets/game04.png +0 -0
- assets/game05.png +0 -0
- assets/game06.png +0 -0
- assets/game07.png +0 -0
- assets/game08.png +0 -0
- assets/game09.png +0 -0
- assets/game10.png +0 -0
- game_blueprints.js +1 -1
- index.html +2 -2
- mujoco_wasm_player.js +28 -16
app.js
CHANGED
|
@@ -851,7 +851,7 @@ async function initWasmEngine() {
|
|
| 851 |
|
| 852 |
try {
|
| 853 |
if (!MujocoWasmPlayer) {
|
| 854 |
-
const mod = await import(withSign("./mujoco_wasm_player.js?v=
|
| 855 |
MujocoWasmPlayer = mod.MujocoWasmPlayer;
|
| 856 |
}
|
| 857 |
wasmPlayer = new MujocoWasmPlayer(container);
|
|
|
|
| 851 |
|
| 852 |
try {
|
| 853 |
if (!MujocoWasmPlayer) {
|
| 854 |
+
const mod = await import(withSign("./mujoco_wasm_player.js?v=20261107_v10"));
|
| 855 |
MujocoWasmPlayer = mod.MujocoWasmPlayer;
|
| 856 |
}
|
| 857 |
wasmPlayer = new MujocoWasmPlayer(container);
|
assets/anim_01.gif
ADDED
|
Git LFS Details
|
assets/anim_02.gif
ADDED
|
Git LFS Details
|
assets/anim_03.gif
ADDED
|
Git LFS Details
|
assets/anim_04.gif
ADDED
|
Git LFS Details
|
assets/anim_05.gif
ADDED
|
Git LFS Details
|
assets/anim_06.gif
ADDED
|
Git LFS Details
|
assets/anim_07.gif
ADDED
|
Git LFS Details
|
assets/anim_08.gif
ADDED
|
Git LFS Details
|
assets/anim_09.gif
ADDED
|
Git LFS Details
|
assets/anim_10.gif
ADDED
|
Git LFS Details
|
assets/cleared_03.png
ADDED
|
assets/cleared_06.png
ADDED
|
assets/cleared_10.png
ADDED
|
assets/game01.png
ADDED
|
assets/game02.png
ADDED
|
assets/game03.png
ADDED
|
assets/game04.png
ADDED
|
assets/game05.png
ADDED
|
assets/game06.png
ADDED
|
assets/game07.png
ADDED
|
assets/game08.png
ADDED
|
assets/game09.png
ADDED
|
assets/game10.png
ADDED
|
game_blueprints.js
CHANGED
|
@@ -11,7 +11,7 @@ window.PREMIUM_GAME_XMLS = {
|
|
| 11 |
"6": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 1.0\" extent=\"3.0\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"soft_ground\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"slide_rainbow\" rgba=\".93 .88 .96 1\" reflectance=\"0\" roughness=\".7\"/>\n <material name=\"bean_pink\" specular=\".16\" shininess=\".22\" rgba=\"1 .4 .65 1\" roughness=\".6\"/>\n <material name=\"bean_mint\" specular=\".16\" shininess=\".22\" rgba=\".22 .85 .68 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"finish_banner\" rgba=\"1 .80 .25 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.4 1.4\" xyaxes=\"1 0 0 0 .38 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4\" dir=\"0 .5 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"3 3 .1\" material=\"soft_ground\"/>\n <geom type=\"box\" pos=\"0 0 .9\" size=\"1.4 .48 .04\" euler=\"0 25 0\" material=\"slide_rainbow\" friction=\"0.3 0.005 0.0001\"/>\n <geom type=\"box\" pos=\"0 .49 .9\" size=\"1.4 .03 .08\" euler=\"0 25 0\" material=\"finish_banner\"/>\n <geom type=\"box\" pos=\"0 -.49 .9\" size=\"1.4 .03 .08\" euler=\"0 25 0\" material=\"finish_banner\"/>\n\n <!-- Pink Bean Racer (Incline Slide Ramp pos z=1.68) -->\n <body name=\"pink_racer\" pos=\"-.9 .2 1.68\"><freejoint/>\n <geom type=\"capsule\" size=\".11 .15\" material=\"bean_pink\" friction=\"0.25 0.005 0.0001\" mass=\"1\"/>\n <geom type=\"ellipsoid\" pos=\"0 -.08 .03\" size=\".08 .04 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n </body>\n\n <!-- Mint Bean Racer (Incline Slide Ramp pos z=1.68) -->\n <body name=\"mint_racer\" pos=\"-.9 -.2 1.68\"><freejoint/>\n <geom type=\"capsule\" size=\".11 .15\" material=\"bean_mint\" friction=\"0.28 0.005 0.0001\" mass=\"1\"/>\n <geom type=\"ellipsoid\" pos=\"0 -.08 .03\" size=\".08 .04 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n </body>\n </worldbody>\n</mujoco>",
|
| 12 |
"7": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .8\" extent=\"2.4\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"mat_floor\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"bean_pink\" specular=\".15\" shininess=\".2\" rgba=\"1 .42 .62 1\" roughness=\".6\"/>\n <material name=\"bean_mint\" specular=\".15\" shininess=\".2\" rgba=\".25 .88 .72 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\" roughness=\".7\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"eye_sparkle\" rgba=\"1 1 1 1\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n <material name=\"balloon_cyan\" rgba=\".3 .85 1 1\"/>\n <material name=\"balloon_purple\" rgba=\".75 .5 1 1\"/>\n <material name=\"candy_stripe1\" rgba=\"1 .5 .6 1\"/>\n <material name=\"candy_stripe2\" rgba=\"1 1 1 1\"/>\n <material name=\"foam_wall\" specular=\".1\" shininess=\".2\" rgba=\".75 .85 .98 1\"/>\n </asset>\n <option timestep=\"0.005\"/>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.4 1.2\" xyaxes=\"1 0 0 0 .32 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -3 5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <light pos=\"2 2.5 4\" dir=\"-.4 -.4 -1\" diffuse=\".32 .35 .38\" specular=\"0 0 0\"/>\n <geom type=\"plane\" size=\"4 4 .1\" material=\"mat_floor\"/>\n\n <!-- Carnival Pillars & Festive Balloons -->\n <geom type=\"cylinder\" pos=\"-1.8 1.8 .8\" size=\".14 .8\" material=\"candy_stripe1\"/>\n <geom type=\"cylinder\" pos=\"1.8 1.8 .8\" size=\".14 .8\" material=\"candy_stripe1\"/>\n <geom type=\"sphere\" pos=\"-1.8 1.8 1.7\" size=\".22\" material=\"gold_star\"/>\n <geom type=\"sphere\" pos=\"1.8 1.8 1.7\" size=\".22\" material=\"gold_star\"/>\n <geom type=\"sphere\" pos=\"-1.3 1.5 2.1\" size=\".18\" material=\"balloon_cyan\"/>\n <geom type=\"sphere\" pos=\"1.3 1.5 2.2\" size=\".18\" material=\"balloon_purple\"/>\n\n <!-- Arena Soft Cushion Boundary Fence -->\n <geom type=\"capsule\" fromto=\"-1.9 -1.2 .14 1.9 -1.2 .14\" size=\".12\" material=\"bean_mint\"/>\n <geom type=\"capsule\" fromto=\"-1.9 1.2 .14 1.9 1.2 .14\" size=\".12\" material=\"bean_pink\"/>\n <geom type=\"capsule\" fromto=\"-1.9 -1.2 .14 -1.9 1.2 .14\" size=\".12\" material=\"foam_wall\"/>\n <geom type=\"capsule\" fromto=\"1.9 -1.2 .14 1.9 1.2 .14\" size=\".12\" material=\"foam_wall\"/>\n\n <!-- Brick #07: Chubby Pink Bean Balancing on Long Lollipop Stick -->\n <geom type=\"capsule\" fromto=\"-1.9 0 .3 1.9 0 .3\" size=\".025\" rgba=\".75 .85 .98 1\" contype=\"0\" conaffinity=\"0\"/>\n <body name=\"cart_body\" pos=\"0 0 .3\">\n <joint name=\"slide\" type=\"slide\" axis=\"1 0 0\" limited=\"true\" range=\"-1.8 1.8\" damping=\".1\"/>\n <geom type=\"box\" size=\".24 .16 .07\" material=\"bean_mint\" mass=\"1.2\"/>\n <geom type=\"box\" pos=\"0 0 .075\" size=\".2 .12 .015\" material=\"face_white\"/>\n\n <body name=\"bean_pole\" pos=\"0 0 .1\">\n <joint name=\"hinge\" type=\"hinge\" axis=\"0 1 0\" damping=\".01\"/>\n <!-- Long Candy Lollipop Stick (Height: 0.8m) -->\n <geom type=\"capsule\" fromto=\"0 0 0 0 0 .8\" size=\".03\" material=\"candy_stripe2\" mass=\".2\"/>\n <!-- Top Jelly Bean Capsule Body -->\n <geom type=\"capsule\" pos=\"0 0 .82\" size=\".12 .16\" material=\"bean_pink\" mass=\".1\"/>\n <!-- White Face Patch -->\n <geom type=\"ellipsoid\" pos=\"0 -.09 .86\" size=\".08 .04 .06\" material=\"face_white\"/>\n <!-- Expressive Cartoon Eyes -->\n <geom type=\"sphere\" pos=\"-.035 -.12 .87\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.12 .87\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\"-.03 -.135 .88\" size=\".006\" material=\"eye_sparkle\"/>\n <geom type=\"sphere\" pos=\".04 -.135 .88\" size=\".006\" material=\"eye_sparkle\"/>\n <!-- Blushing Cheeks -->\n <geom type=\"sphere\" pos=\"-.065 -.11 .84\" size=\".018\" material=\"candy_stripe1\"/>\n <geom type=\"sphere\" pos=\".065 -.11 .84\" size=\".018\" material=\"candy_stripe1\"/>\n <!-- Outstretched Balancing Arms -->\n <geom type=\"capsule\" fromto=\"-.11 0 .85 -.26 0 .91\" size=\".028\" material=\"bean_pink\"/>\n <geom type=\"capsule\" fromto=\".11 0 .85 .26 0 .91\" size=\".028\" material=\"bean_pink\"/>\n <!-- Candy Antenna & Golden Star -->\n <geom type=\"capsule\" fromto=\"0 0 .98 0 0 1.06\" size=\".01\" material=\"candy_stripe2\"/>\n <geom type=\"sphere\" pos=\"0 0 1.08\" size=\".04\" material=\"gold_star\" mass=\".04\"/>\n </body>\n </body>\n </worldbody>\n <actuator>\n <motor joint=\"slide\" gear=\"35\" ctrlrange=\"-1 1\"/>\n </actuator>\n</mujoco>",
|
| 13 |
"8": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .5\" extent=\"2.6\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"bumper_arena\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"car_bubblegum\" specular=\".16\" shininess=\".22\" rgba=\"1 .42 .65 1\" roughness=\".65\"/>\n <material name=\"bean_mint\" specular=\".15\" shininess=\".2\" rgba=\".25 .88 .72 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"rubber_bumper\" rgba=\".24 .28 .38 1\" roughness=\".8\"/>\n <material name=\"yellow_wheel\" rgba=\"1 .80 .22 1\" roughness=\".7\"/>\n <material name=\"cushion_wall\" specular=\".12\" shininess=\".18\" rgba=\".28 .85 .72 1\" roughness=\".75\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.0 1.3\" xyaxes=\"1 0 0 0 .36 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4.5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"5 5 .1\" material=\"bumper_arena\"/>\n <!-- Arena Rectangular Marshmallow Guardrails -->\n <geom type=\"capsule\" fromto=\"-2.0 -1.6 .16 2.0 -1.6 .16\" size=\".14\" material=\"cushion_wall\"/>\n <geom type=\"capsule\" fromto=\"-2.0 1.6 .16 2.0 1.6 .16\" size=\".14\" material=\"cushion_wall\"/>\n <geom type=\"capsule\" fromto=\"-2.0 -1.6 .16 -2.0 1.6 .16\" size=\".14\" material=\"car_bubblegum\"/>\n <geom type=\"capsule\" fromto=\"2.0 -1.6 .16 2.0 1.6 .16\" size=\".14\" material=\"car_bubblegum\"/>\n <!-- Donut Obstacles (Diagonal: clear of central W/S drive lane and all 5 coins) -->\n <geom type=\"cylinder\" pos=\"-0.6 -0.55 .16\" size=\".22 .15\" material=\"yellow_wheel\"/>\n <geom type=\"cylinder\" pos=\"0.6 0.55 .16\" size=\".22 .15\" material=\"car_bubblegum\"/>\n\n <!-- ๐ 5 Collectible Golden Macaron Star Coins -->\n <body name=\"coin1\" pos=\"-1.3 -0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin2\" pos=\"1.3 0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin3\" pos=\"0 1.15 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin4\" pos=\"-1.3 0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin5\" pos=\"1.3 -0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n\n <!-- Bumper Car & Mint Jelly Bean Driver -->\n <body name=\"car_root\" pos=\"0 0 .22\">\n <freejoint/>\n <geom type=\"box\" size=\".32 .18 .07\" material=\"car_bubblegum\" mass=\"3.2\"/>\n <geom type=\"cylinder\" pos=\".33 0 .04\" size=\".17 .03\" zaxis=\"0 0 1\" material=\"rubber_bumper\"/>\n <!-- Mint Bean Driver at the Steering Wheel -->\n <body pos=\"-.04 0 .16\">\n <geom type=\"capsule\" size=\".11 .14\" material=\"bean_mint\"/>\n <geom type=\"ellipsoid\" pos=\".08 0 .04\" size=\".05 .08 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\".11 -.035 .045\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".11 .035 .045\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"cylinder\" pos=\".16 0 .02\" size=\".06 .015\" zaxis=\"1 0 0\" material=\"rubber_bumper\"/>\n </body>\n <!-- 4 Chassis Wheels: Front wheels use tuned lateral friction (0.25) for agile skid steering -->\n <body pos=\"-.18 .2 -.04\"><joint name=\"rl\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"1.4 0.01 0.001\"/></body>\n <body pos=\"-.18 -.2 -.04\"><joint name=\"rr\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"1.4 0.01 0.001\"/></body>\n <body pos=\".18 .2 -.04\"><joint name=\"fl\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"0.25 0.005 0.0005\"/></body>\n <body pos=\".18 -.2 -.04\"><joint name=\"fr\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"0.25 0.005 0.0005\"/></body>\n </body>\n </worldbody>\n <actuator>\n <motor joint=\"rl\" gear=\"14.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"rr\" gear=\"14.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"fl\" gear=\"8.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"fr\" gear=\"8.0\" ctrlrange=\"-1 1\"/>\n </actuator>\n</mujoco>",
|
| 14 |
-
"9": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .
|
| 15 |
"10": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .9\" extent=\"2.6\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"stage_floor\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"macaron_pink\" specular=\".14\" shininess=\".2\" rgba=\"1 .42 .64 1\" roughness=\".65\"/>\n <material name=\"macaron_mint\" specular=\".14\" shininess=\".2\" rgba=\".28 .85 .72 1\" roughness=\".65\"/>\n <material name=\"macaron_yellow\" specular=\".14\" shininess=\".2\" rgba=\"1 .82 .25 1\" roughness=\".65\"/>\n <material name=\"bean_cannonball\" specular=\".2\" shininess=\".25\" rgba=\".32 .74 1 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.2 1.3\" xyaxes=\"1 0 0 0 .36 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4.5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"4 3 .1\" material=\"stage_floor\"/>\n <geom type=\"capsule\" fromto=\"-1.6 -1.2 .12 1.6 -1.2 .12\" size=\".1\" material=\"macaron_pink\"/>\n <geom type=\"capsule\" fromto=\"-1.6 1.2 .12 1.6 1.2 .12\" size=\".1\" material=\"macaron_mint\"/>\n\n <!-- 9-Story Colorful Macaron Tower & Gold Star -->\n <body name=\"tower1\" pos=\"0 0 .05\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower2\" pos=\"0 0 .15\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower3\" pos=\"0 0 .25\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"tower4\" pos=\"0 0 .35\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower5\" pos=\"0 0 .45\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower6\" pos=\"0 0 .55\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"tower7\" pos=\"0 0 .65\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower8\" pos=\"0 0 .75\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower9\" pos=\"0 0 .85\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"star_top\" pos=\"0 0 1.00\"><freejoint/><geom type=\"sphere\" size=\".09\" material=\"gold_star\" mass=\".2\"/></body>\n\n <!-- Chubby Blue Bean Cannonball Projectile -->\n <body name=\"cannon_ball\" pos=\"1.5 0 .45\">\n <freejoint/>\n <geom type=\"capsule\" size=\".13 .17\" material=\"bean_cannonball\" mass=\"3.5\"/>\n <geom type=\"ellipsoid\" pos=\"-.09 0 .03\" size=\".055 .09 .07\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.13 -.04 .04\" size=\".02\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\"-.13 .04 .04\" size=\".02\" material=\"eye_black\"/>\n </body>\n </worldbody>\n</mujoco>"
|
| 16 |
};
|
| 17 |
|
|
|
|
| 11 |
"6": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 1.0\" extent=\"3.0\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"soft_ground\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"slide_rainbow\" rgba=\".93 .88 .96 1\" reflectance=\"0\" roughness=\".7\"/>\n <material name=\"bean_pink\" specular=\".16\" shininess=\".22\" rgba=\"1 .4 .65 1\" roughness=\".6\"/>\n <material name=\"bean_mint\" specular=\".16\" shininess=\".22\" rgba=\".22 .85 .68 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"finish_banner\" rgba=\"1 .80 .25 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.4 1.4\" xyaxes=\"1 0 0 0 .38 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4\" dir=\"0 .5 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"3 3 .1\" material=\"soft_ground\"/>\n <geom type=\"box\" pos=\"0 0 .9\" size=\"1.4 .48 .04\" euler=\"0 25 0\" material=\"slide_rainbow\" friction=\"0.3 0.005 0.0001\"/>\n <geom type=\"box\" pos=\"0 .49 .9\" size=\"1.4 .03 .08\" euler=\"0 25 0\" material=\"finish_banner\"/>\n <geom type=\"box\" pos=\"0 -.49 .9\" size=\"1.4 .03 .08\" euler=\"0 25 0\" material=\"finish_banner\"/>\n\n <!-- Pink Bean Racer (Incline Slide Ramp pos z=1.68) -->\n <body name=\"pink_racer\" pos=\"-.9 .2 1.68\"><freejoint/>\n <geom type=\"capsule\" size=\".11 .15\" material=\"bean_pink\" friction=\"0.25 0.005 0.0001\" mass=\"1\"/>\n <geom type=\"ellipsoid\" pos=\"0 -.08 .03\" size=\".08 .04 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n </body>\n\n <!-- Mint Bean Racer (Incline Slide Ramp pos z=1.68) -->\n <body name=\"mint_racer\" pos=\"-.9 -.2 1.68\"><freejoint/>\n <geom type=\"capsule\" size=\".11 .15\" material=\"bean_mint\" friction=\"0.28 0.005 0.0001\" mass=\"1\"/>\n <geom type=\"ellipsoid\" pos=\"0 -.08 .03\" size=\".08 .04 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.11 .04\" size=\".018\" material=\"eye_black\"/>\n </body>\n </worldbody>\n</mujoco>",
|
| 12 |
"7": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .8\" extent=\"2.4\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"mat_floor\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"bean_pink\" specular=\".15\" shininess=\".2\" rgba=\"1 .42 .62 1\" roughness=\".6\"/>\n <material name=\"bean_mint\" specular=\".15\" shininess=\".2\" rgba=\".25 .88 .72 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\" roughness=\".7\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"eye_sparkle\" rgba=\"1 1 1 1\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n <material name=\"balloon_cyan\" rgba=\".3 .85 1 1\"/>\n <material name=\"balloon_purple\" rgba=\".75 .5 1 1\"/>\n <material name=\"candy_stripe1\" rgba=\"1 .5 .6 1\"/>\n <material name=\"candy_stripe2\" rgba=\"1 1 1 1\"/>\n <material name=\"foam_wall\" specular=\".1\" shininess=\".2\" rgba=\".75 .85 .98 1\"/>\n </asset>\n <option timestep=\"0.005\"/>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.4 1.2\" xyaxes=\"1 0 0 0 .32 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -3 5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <light pos=\"2 2.5 4\" dir=\"-.4 -.4 -1\" diffuse=\".32 .35 .38\" specular=\"0 0 0\"/>\n <geom type=\"plane\" size=\"4 4 .1\" material=\"mat_floor\"/>\n\n <!-- Carnival Pillars & Festive Balloons -->\n <geom type=\"cylinder\" pos=\"-1.8 1.8 .8\" size=\".14 .8\" material=\"candy_stripe1\"/>\n <geom type=\"cylinder\" pos=\"1.8 1.8 .8\" size=\".14 .8\" material=\"candy_stripe1\"/>\n <geom type=\"sphere\" pos=\"-1.8 1.8 1.7\" size=\".22\" material=\"gold_star\"/>\n <geom type=\"sphere\" pos=\"1.8 1.8 1.7\" size=\".22\" material=\"gold_star\"/>\n <geom type=\"sphere\" pos=\"-1.3 1.5 2.1\" size=\".18\" material=\"balloon_cyan\"/>\n <geom type=\"sphere\" pos=\"1.3 1.5 2.2\" size=\".18\" material=\"balloon_purple\"/>\n\n <!-- Arena Soft Cushion Boundary Fence -->\n <geom type=\"capsule\" fromto=\"-1.9 -1.2 .14 1.9 -1.2 .14\" size=\".12\" material=\"bean_mint\"/>\n <geom type=\"capsule\" fromto=\"-1.9 1.2 .14 1.9 1.2 .14\" size=\".12\" material=\"bean_pink\"/>\n <geom type=\"capsule\" fromto=\"-1.9 -1.2 .14 -1.9 1.2 .14\" size=\".12\" material=\"foam_wall\"/>\n <geom type=\"capsule\" fromto=\"1.9 -1.2 .14 1.9 1.2 .14\" size=\".12\" material=\"foam_wall\"/>\n\n <!-- Brick #07: Chubby Pink Bean Balancing on Long Lollipop Stick -->\n <geom type=\"capsule\" fromto=\"-1.9 0 .3 1.9 0 .3\" size=\".025\" rgba=\".75 .85 .98 1\" contype=\"0\" conaffinity=\"0\"/>\n <body name=\"cart_body\" pos=\"0 0 .3\">\n <joint name=\"slide\" type=\"slide\" axis=\"1 0 0\" limited=\"true\" range=\"-1.8 1.8\" damping=\".1\"/>\n <geom type=\"box\" size=\".24 .16 .07\" material=\"bean_mint\" mass=\"1.2\"/>\n <geom type=\"box\" pos=\"0 0 .075\" size=\".2 .12 .015\" material=\"face_white\"/>\n\n <body name=\"bean_pole\" pos=\"0 0 .1\">\n <joint name=\"hinge\" type=\"hinge\" axis=\"0 1 0\" damping=\".01\"/>\n <!-- Long Candy Lollipop Stick (Height: 0.8m) -->\n <geom type=\"capsule\" fromto=\"0 0 0 0 0 .8\" size=\".03\" material=\"candy_stripe2\" mass=\".2\"/>\n <!-- Top Jelly Bean Capsule Body -->\n <geom type=\"capsule\" pos=\"0 0 .82\" size=\".12 .16\" material=\"bean_pink\" mass=\".1\"/>\n <!-- White Face Patch -->\n <geom type=\"ellipsoid\" pos=\"0 -.09 .86\" size=\".08 .04 .06\" material=\"face_white\"/>\n <!-- Expressive Cartoon Eyes -->\n <geom type=\"sphere\" pos=\"-.035 -.12 .87\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".035 -.12 .87\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\"-.03 -.135 .88\" size=\".006\" material=\"eye_sparkle\"/>\n <geom type=\"sphere\" pos=\".04 -.135 .88\" size=\".006\" material=\"eye_sparkle\"/>\n <!-- Blushing Cheeks -->\n <geom type=\"sphere\" pos=\"-.065 -.11 .84\" size=\".018\" material=\"candy_stripe1\"/>\n <geom type=\"sphere\" pos=\".065 -.11 .84\" size=\".018\" material=\"candy_stripe1\"/>\n <!-- Outstretched Balancing Arms -->\n <geom type=\"capsule\" fromto=\"-.11 0 .85 -.26 0 .91\" size=\".028\" material=\"bean_pink\"/>\n <geom type=\"capsule\" fromto=\".11 0 .85 .26 0 .91\" size=\".028\" material=\"bean_pink\"/>\n <!-- Candy Antenna & Golden Star -->\n <geom type=\"capsule\" fromto=\"0 0 .98 0 0 1.06\" size=\".01\" material=\"candy_stripe2\"/>\n <geom type=\"sphere\" pos=\"0 0 1.08\" size=\".04\" material=\"gold_star\" mass=\".04\"/>\n </body>\n </body>\n </worldbody>\n <actuator>\n <motor joint=\"slide\" gear=\"35\" ctrlrange=\"-1 1\"/>\n </actuator>\n</mujoco>",
|
| 13 |
"8": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .5\" extent=\"2.6\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"bumper_arena\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"car_bubblegum\" specular=\".16\" shininess=\".22\" rgba=\"1 .42 .65 1\" roughness=\".65\"/>\n <material name=\"bean_mint\" specular=\".15\" shininess=\".2\" rgba=\".25 .88 .72 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"rubber_bumper\" rgba=\".24 .28 .38 1\" roughness=\".8\"/>\n <material name=\"yellow_wheel\" rgba=\"1 .80 .22 1\" roughness=\".7\"/>\n <material name=\"cushion_wall\" specular=\".12\" shininess=\".18\" rgba=\".28 .85 .72 1\" roughness=\".75\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.0 1.3\" xyaxes=\"1 0 0 0 .36 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4.5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"5 5 .1\" material=\"bumper_arena\"/>\n <!-- Arena Rectangular Marshmallow Guardrails -->\n <geom type=\"capsule\" fromto=\"-2.0 -1.6 .16 2.0 -1.6 .16\" size=\".14\" material=\"cushion_wall\"/>\n <geom type=\"capsule\" fromto=\"-2.0 1.6 .16 2.0 1.6 .16\" size=\".14\" material=\"cushion_wall\"/>\n <geom type=\"capsule\" fromto=\"-2.0 -1.6 .16 -2.0 1.6 .16\" size=\".14\" material=\"car_bubblegum\"/>\n <geom type=\"capsule\" fromto=\"2.0 -1.6 .16 2.0 1.6 .16\" size=\".14\" material=\"car_bubblegum\"/>\n <!-- Donut Obstacles (Diagonal: clear of central W/S drive lane and all 5 coins) -->\n <geom type=\"cylinder\" pos=\"-0.6 -0.55 .16\" size=\".22 .15\" material=\"yellow_wheel\"/>\n <geom type=\"cylinder\" pos=\"0.6 0.55 .16\" size=\".22 .15\" material=\"car_bubblegum\"/>\n\n <!-- ๐ 5 Collectible Golden Macaron Star Coins -->\n <body name=\"coin1\" pos=\"-1.3 -0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin2\" pos=\"1.3 0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin3\" pos=\"0 1.15 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin4\" pos=\"-1.3 0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n <body name=\"coin5\" pos=\"1.3 -0.9 .1\"><geom type=\"cylinder\" size=\".12 .04\" material=\"gold_star\"/></body>\n\n <!-- Bumper Car & Mint Jelly Bean Driver -->\n <body name=\"car_root\" pos=\"0 0 .22\">\n <freejoint/>\n <geom type=\"box\" size=\".32 .18 .07\" material=\"car_bubblegum\" mass=\"3.2\"/>\n <geom type=\"cylinder\" pos=\".33 0 .04\" size=\".17 .03\" zaxis=\"0 0 1\" material=\"rubber_bumper\"/>\n <!-- Mint Bean Driver at the Steering Wheel -->\n <body pos=\"-.04 0 .16\">\n <geom type=\"capsule\" size=\".11 .14\" material=\"bean_mint\"/>\n <geom type=\"ellipsoid\" pos=\".08 0 .04\" size=\".05 .08 .06\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\".11 -.035 .045\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".11 .035 .045\" size=\".018\" material=\"eye_black\"/>\n <geom type=\"cylinder\" pos=\".16 0 .02\" size=\".06 .015\" zaxis=\"1 0 0\" material=\"rubber_bumper\"/>\n </body>\n <!-- 4 Chassis Wheels: Front wheels use tuned lateral friction (0.25) for agile skid steering -->\n <body pos=\"-.18 .2 -.04\"><joint name=\"rl\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"1.4 0.01 0.001\"/></body>\n <body pos=\"-.18 -.2 -.04\"><joint name=\"rr\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"1.4 0.01 0.001\"/></body>\n <body pos=\".18 .2 -.04\"><joint name=\"fl\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"0.25 0.005 0.0005\"/></body>\n <body pos=\".18 -.2 -.04\"><joint name=\"fr\" type=\"hinge\" axis=\"0 1 0\" damping=\".04\"/><geom type=\"cylinder\" size=\".085 .04\" zaxis=\"0 1 0\" material=\"yellow_wheel\" friction=\"0.25 0.005 0.0005\"/></body>\n </body>\n </worldbody>\n <actuator>\n <motor joint=\"rl\" gear=\"14.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"rr\" gear=\"14.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"fl\" gear=\"8.0\" ctrlrange=\"-1 1\"/>\n <motor joint=\"fr\" gear=\"8.0\" ctrlrange=\"-1 1\"/>\n </actuator>\n</mujoco>",
|
| 14 |
+
"9": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0.2 0 .4\" extent=\"1.5\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"toy_floor\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"toy_yellow\" specular=\".16\" shininess=\".22\" rgba=\"1 .80 .22 1\" roughness=\".65\"/>\n <material name=\"toy_cyan\" specular=\".16\" shininess=\".22\" rgba=\".26 .82 .98 1\" roughness=\".65\"/>\n <material name=\"bean_pink\" specular=\".15\" shininess=\".2\" rgba=\"1 .42 .62 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"gift_box\" specular=\".18\" shininess=\".24\" rgba=\"1 .38 .56 1\" roughness=\".65\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0.2 -1.55 .75\" xyaxes=\"1 0 0 0 .36 1\"/>\n <camera name=\"cam_quarter\" pos=\"-1.0 -1.25 1.15\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0.2 -0.01 1.85\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"2 2 .1\" material=\"toy_floor\"/>\n <geom type=\"cylinder\" pos=\"0 0 .1\" size=\".18 .1\" material=\"toy_cyan\" contype=\"0\" conaffinity=\"0\"/>\n\n <!-- Rescue Target: Pink Jelly Bean Plushie (pos z=0.22) -->\n <body name=\"target_plushie\" pos=\".42 0 .22\"><freejoint/>\n <geom type=\"capsule\" size=\".09 .12\" material=\"bean_pink\" mass=\".3\"/>\n <geom type=\"ellipsoid\" pos=\"0 -.07 .03\" size=\".06 .035 .05\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.025 -.095 .035\" size=\".015\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\".025 -.095 .035\" size=\".015\" material=\"eye_black\"/>\n </body>\n <body pos=\".35 .25 .1\"><geom type=\"box\" size=\".065 .065 .065\" material=\"gift_box\"/></body>\n\n <!-- 2-DOF Robotic Manipulator Claw Arm -->\n <body pos=\"0 0 .2\">\n <joint name=\"shoulder\" type=\"hinge\" axis=\"0 1 0\" range=\"-1.6 1.6\" damping=\"1.2\"/>\n <geom type=\"capsule\" fromto=\"0 0 0 0 0 .46\" size=\".045\" material=\"toy_yellow\"/>\n <geom type=\"cylinder\" pos=\"0 0 .46\" size=\".055 .06\" zaxis=\"0 1 0\" material=\"toy_cyan\"/>\n <body pos=\"0 0 .46\">\n <joint name=\"elbow\" type=\"hinge\" axis=\"0 1 0\" range=\"-2.2 2.2\" damping=\"1.2\"/>\n <geom type=\"capsule\" fromto=\"0 0 0 .4 0 0\" size=\".036\" material=\"toy_yellow\"/>\n <geom type=\"sphere\" pos=\".4 0 0\" size=\".065\" material=\"gift_box\"/>\n </body>\n </body>\n </worldbody>\n <actuator>\n <position joint=\"shoulder\" kp=\"100\" ctrlrange=\"-1.6 1.6\"/>\n <position joint=\"elbow\" kp=\"100\" ctrlrange=\"-2.2 2.2\"/>\n </actuator>\n</mujoco>",
|
| 15 |
"10": "<mujoco>\n <visual>\n <headlight ambient=\".55 .55 .58\" diffuse=\".48 .48 .50\" specular=\"0 0 0\"/>\n <quality shadowsize=\"2048\"/>\n </visual>\n <statistic center=\"0 0 .9\" extent=\"2.6\"/>\n <asset>\n <texture name=\"sky\" type=\"skybox\" builtin=\"gradient\" rgb1=\".75 .85 .95\" rgb2=\".92 .84 .92\" width=\"512\" height=\"512\"/>\n <material name=\"stage_floor\" rgba=\".90 .92 .95 1\" reflectance=\"0\" roughness=\".85\"/>\n <material name=\"macaron_pink\" specular=\".14\" shininess=\".2\" rgba=\"1 .42 .64 1\" roughness=\".65\"/>\n <material name=\"macaron_mint\" specular=\".14\" shininess=\".2\" rgba=\".28 .85 .72 1\" roughness=\".65\"/>\n <material name=\"macaron_yellow\" specular=\".14\" shininess=\".2\" rgba=\"1 .82 .25 1\" roughness=\".65\"/>\n <material name=\"bean_cannonball\" specular=\".2\" shininess=\".25\" rgba=\".32 .74 1 1\" roughness=\".6\"/>\n <material name=\"face_white\" specular=\".1\" shininess=\".1\" rgba=\".98 .98 .98 1\"/>\n <material name=\"eye_black\" specular=\".4\" shininess=\".6\" rgba=\".1 .1 .12 1\"/>\n <material name=\"gold_star\" specular=\".3\" shininess=\".4\" rgba=\"1 .82 .2 1\"/>\n </asset>\n <worldbody>\n <camera name=\"cam_front\" pos=\"0 -3.2 1.3\" xyaxes=\"1 0 0 0 .36 1\"/>\n <camera name=\"cam_quarter\" pos=\"-2.4 -2.4 2.2\" xyaxes=\".707 -.707 0 .42 .42 .8\"/>\n <camera name=\"cam_topdown\" pos=\"0 -0.01 3.8\" xyaxes=\"1 0 0 0 1 0\"/>\n <light pos=\"0 -2.5 4.5\" dir=\"0 .4 -1\" diffuse=\".75 .74 .72\" specular=\".12 .12 .12\"/>\n <geom type=\"plane\" size=\"4 3 .1\" material=\"stage_floor\"/>\n <geom type=\"capsule\" fromto=\"-1.6 -1.2 .12 1.6 -1.2 .12\" size=\".1\" material=\"macaron_pink\"/>\n <geom type=\"capsule\" fromto=\"-1.6 1.2 .12 1.6 1.2 .12\" size=\".1\" material=\"macaron_mint\"/>\n\n <!-- 9-Story Colorful Macaron Tower & Gold Star -->\n <body name=\"tower1\" pos=\"0 0 .05\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower2\" pos=\"0 0 .15\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower3\" pos=\"0 0 .25\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"tower4\" pos=\"0 0 .35\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower5\" pos=\"0 0 .45\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower6\" pos=\"0 0 .55\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"tower7\" pos=\"0 0 .65\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_pink\" mass=\".3\"/></body>\n <body name=\"tower8\" pos=\"0 0 .75\"><freejoint/><geom type=\"box\" size=\".16 .04 .05\" material=\"macaron_mint\" mass=\".3\"/></body>\n <body name=\"tower9\" pos=\"0 0 .85\"><freejoint/><geom type=\"box\" size=\".04 .16 .05\" material=\"macaron_yellow\" mass=\".3\"/></body>\n <body name=\"star_top\" pos=\"0 0 1.00\"><freejoint/><geom type=\"sphere\" size=\".09\" material=\"gold_star\" mass=\".2\"/></body>\n\n <!-- Chubby Blue Bean Cannonball Projectile -->\n <body name=\"cannon_ball\" pos=\"1.5 0 .45\">\n <freejoint/>\n <geom type=\"capsule\" size=\".13 .17\" material=\"bean_cannonball\" mass=\"3.5\"/>\n <geom type=\"ellipsoid\" pos=\"-.09 0 .03\" size=\".055 .09 .07\" material=\"face_white\"/>\n <geom type=\"sphere\" pos=\"-.13 -.04 .04\" size=\".02\" material=\"eye_black\"/>\n <geom type=\"sphere\" pos=\"-.13 .04 .04\" size=\".02\" material=\"eye_black\"/>\n </body>\n </worldbody>\n</mujoco>"
|
| 16 |
};
|
| 17 |
|
index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<title>Jelly Bean PlayEngine ยท 10 Pop Physics | HWIHWA LAB</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Jua&family=Noto+Sans+KR:wght@400;500;700&family=Nunito:wght@600;700;800;900&family=JetBrains+Mono:wght@600;700&display=swap" rel="stylesheet">
|
| 9 |
-
<link rel="stylesheet" href="style.css?v=
|
| 10 |
<!-- Three.js WebGL Engine for 60 FPS Client-Side Real-time Simulation -->
|
| 11 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.min.js"></script>
|
| 12 |
</head>
|
|
@@ -357,7 +357,7 @@
|
|
| 357 |
================================================================ -->
|
| 358 |
<script>
|
| 359 |
(function () {
|
| 360 |
-
var VER = "
|
| 361 |
var GAMES = [
|
| 362 |
[1, "BEAN PARTY", "Jelly Bean Skydiving Party", "01 ยท ์ ค๋ฆฌ๋น ์ค์นด์ด๋ค์ด๋น ํํฐ"],
|
| 363 |
[2, "BALL POOL", "Jelly Bean Ball Pool Pinball", "02 ยท ์ ค๋ฆฌ๋น ๋ณผํ์ฅ & ํ๋ณผ ํ๋ฆฌํผ"],
|
|
|
|
| 6 |
<title>Jelly Bean PlayEngine ยท 10 Pop Physics | HWIHWA LAB</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Jua&family=Noto+Sans+KR:wght@400;500;700&family=Nunito:wght@600;700;800;900&family=JetBrains+Mono:wght@600;700&display=swap" rel="stylesheet">
|
| 9 |
+
<link rel="stylesheet" href="style.css?v=20261107_v10">
|
| 10 |
<!-- Three.js WebGL Engine for 60 FPS Client-Side Real-time Simulation -->
|
| 11 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.min.js"></script>
|
| 12 |
</head>
|
|
|
|
| 357 |
================================================================ -->
|
| 358 |
<script>
|
| 359 |
(function () {
|
| 360 |
+
var VER = "20261107_v10";
|
| 361 |
var GAMES = [
|
| 362 |
[1, "BEAN PARTY", "Jelly Bean Skydiving Party", "01 ยท ์ ค๋ฆฌ๋น ์ค์นด์ด๋ค์ด๋น ํํฐ"],
|
| 363 |
[2, "BALL POOL", "Jelly Bean Ball Pool Pinball", "02 ยท ์ ค๋ฆฌ๋น ๋ณผํ์ฅ & ํ๋ณผ ํ๋ฆฌํผ"],
|
mujoco_wasm_player.js
CHANGED
|
@@ -88,9 +88,9 @@ export class MujocoWasmPlayer {
|
|
| 88 |
locateFile: (path) => __signedSibling(path)
|
| 89 |
});
|
| 90 |
|
| 91 |
-
// Three.js Setup (
|
| 92 |
this.scene = new THREE.Scene();
|
| 93 |
-
this.scene.background = new THREE.Color(
|
| 94 |
|
| 95 |
// Canvas & Renderer
|
| 96 |
this.canvas = document.createElement('canvas');
|
|
@@ -111,27 +111,26 @@ export class MujocoWasmPlayer {
|
|
| 111 |
this.renderer.shadowMap.enabled = true;
|
| 112 |
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
| 113 |
|
| 114 |
-
// โ
ํต์ฌ:
|
| 115 |
if (typeof THREE.SRGBColorSpace !== 'undefined') {
|
| 116 |
this.renderer.outputColorSpace = THREE.SRGBColorSpace;
|
| 117 |
}
|
| 118 |
-
this.renderer.toneMapping = THREE.
|
| 119 |
-
this.renderer.toneMappingExposure = 1.15;
|
| 120 |
|
| 121 |
// Camera (Z-up coordinate space to match MuJoCo native physics)
|
| 122 |
this.camera = new THREE.PerspectiveCamera(45, (this.canvas.width || 640) / (this.canvas.height || 480), 0.05, 50);
|
| 123 |
this.camera.up.set(0, 0, 1);
|
| 124 |
|
| 125 |
-
// 4-Way Studio Lighting: ์ฐ๋ปํ๊ณ ๋ถ๋๋ฌ์ด ํ์คํ
์ ค๋ฆฌ ๋ ๋๋ง
|
| 126 |
-
const ambientLight = new THREE.AmbientLight(
|
| 127 |
this.scene.add(ambientLight);
|
| 128 |
|
| 129 |
-
const hemiLight = new THREE.HemisphereLight(
|
| 130 |
hemiLight.position.set(0, 0, 10);
|
| 131 |
this.scene.add(hemiLight);
|
| 132 |
|
| 133 |
-
const dirLight = new THREE.DirectionalLight(0xffffff,
|
| 134 |
-
dirLight.position.set(1.5, -3.
|
| 135 |
dirLight.castShadow = true;
|
| 136 |
dirLight.shadow.mapSize.width = 2048;
|
| 137 |
dirLight.shadow.mapSize.height = 2048;
|
|
@@ -140,8 +139,8 @@ export class MujocoWasmPlayer {
|
|
| 140 |
dirLight.shadow.bias = -0.0004;
|
| 141 |
this.scene.add(dirLight);
|
| 142 |
|
| 143 |
-
const rimLight = new THREE.DirectionalLight(
|
| 144 |
-
rimLight.position.set(-2.0,
|
| 145 |
this.scene.add(rimLight);
|
| 146 |
|
| 147 |
window.addEventListener('resize', () => this.handleResize());
|
|
@@ -246,7 +245,7 @@ export class MujocoWasmPlayer {
|
|
| 246 |
a = this.model.geom_rgba[g * 4 + 3];
|
| 247 |
}
|
| 248 |
|
| 249 |
-
// โ
์ฐ๋ปํ
|
| 250 |
const color = new THREE.Color();
|
| 251 |
if (typeof THREE.SRGBColorSpace !== 'undefined') {
|
| 252 |
color.setRGB(r, gc, b, THREE.SRGBColorSpace);
|
|
@@ -254,10 +253,10 @@ export class MujocoWasmPlayer {
|
|
| 254 |
color.setRGB(r, gc, b);
|
| 255 |
}
|
| 256 |
|
| 257 |
-
const mat = new THREE.
|
| 258 |
color: color,
|
| 259 |
-
|
| 260 |
-
|
| 261 |
transparent: a < 0.99,
|
| 262 |
opacity: a
|
| 263 |
});
|
|
@@ -340,6 +339,19 @@ export class MujocoWasmPlayer {
|
|
| 340 |
this.camera.position.set(0, -3.0, 1.3);
|
| 341 |
this.camera.lookAt(0, 0, 0.2);
|
| 342 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
} else {
|
| 344 |
// General 3-way views for other games
|
| 345 |
if (this.cameraName === 'cam_quarter') {
|
|
|
|
| 88 |
locateFile: (path) => __signedSibling(path)
|
| 89 |
});
|
| 90 |
|
| 91 |
+
// Three.js Setup (์์
์๋ณธ๊ณผ 100% ๋์ผํ ๋ถ๋๋ฌ์ด ๋ผ๋ฒค๋ ํ์คํ
์ค์นด์ด)
|
| 92 |
this.scene = new THREE.Scene();
|
| 93 |
+
this.scene.background = new THREE.Color(0xd5daf0);
|
| 94 |
|
| 95 |
// Canvas & Renderer
|
| 96 |
this.canvas = document.createElement('canvas');
|
|
|
|
| 111 |
this.renderer.shadowMap.enabled = true;
|
| 112 |
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
| 113 |
|
| 114 |
+
// โ
ํต์ฌ: ์์
์๋ณธ์ ์ฐ๋ปํ๊ณ ํ์ฌํ ์บ๋ ์ปฌ๋ฌ 100% ์ฌํ (ACES ํ์ ๋ฐฉ์ง & sRGB ์๊ณต๊ฐ)
|
| 115 |
if (typeof THREE.SRGBColorSpace !== 'undefined') {
|
| 116 |
this.renderer.outputColorSpace = THREE.SRGBColorSpace;
|
| 117 |
}
|
| 118 |
+
this.renderer.toneMapping = THREE.NoToneMapping;
|
|
|
|
| 119 |
|
| 120 |
// Camera (Z-up coordinate space to match MuJoCo native physics)
|
| 121 |
this.camera = new THREE.PerspectiveCamera(45, (this.canvas.width || 640) / (this.canvas.height || 480), 0.05, 50);
|
| 122 |
this.camera.up.set(0, 0, 1);
|
| 123 |
|
| 124 |
+
// 4-Way Studio Lighting: ์ฐ๋ปํ๊ณ ๋ถ๋๋ฌ์ด ํ์คํ
์ ค๋ฆฌ ๋ ๋๋ง (MuJoCo Blinn-Phong ์์ง๊ณผ 1:1 ์ผ์น)
|
| 125 |
+
const ambientLight = new THREE.AmbientLight(0xffffff, 0.72);
|
| 126 |
this.scene.add(ambientLight);
|
| 127 |
|
| 128 |
+
const hemiLight = new THREE.HemisphereLight(0xdde3f8, 0xebe3ec, 0.35);
|
| 129 |
hemiLight.position.set(0, 0, 10);
|
| 130 |
this.scene.add(hemiLight);
|
| 131 |
|
| 132 |
+
const dirLight = new THREE.DirectionalLight(0xffffff, 0.65);
|
| 133 |
+
dirLight.position.set(1.5, -3.2, 5.5);
|
| 134 |
dirLight.castShadow = true;
|
| 135 |
dirLight.shadow.mapSize.width = 2048;
|
| 136 |
dirLight.shadow.mapSize.height = 2048;
|
|
|
|
| 139 |
dirLight.shadow.bias = -0.0004;
|
| 140 |
this.scene.add(dirLight);
|
| 141 |
|
| 142 |
+
const rimLight = new THREE.DirectionalLight(0xf2f5ff, 0.35);
|
| 143 |
+
rimLight.position.set(-2.0, 2.8, 4.0);
|
| 144 |
this.scene.add(rimLight);
|
| 145 |
|
| 146 |
window.addEventListener('resize', () => this.handleResize());
|
|
|
|
| 245 |
a = this.model.geom_rgba[g * 4 + 3];
|
| 246 |
}
|
| 247 |
|
| 248 |
+
// โ
์์
์๋ณธ์ ์ฐ๋ปํ๊ณ ํฑ๊ธํ ์ ค๋ฆฌ๋น ์ง๊ฐ (MuJoCo OpenGL Blinn-Phong 1:1 ์ผ์น)
|
| 249 |
const color = new THREE.Color();
|
| 250 |
if (typeof THREE.SRGBColorSpace !== 'undefined') {
|
| 251 |
color.setRGB(r, gc, b, THREE.SRGBColorSpace);
|
|
|
|
| 253 |
color.setRGB(r, gc, b);
|
| 254 |
}
|
| 255 |
|
| 256 |
+
const mat = new THREE.MeshPhongMaterial({
|
| 257 |
color: color,
|
| 258 |
+
specular: new THREE.Color(0.24, 0.24, 0.24),
|
| 259 |
+
shininess: type === 0 ? 6 : 28, // ๋ฐ๋ฅ์ ์์ํ๊ฒ ๋งคํธ, ์ ค๋ฆฌ๋น ์บ๋ฆญํฐ๋ ์ด์ด ํฑ๊ธํ ํ์ด๋ผ์ดํธ!
|
| 260 |
transparent: a < 0.99,
|
| 261 |
opacity: a
|
| 262 |
});
|
|
|
|
| 339 |
this.camera.position.set(0, -3.0, 1.3);
|
| 340 |
this.camera.lookAt(0, 0, 0.2);
|
| 341 |
}
|
| 342 |
+
} else if (this.currentId === 9) {
|
| 343 |
+
// ๐งธ Game 09: Toy Claw Machine & Plushie Bean (ํด๋ก ๋จธ์ & ์ธํ ์ ์ฉ ์ต์ ํ๋ ์์ )
|
| 344 |
+
if (this.cameraName === 'cam_quarter') {
|
| 345 |
+
this.camera.position.set(-1.0, -1.25, 1.15);
|
| 346 |
+
this.camera.lookAt(0.2, 0.05, 0.38);
|
| 347 |
+
} else if (this.cameraName === 'cam_topdown') {
|
| 348 |
+
this.camera.position.set(0.2, -0.01, 1.85);
|
| 349 |
+
this.camera.lookAt(0.2, 0.05, 0.38);
|
| 350 |
+
} else {
|
| 351 |
+
// cam_front default: ์ ๋ฉด ํด๋ก ๋จธ์ ๊ณผ ์ธํ์ด ๋ค๋ฅธ ๊ฒ์์ฒ๋ผ ํ๋ฉด์ ๊ฝ ์ฐจ๋๋ก 1.8๋ฐฐ ์ค์ธ
|
| 352 |
+
this.camera.position.set(0.2, -1.55, 0.75);
|
| 353 |
+
this.camera.lookAt(0.2, 0.05, 0.38);
|
| 354 |
+
}
|
| 355 |
} else {
|
| 356 |
// General 3-way views for other games
|
| 357 |
if (this.cameraName === 'cam_quarter') {
|