feat(wasm): deploy real 60FPS MuJoCo WebAssembly physics engine (Zero Docker, Zero GIFs)
Browse files- app.js +7 -6
- 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
- index.html +2 -2
- mujoco_wasm_player.js +45 -36
app.js
CHANGED
|
@@ -846,8 +846,8 @@ class EngineLoadingManager {
|
|
| 846 |
this.isReady = false;
|
| 847 |
this.isDismissed = false;
|
| 848 |
this.startTime = performance.now();
|
| 849 |
-
this.minDurationMs =
|
| 850 |
-
this.holdDurationMs =
|
| 851 |
this.timer = null;
|
| 852 |
this.overlay = null;
|
| 853 |
this._startTicker();
|
|
@@ -882,15 +882,16 @@ class EngineLoadingManager {
|
|
| 882 |
// Desired progress based on minimum pacing and actual milestone
|
| 883 |
let desired = this.targetVal;
|
| 884 |
if (!this.isReady) {
|
| 885 |
-
// Smoothly pace progress up to
|
| 886 |
-
desired = Math.min(
|
| 887 |
} else {
|
| 888 |
// Once engine is ready, glide smoothly all the way to 100%
|
| 889 |
desired = 100;
|
| 890 |
}
|
| 891 |
|
| 892 |
if (this.currentVal < desired) {
|
| 893 |
-
|
|
|
|
| 894 |
this.currentVal = Math.min(desired, this.currentVal + step);
|
| 895 |
}
|
| 896 |
|
|
@@ -976,7 +977,7 @@ async function initWasmEngine() {
|
|
| 976 |
try {
|
| 977 |
if (!MujocoWasmPlayer) {
|
| 978 |
engineLoadingMgr.setProgress(50, "๐ฆ MuJoCo WebAssembly ๋ชจ๋ ๋ก๋ฉ ์ค...", "๐ฆ Loading MuJoCo WASM Module...");
|
| 979 |
-
const mod = await import(withSign("./mujoco_wasm_player.js?v=
|
| 980 |
MujocoWasmPlayer = mod.MujocoWasmPlayer;
|
| 981 |
}
|
| 982 |
wasmPlayer = new MujocoWasmPlayer(container);
|
|
|
|
| 846 |
this.isReady = false;
|
| 847 |
this.isDismissed = false;
|
| 848 |
this.startTime = performance.now();
|
| 849 |
+
this.minDurationMs = 1800; // Minimum 1.8s pacing so users can comfortably perceive milestones
|
| 850 |
+
this.holdDurationMs = 650; // Hold at 100% for 650ms so user clearly perceives completion
|
| 851 |
this.timer = null;
|
| 852 |
this.overlay = null;
|
| 853 |
this._startTicker();
|
|
|
|
| 882 |
// Desired progress based on minimum pacing and actual milestone
|
| 883 |
let desired = this.targetVal;
|
| 884 |
if (!this.isReady) {
|
| 885 |
+
// Smoothly pace progress up to 92% until physical engine is 100% ready
|
| 886 |
+
desired = Math.min(92, Math.max(this.targetVal, timeRatio * 90));
|
| 887 |
} else {
|
| 888 |
// Once engine is ready, glide smoothly all the way to 100%
|
| 889 |
desired = 100;
|
| 890 |
}
|
| 891 |
|
| 892 |
if (this.currentVal < desired) {
|
| 893 |
+
// Steady, comfortable step so numbers are clearly readable (never jump wildly)
|
| 894 |
+
const step = Math.min(1.6, Math.max(0.4, (desired - this.currentVal) * 0.09));
|
| 895 |
this.currentVal = Math.min(desired, this.currentVal + step);
|
| 896 |
}
|
| 897 |
|
|
|
|
| 977 |
try {
|
| 978 |
if (!MujocoWasmPlayer) {
|
| 979 |
engineLoadingMgr.setProgress(50, "๐ฆ MuJoCo WebAssembly ๋ชจ๋ ๋ก๋ฉ ์ค...", "๐ฆ Loading MuJoCo WASM Module...");
|
| 980 |
+
const mod = await import(withSign("./mujoco_wasm_player.js?v=20261107_v15"));
|
| 981 |
MujocoWasmPlayer = mod.MujocoWasmPlayer;
|
| 982 |
}
|
| 983 |
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
|
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>
|
|
@@ -360,7 +360,7 @@
|
|
| 360 |
================================================================ -->
|
| 361 |
<script>
|
| 362 |
(function () {
|
| 363 |
-
var VER = "
|
| 364 |
var GAMES = [
|
| 365 |
[1, "BEAN PARTY", "Jelly Bean Skydiving Party", "01 ยท ์ ค๋ฆฌ๋น ์ค์นด์ด๋ค์ด๋น ํํฐ"],
|
| 366 |
[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_v15">
|
| 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>
|
|
|
|
| 360 |
================================================================ -->
|
| 361 |
<script>
|
| 362 |
(function () {
|
| 363 |
+
var VER = "20261107_v15";
|
| 364 |
var GAMES = [
|
| 365 |
[1, "BEAN PARTY", "Jelly Bean Skydiving Party", "01 ยท ์ ค๋ฆฌ๋น ์ค์นด์ด๋ค์ด๋น ํํฐ"],
|
| 366 |
[2, "BALL POOL", "Jelly Bean Ball Pool Pinball", "02 ยท ์ ค๋ฆฌ๋น ๋ณผํ์ฅ & ํ๋ณผ ํ๋ฆฌํผ"],
|
mujoco_wasm_player.js
CHANGED
|
@@ -124,48 +124,49 @@ export class MujocoWasmPlayer {
|
|
| 124 |
this.renderer.shadowMap.enabled = true;
|
| 125 |
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
| 126 |
|
| 127 |
-
// โ
|
| 128 |
this.renderer.toneMapping = THREE.NoToneMapping;
|
| 129 |
-
if (typeof THREE.
|
| 130 |
-
this.renderer.outputColorSpace = THREE.
|
| 131 |
}
|
| 132 |
|
| 133 |
// Camera (Z-up coordinate space to match MuJoCo native physics)
|
| 134 |
this.camera = new THREE.PerspectiveCamera(45, (this.canvas.width || 640) / (this.canvas.height || 480), 0.05, 50);
|
| 135 |
this.camera.up.set(0, 0, 1);
|
| 136 |
|
| 137 |
-
// โ
|
| 138 |
-
// 1. ํค๋๋ผ์ดํธ ์ฐ๋น์ธํธ:
|
| 139 |
-
const ambientLight = new THREE.AmbientLight(
|
| 140 |
this.scene.add(ambientLight);
|
| 141 |
|
| 142 |
-
// 2. ํค๋ฏธ์คํผ์ด ๋ผ์ดํธ: ํ๋๋น
|
| 143 |
-
const hemiLight = new THREE.HemisphereLight(
|
| 144 |
hemiLight.position.set(0, 0, 10);
|
| 145 |
this.scene.add(hemiLight);
|
| 146 |
|
| 147 |
-
// 3. ์ฃผ๊ด (Key Light):
|
| 148 |
-
const dirLight = new THREE.DirectionalLight(0xffffff,
|
| 149 |
-
dirLight.position.set(1.
|
| 150 |
dirLight.castShadow = true;
|
| 151 |
dirLight.shadow.mapSize.width = 2048;
|
| 152 |
dirLight.shadow.mapSize.height = 2048;
|
| 153 |
dirLight.shadow.camera.near = 0.5;
|
| 154 |
-
dirLight.shadow.camera.far =
|
| 155 |
-
dirLight.shadow.camera.left = -
|
| 156 |
-
dirLight.shadow.camera.right =
|
| 157 |
-
dirLight.shadow.camera.top =
|
| 158 |
-
dirLight.shadow.camera.bottom = -
|
| 159 |
-
dirLight.shadow.bias = -0.
|
|
|
|
| 160 |
this.scene.add(dirLight);
|
| 161 |
|
| 162 |
-
// 4. ํ๋ฐฉ ๋ณด์กฐ๊ด (Fill Light): ์บ๋ฆญํฐ
|
| 163 |
-
const fillLight = new THREE.DirectionalLight(
|
| 164 |
-
fillLight.position.set(-2.0, 2.5,
|
| 165 |
this.scene.add(fillLight);
|
| 166 |
|
| 167 |
-
// 5. ์นด๋ฉ๋ผ ํค๋๋ผ์ดํธ (MuJoCo
|
| 168 |
-
const headLight = new THREE.DirectionalLight(0xffffff, 0.
|
| 169 |
headLight.position.set(0, 0, 1);
|
| 170 |
this.camera.add(headLight);
|
| 171 |
this.scene.add(this.camera);
|
|
@@ -244,6 +245,8 @@ export class MujocoWasmPlayer {
|
|
| 244 |
|
| 245 |
this.resetGame();
|
| 246 |
this.updateCameraView();
|
|
|
|
|
|
|
| 247 |
}
|
| 248 |
|
| 249 |
buildThreeGeoms() {
|
|
@@ -272,31 +275,31 @@ export class MujocoWasmPlayer {
|
|
| 272 |
a = this.model.geom_rgba[g * 4 + 3];
|
| 273 |
}
|
| 274 |
|
| 275 |
-
// โ
์์
์๋ณธ์ ์ฐ๋ปํ๊ณ ํฑ๊ธํ ์ ค๋ฆฌ๋น ์ง๊ฐ (MuJoCo OpenGL Blinn-Phong 1:1 ์ผ์น
|
| 276 |
const color = new THREE.Color();
|
| 277 |
if (type === 0) {
|
| 278 |
// Floor Plane: ์์
์๋ณธ๊ณผ 100% ๋์ผํ ์๋ฐฑ์ ์บ๋ฒ์ค (RGB 255, 255, 255)
|
| 279 |
color.setRGB(1.0, 1.0, 1.0);
|
| 280 |
} else {
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
} else {
|
| 284 |
-
color.setRGB(r, gc, b);
|
| 285 |
-
}
|
| 286 |
}
|
| 287 |
|
|
|
|
| 288 |
const mat = new THREE.MeshPhongMaterial({
|
| 289 |
color: color,
|
| 290 |
-
specular:
|
| 291 |
-
shininess:
|
| 292 |
transparent: a < 0.99,
|
| 293 |
opacity: a
|
| 294 |
});
|
| 295 |
|
| 296 |
let geom = null;
|
| 297 |
if (type === 0) {
|
| 298 |
-
// Plane: ์งํ์
|
| 299 |
-
|
|
|
|
|
|
|
| 300 |
} else if (type === 2) {
|
| 301 |
// Sphere
|
| 302 |
geom = new THREE.SphereGeometry(size[0], 24, 24);
|
|
@@ -393,8 +396,14 @@ export class MujocoWasmPlayer {
|
|
| 393 |
this.camera.position.set(0, -0.01, 4.0);
|
| 394 |
this.camera.lookAt(0, 0, 0.5);
|
| 395 |
} else {
|
| 396 |
-
this.
|
| 397 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
}
|
| 399 |
}
|
| 400 |
}
|
|
@@ -1023,8 +1032,8 @@ export class MujocoWasmPlayer {
|
|
| 1023 |
renderLoop(time) {
|
| 1024 |
if (!this.isRunning) return;
|
| 1025 |
|
| 1026 |
-
// โ
3D ์ฒซ ํ๋ ์ ๋ ๋๋ง
|
| 1027 |
-
if (!this._firstFrameRendered) {
|
| 1028 |
this._firstFrameRendered = true;
|
| 1029 |
if (typeof window !== "undefined" && window.__engineLoadingMgr) {
|
| 1030 |
window.__engineLoadingMgr.complete();
|
|
|
|
| 124 |
this.renderer.shadowMap.enabled = true;
|
| 125 |
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
| 126 |
|
| 127 |
+
// โ
MuJoCo OpenGL Blinn-Phong 1:1 Color & Lighting Pipeline (anim_07.gif ์๋ณธ 100% ์ผ์น)
|
| 128 |
this.renderer.toneMapping = THREE.NoToneMapping;
|
| 129 |
+
if (typeof THREE.LinearSRGBColorSpace !== 'undefined') {
|
| 130 |
+
this.renderer.outputColorSpace = THREE.LinearSRGBColorSpace;
|
| 131 |
}
|
| 132 |
|
| 133 |
// Camera (Z-up coordinate space to match MuJoCo native physics)
|
| 134 |
this.camera = new THREE.PerspectiveCamera(45, (this.canvas.width || 640) / (this.canvas.height || 480), 0.05, 50);
|
| 135 |
this.camera.up.set(0, 0, 1);
|
| 136 |
|
| 137 |
+
// โ
MuJoCo Native Studio Lighting (anim_07.gif 1:1 ์ผ์น): ์ ๋ช
ํ ๋ช
์๋น์ ๊น์ด๊ฐ ์๋ ๋๋กญ ์๋์ฐ
|
| 138 |
+
// 1. ํค๋๋ผ์ดํธ ์ฐ๋น์ธํธ: 0.55 (๊ณผ๋ํ ํ์์ ๋ง๊ณ ์งํ๊ณ ์ ๋ช
ํ ์บ๋ ์์ ์ ์ง)
|
| 139 |
+
const ambientLight = new THREE.AmbientLight(0xfff7fb, 0.55);
|
| 140 |
this.scene.add(ambientLight);
|
| 141 |
|
| 142 |
+
// 2. ํค๋ฏธ์คํผ์ด ๋ผ์ดํธ: ํ๋๋น ํ์คํ
& ๋ฐ๋ฅ ๋ถ๋๋ฌ์ด ๋ฐ์ฌ๊ด
|
| 143 |
+
const hemiLight = new THREE.HemisphereLight(0xdde8fa, 0xf6f0f8, 0.35);
|
| 144 |
hemiLight.position.set(0, 0, 10);
|
| 145 |
this.scene.add(hemiLight);
|
| 146 |
|
| 147 |
+
// 3. ์ฃผ๊ด (Key Light): anim_07.gif์ 1:1 ์ผ์นํ๋ ๊ฐ๋์ ๋๋ ทํ ๊ทธ๋ฆผ์๋ฅผ ๋๋ฆฌ์ฐ๋ ๋ฉ์ธ ์คํ๋์ค ๋ผ์ดํธ
|
| 148 |
+
const dirLight = new THREE.DirectionalLight(0xffffff, 1.25);
|
| 149 |
+
dirLight.position.set(1.6, -3.2, 5.0);
|
| 150 |
dirLight.castShadow = true;
|
| 151 |
dirLight.shadow.mapSize.width = 2048;
|
| 152 |
dirLight.shadow.mapSize.height = 2048;
|
| 153 |
dirLight.shadow.camera.near = 0.5;
|
| 154 |
+
dirLight.shadow.camera.far = 16;
|
| 155 |
+
dirLight.shadow.camera.left = -5.0;
|
| 156 |
+
dirLight.shadow.camera.right = 5.0;
|
| 157 |
+
dirLight.shadow.camera.top = 5.0;
|
| 158 |
+
dirLight.shadow.camera.bottom = -5.0;
|
| 159 |
+
dirLight.shadow.bias = -0.0004;
|
| 160 |
+
dirLight.shadow.normalBias = 0.02;
|
| 161 |
this.scene.add(dirLight);
|
| 162 |
|
| 163 |
+
// 4. ํ๋ฐฉ ๋ณด์กฐ๊ด (Fill Light): ์บ๋ฆญํฐ ์ธ๊ณฝ ์ค๊ณฝ์ ์ด๋ ค์ฃผ๋ ๋ถ๋๋ฌ์ด ๋ฆผ๋ผ์ดํธ
|
| 164 |
+
const fillLight = new THREE.DirectionalLight(0xe8f2ff, 0.35);
|
| 165 |
+
fillLight.position.set(-2.0, 2.5, 3.5);
|
| 166 |
this.scene.add(fillLight);
|
| 167 |
|
| 168 |
+
// 5. ์นด๋ฉ๋ผ ํค๋๋ผ์ดํธ (MuJoCo Headlight 1:1): ์นด๋ฉ๋ผ์ ํจ๊ป ์ ๋ฉด์ ๋น์ถ์ด ์์ ๋ฐฉ์ง
|
| 169 |
+
const headLight = new THREE.DirectionalLight(0xffffff, 0.25);
|
| 170 |
headLight.position.set(0, 0, 1);
|
| 171 |
this.camera.add(headLight);
|
| 172 |
this.scene.add(this.camera);
|
|
|
|
| 245 |
|
| 246 |
this.resetGame();
|
| 247 |
this.updateCameraView();
|
| 248 |
+
this.isGameLoaded = true;
|
| 249 |
+
this._firstFrameRendered = false;
|
| 250 |
}
|
| 251 |
|
| 252 |
buildThreeGeoms() {
|
|
|
|
| 275 |
a = this.model.geom_rgba[g * 4 + 3];
|
| 276 |
}
|
| 277 |
|
| 278 |
+
// โ
์์
์๋ณธ์ ์ฐ๋ปํ๊ณ ํฑ๊ธํ ์ ค๋ฆฌ๋น ์ง๊ฐ (MuJoCo OpenGL Blinn-Phong 1:1 ์ผ์น)
|
| 279 |
const color = new THREE.Color();
|
| 280 |
if (type === 0) {
|
| 281 |
// Floor Plane: ์์
์๋ณธ๊ณผ 100% ๋์ผํ ์๋ฐฑ์ ์บ๋ฒ์ค (RGB 255, 255, 255)
|
| 282 |
color.setRGB(1.0, 1.0, 1.0);
|
| 283 |
} else {
|
| 284 |
+
// MuJoCo XML์ ์์ ์์(์ผ๋ ํธ๋ฆญ ์์, ์คํธ๋ก๋ฒ ๋ฆฌ ํํฌ ๋ฑ)์ ๊ฐ๋ง ์๊ณก ์์ด 1:1 ๋ณด์กด
|
| 285 |
+
color.setRGB(r, gc, b);
|
|
|
|
|
|
|
|
|
|
| 286 |
}
|
| 287 |
|
| 288 |
+
const isFloor = (type === 0);
|
| 289 |
const mat = new THREE.MeshPhongMaterial({
|
| 290 |
color: color,
|
| 291 |
+
specular: isFloor ? new THREE.Color(0.02, 0.02, 0.02) : new THREE.Color(0.65, 0.65, 0.65),
|
| 292 |
+
shininess: isFloor ? 0 : 50, // ๋ฐ๋ฅ์ ํด๋ฆฐ ๋งคํธ, ์ ค๋ฆฌ๋น ์บ๋ฆญํฐ๋ ์ด์ดํ๊ณ ์ค๊ธฐ๋๋ ์บ๋ ํ์ด๋ผ์ดํธ!
|
| 293 |
transparent: a < 0.99,
|
| 294 |
opacity: a
|
| 295 |
});
|
| 296 |
|
| 297 |
let geom = null;
|
| 298 |
if (type === 0) {
|
| 299 |
+
// Plane: ๊ฒฝ๊ธฐ์ฅ ๊ท๊ฒฉ์ ๋ง์ถฐ ์์ฐ์ค๋ฌ์ด ์งํ์ (Horizon)๊ณผ ์ค์นด์ด๋ฐ์ค๊ฐ ๋ณด์ด๋๋ก ์์ฑ (XML size 4 4์ 2๋ฐฐ = 8x8)
|
| 300 |
+
const planeW = (size[0] && size[0] > 0 ? size[0] * 2 : 8);
|
| 301 |
+
const planeH = (size[1] && size[1] > 0 ? size[1] * 2 : 8);
|
| 302 |
+
geom = new THREE.PlaneGeometry(planeW, planeH);
|
| 303 |
} else if (type === 2) {
|
| 304 |
// Sphere
|
| 305 |
geom = new THREE.SphereGeometry(size[0], 24, 24);
|
|
|
|
| 396 |
this.camera.position.set(0, -0.01, 4.0);
|
| 397 |
this.camera.lookAt(0, 0, 0.5);
|
| 398 |
} else {
|
| 399 |
+
if (this.currentId === 7) {
|
| 400 |
+
// anim_07.gif 1:1 ์ผ์น: XML ์ ๋ฉด ์นด๋ฉ๋ผ (pos: 0 -3.35 1.25, lookAt: 0 0.1 0.6)
|
| 401 |
+
this.camera.position.set(0, -3.35, 1.25);
|
| 402 |
+
this.camera.lookAt(0, 0.1, 0.6);
|
| 403 |
+
} else {
|
| 404 |
+
this.camera.position.set(0, -2.8, 1.3);
|
| 405 |
+
this.camera.lookAt(0, 0, 0.5);
|
| 406 |
+
}
|
| 407 |
}
|
| 408 |
}
|
| 409 |
}
|
|
|
|
| 1032 |
renderLoop(time) {
|
| 1033 |
if (!this.isRunning) return;
|
| 1034 |
|
| 1035 |
+
// โ
์ค์ 3D ๊ฒ์ ๋ฉ์ฌ๊ฐ ์ฌ์ ๋ฐฐ์น๋๊ณ ์ฒซ ์ ํจ ํ๋ ์์ด ๋ ๋๋ง๋ ์๊ฐ์๋ง ์๋ฃ ์ ํธ ์ ๋ฌ
|
| 1036 |
+
if (!this._firstFrameRendered && this.isGameLoaded && this.model && this.geomMeshes.length > 0) {
|
| 1037 |
this._firstFrameRendered = true;
|
| 1038 |
if (typeof window !== "undefined" && window.__engineLoadingMgr) {
|
| 1039 |
window.__engineLoadingMgr.complete();
|