@null3d/engine 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wasm/single/null3d.js +10 -8
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +10 -8
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +96 -24
- package/docs/api/assets.md +99 -29
- package/docs/api/cameras.md +38 -7
- package/docs/api/controls.md +47 -23
- package/docs/api/debug.md +105 -35
- package/docs/api/engine.md +108 -32
- package/docs/api/feature-draws.md +21 -15
- package/docs/api/feature-effects.md +8 -8
- package/docs/api/feature-instances.md +68 -17
- package/docs/api/features.md +68 -37
- package/docs/api/geometry.md +83 -14
- package/docs/api/grass.md +55 -13
- package/docs/api/impostors.md +92 -50
- package/docs/api/input.md +22 -9
- package/docs/api/lights.md +67 -16
- package/docs/api/lines.md +38 -13
- package/docs/api/materials.md +187 -59
- package/docs/api/math.md +6 -6
- package/docs/api/objects.md +40 -15
- package/docs/api/page.md +58 -7
- package/docs/api/particles.md +36 -11
- package/docs/api/points.md +18 -8
- package/docs/api/post.md +57 -23
- package/docs/api/quality.md +36 -16
- package/docs/api/raycast.md +57 -24
- package/docs/api/reference/animation.md +1 -2
- package/docs/api/reference/assets.md +7 -4
- package/docs/api/reference/cameras.md +3 -2
- package/docs/api/reference/controls.md +59 -2
- package/docs/api/reference/debug.md +58 -6
- package/docs/api/reference/engine.md +39 -10
- package/docs/api/reference/feature-draws.md +3 -4
- package/docs/api/reference/feature-effects.md +2 -3
- package/docs/api/reference/feature-instances.md +5 -4
- package/docs/api/reference/features.md +7 -4
- package/docs/api/reference/geometry.md +132 -21
- package/docs/api/reference/grass.md +62 -2
- package/docs/api/reference/impostors.md +120 -16
- package/docs/api/reference/input.md +1 -2
- package/docs/api/reference/lights.md +4 -3
- package/docs/api/reference/lines.md +3 -4
- package/docs/api/reference/materials.md +7 -6
- package/docs/api/reference/math.md +13 -2
- package/docs/api/reference/objects.md +2 -3
- package/docs/api/reference/particles.md +31 -6
- package/docs/api/reference/points.md +2 -3
- package/docs/api/reference/post.md +4 -3
- package/docs/api/reference/quality.md +1 -2
- package/docs/api/reference/raycast.md +1 -2
- package/docs/api/reference/render.md +4 -3
- package/docs/api/reference/scene.md +24 -5
- package/docs/api/reference/sketch.md +11 -11
- package/docs/api/reference/sound.md +33 -2
- package/docs/api/reference/splats.md +42 -3
- package/docs/api/reference/sprites.md +2 -3
- package/docs/api/reference/tasks.md +16 -3
- package/docs/api/reference/terrain.md +26 -5
- package/docs/api/reference/textures.md +1 -2
- package/docs/api/reference/three-compat.md +18 -7
- package/docs/api/reference/time.md +1 -2
- package/docs/api/reference/ui.md +10 -7
- package/docs/api/reference/vertex-draws.md +2 -3
- package/docs/api/reference/water.md +78 -5
- package/docs/api/reference/wind.md +15 -2
- package/docs/api/render.md +67 -25
- package/docs/api/scene.md +129 -36
- package/docs/api/sketch.md +45 -19
- package/docs/api/sound.md +48 -12
- package/docs/api/splats.md +42 -15
- package/docs/api/sprites.md +8 -6
- package/docs/api/tasks.md +31 -22
- package/docs/api/terrain.md +44 -12
- package/docs/api/textures.md +61 -12
- package/docs/api/three-compat.md +15 -7
- package/docs/api/time.md +3 -5
- package/docs/api/ui.md +18 -10
- package/docs/api/vertex-draws.md +13 -12
- package/docs/api/water.md +111 -67
- package/docs/api/wind.md +61 -15
- package/docs/cli/null3d.md +90 -15
- package/docs/concepts/architecture.md +69 -23
- package/docs/concepts/assets.md +57 -16
- package/docs/concepts/backends.md +65 -25
- package/docs/concepts/color-management.md +42 -13
- package/docs/concepts/culling.md +68 -47
- package/docs/concepts/handles.md +14 -5
- package/docs/concepts/instances.md +72 -23
- package/docs/concepts/large-worlds.md +17 -7
- package/docs/concepts/lighting.md +117 -44
- package/docs/concepts/lod.md +128 -33
- package/docs/concepts/materials.md +43 -12
- package/docs/concepts/particle-buffer.md +48 -35
- package/docs/concepts/post-processing.md +77 -14
- package/docs/concepts/quality-preset-tables.md +3 -2
- package/docs/concepts/quality-presets.md +122 -39
- package/docs/concepts/render-graph.md +56 -21
- package/docs/concepts/render-layers.md +9 -5
- package/docs/concepts/shadows.md +96 -25
- package/docs/concepts/static-dynamic.md +22 -7
- package/docs/cookbook/index.md +163 -119
- package/docs/data/threejs-mapping.json +301 -340
- package/docs/errors/E1101.md +23 -5
- package/docs/errors/E1102.md +11 -3
- package/docs/errors/E1103.md +11 -3
- package/docs/errors/E1104.md +11 -3
- package/docs/errors/E1105.md +13 -5
- package/docs/errors/E1106.md +11 -3
- package/docs/errors/E1107.md +15 -5
- package/docs/errors/E1108.md +11 -3
- package/docs/errors/E1109.md +32 -6
- package/docs/errors/E1110.md +23 -5
- package/docs/errors/E1111.md +11 -3
- package/docs/errors/E1112.md +11 -3
- package/docs/errors/E1203.md +12 -4
- package/docs/errors/E1204.md +11 -3
- package/docs/errors/E1205.md +11 -3
- package/docs/errors/E1206.md +28 -6
- package/docs/errors/E1207.md +11 -3
- package/docs/errors/E1208.md +12 -3
- package/docs/errors/E1209.md +11 -3
- package/docs/errors/E1213.md +27 -5
- package/docs/errors/E1214.md +11 -3
- package/docs/errors/E1215.md +31 -6
- package/docs/errors/E1216.md +31 -6
- package/docs/errors/E1217.md +29 -6
- package/docs/errors/E1218.md +22 -6
- package/docs/errors/E1219.md +11 -3
- package/docs/errors/E1220.md +24 -5
- package/docs/errors/E1221.md +24 -5
- package/docs/errors/E1222.md +11 -3
- package/docs/errors/E1223.md +39 -6
- package/docs/errors/E1224.md +11 -3
- package/docs/errors/E1225.md +11 -3
- package/docs/errors/E1301.md +11 -3
- package/docs/errors/E1302.md +11 -3
- package/docs/errors/E1303.md +11 -3
- package/docs/errors/E1304.md +11 -3
- package/docs/errors/E1305.md +13 -3
- package/docs/errors/E1306.md +11 -3
- package/docs/errors/E1307.md +23 -6
- package/docs/errors/E1401.md +11 -3
- package/docs/errors/E1402.md +13 -5
- package/docs/errors/E1403.md +11 -3
- package/docs/errors/E1404.md +13 -3
- package/docs/errors/E1405.md +15 -4
- package/docs/errors/E1406.md +31 -5
- package/docs/errors/E1407.md +11 -3
- package/docs/errors/E1408.md +11 -3
- package/docs/errors/E1409.md +11 -3
- package/docs/errors/E1410.md +13 -5
- package/docs/errors/E1411.md +11 -3
- package/docs/errors/E1412.md +29 -6
- package/docs/errors/E1413.md +11 -3
- package/docs/errors/E1414.md +11 -3
- package/docs/errors/E1415.md +11 -3
- package/docs/errors/E1416.md +27 -6
- package/docs/errors/E1417.md +11 -3
- package/docs/errors/E1418.md +12 -3
- package/docs/errors/E1419.md +13 -5
- package/docs/errors/E1420.md +11 -3
- package/docs/errors/E1421.md +11 -3
- package/docs/errors/E1422.md +12 -3
- package/docs/errors/E1423.md +12 -3
- package/docs/errors/E1424.md +24 -5
- package/docs/errors/E1425.md +11 -3
- package/docs/errors/E1426.md +11 -3
- package/docs/errors/E1430.md +11 -3
- package/docs/errors/E1431.md +11 -3
- package/docs/errors/E1432.md +11 -3
- package/docs/errors/E1433.md +11 -3
- package/docs/errors/E1434.md +15 -6
- package/docs/errors/E1435.md +11 -3
- package/docs/errors/E1436.md +11 -3
- package/docs/errors/E1437.md +14 -6
- package/docs/errors/E1501.md +41 -6
- package/docs/errors/E1502.md +13 -3
- package/docs/errors/E1503.md +11 -3
- package/docs/errors/E1504.md +11 -3
- package/docs/errors/E1505.md +23 -5
- package/docs/errors/E1506.md +11 -3
- package/docs/errors/index.md +52 -29
- package/docs/getting-started/cdn.md +15 -9
- package/docs/getting-started/first-scene.md +20 -12
- package/docs/getting-started/hosting.md +111 -63
- package/docs/getting-started/install.md +39 -24
- package/docs/getting-started/network-use.md +31 -21
- package/docs/getting-started/project-structure.md +20 -8
- package/docs/getting-started/third-party-notices.md +6 -10
- package/docs/guides/accessibility.md +4 -4
- package/docs/guides/add-ons.md +83 -13
- package/docs/guides/agents.md +2 -6
- package/docs/guides/assets-pipeline.md +248 -72
- package/docs/guides/audio.md +17 -15
- package/docs/guides/baked-light-data.md +44 -23
- package/docs/guides/car-paint.md +37 -31
- package/docs/guides/content-pages.md +53 -29
- package/docs/guides/custom-passes.md +59 -17
- package/docs/guides/custom-shaders.md +54 -37
- package/docs/guides/debugging.md +31 -41
- package/docs/guides/deploying.md +6 -27
- package/docs/guides/deterministic-simulation.md +23 -16
- package/docs/guides/first-use-shaders.md +83 -45
- package/docs/guides/lens-kit.md +29 -26
- package/docs/guides/loading-screens.md +70 -30
- package/docs/guides/multiple-views.md +22 -11
- package/docs/guides/performance.md +188 -37
- package/docs/guides/phones.md +71 -19
- package/docs/guides/physics.md +6 -10
- package/docs/guides/screens.md +41 -29
- package/docs/guides/start-time.md +120 -85
- package/docs/guides/testing.md +137 -98
- package/docs/guides/ui-overlays.md +17 -12
- package/docs/guides/video-textures.md +14 -13
- package/docs/images/api/animation/character.webp +0 -0
- package/docs/images/api/animation/look-at-ring.webp +0 -0
- package/docs/images/api/animation/morph-tulips.webp +0 -0
- package/docs/images/api/animation/skeleton-lines.webp +0 -0
- package/docs/images/api/controls/gizmo-handles.webp +0 -0
- package/docs/images/api/controls/walk-and-fly.webp +0 -0
- package/docs/images/api/debug/debug-shapes.webp +0 -0
- package/docs/images/api/debug/levels-view.webp +0 -0
- package/docs/images/api/engine/transparent-canvas.webp +0 -0
- package/docs/images/api/feature-draws/feature-draw-clouds.webp +0 -0
- package/docs/images/api/feature-instances/compute-instances.webp +0 -0
- package/docs/images/api/feature-instances/instances-shadow.webp +0 -0
- package/docs/images/api/geometry/extra-shapes.webp +0 -0
- package/docs/images/api/geometry/generators.webp +0 -0
- package/docs/images/api/geometry/mesh-arrays.webp +0 -0
- package/docs/images/api/geometry/vertex-updates.webp +0 -0
- package/docs/images/api/grass/grass-grove.webp +0 -0
- package/docs/images/api/grass/grass-presets.webp +0 -0
- package/docs/images/api/grass/grass-shadow.webp +0 -0
- package/docs/images/api/impostors/impostor-handover.webp +0 -0
- package/docs/images/api/impostors/impostor-shadow.webp +0 -0
- package/docs/images/api/impostors/impostors-forest.webp +0 -0
- package/docs/images/api/lights/spot-cookies.webp +0 -0
- package/docs/images/api/lines/lines-lit.webp +0 -0
- package/docs/images/api/lines/lines-widths.webp +0 -0
- package/docs/images/api/materials/coat-and-sheen.webp +0 -0
- package/docs/images/api/materials/decals.webp +0 -0
- package/docs/images/api/materials/iridescence-and-anisotropy.webp +0 -0
- package/docs/images/api/materials/relief.webp +0 -0
- package/docs/images/api/materials/shader-inputs.webp +0 -0
- package/docs/images/api/materials/standard-grid.webp +0 -0
- package/docs/images/api/materials/subsurface.webp +0 -0
- package/docs/images/api/materials/translucency.webp +0 -0
- package/docs/images/api/objects/objects-turntable.webp +0 -0
- package/docs/images/api/particles/campfire.webp +0 -0
- package/docs/images/api/points/galaxy.webp +0 -0
- package/docs/images/api/reference/textures/texture-wrap.webp +0 -0
- package/docs/images/api/render/fullscreen-glow.webp +0 -0
- package/docs/images/api/render/reflection-mirror.webp +0 -0
- package/docs/images/api/render/security-camera.webp +0 -0
- package/docs/images/api/scene/aurora-sky-layer.webp +0 -0
- package/docs/images/api/sound/sound-demo.webp +0 -0
- package/docs/images/api/splats/splats-demo.webp +0 -0
- package/docs/images/api/sprites/sprites-lines.webp +0 -0
- package/docs/images/api/terrain/terrain-demo.webp +0 -0
- package/docs/images/api/textures/canvas-screen.webp +0 -0
- package/docs/images/api/textures/mipmaps.webp +0 -0
- package/docs/images/api/vertex-draws/rain.webp +0 -0
- package/docs/images/api/water/ocean.webp +0 -0
- package/docs/images/api/water/water-demo.webp +0 -0
- package/docs/images/api/water/water-rain.webp +0 -0
- package/docs/images/api/water/waterfall.webp +0 -0
- package/docs/images/concepts/assets/gltf-model.webp +0 -0
- package/docs/images/concepts/color-management/tone-mapped.webp +0 -0
- package/docs/images/concepts/culling/far-from-origin.webp +0 -0
- package/docs/images/concepts/instances/instances.webp +0 -0
- package/docs/images/concepts/instances/per-row-colors.webp +0 -0
- package/docs/images/concepts/large-worlds/large-world.webp +0 -0
- package/docs/images/concepts/lighting/area-lights.webp +0 -0
- package/docs/images/concepts/lighting/atmosphere.webp +0 -0
- package/docs/images/concepts/lighting/environment.webp +0 -0
- package/docs/images/concepts/lighting/light-shafts.webp +0 -0
- package/docs/images/concepts/lighting/reflection-probes.webp +0 -0
- package/docs/images/concepts/lod/forest.webp +0 -0
- package/docs/images/concepts/materials/weighted-transparency.webp +0 -0
- package/docs/images/concepts/post-processing/auto-exposure.webp +0 -0
- package/docs/images/concepts/post-processing/bounce-light.webp +0 -0
- package/docs/images/concepts/post-processing/depth-of-field.webp +0 -0
- package/docs/images/concepts/post-processing/post-effects-alley.webp +0 -0
- package/docs/images/concepts/post-processing/sharpen.webp +0 -0
- package/docs/images/concepts/post-processing/ssr-wet-street.webp +0 -0
- package/docs/images/concepts/render-layers/layers-cottages.webp +0 -0
- package/docs/images/concepts/shadows/hero-shadow.webp +0 -0
- package/docs/images/cookbook/index/picking.webp +0 -0
- package/docs/images/cookbook/index/time-of-day.webp +0 -0
- package/docs/images/errors/E1431/area-lights-no-tables.webp +0 -0
- package/docs/images/guides/custom-passes/reflection-water.webp +0 -0
- package/docs/images/guides/deterministic-simulation/replay-demo.webp +0 -0
- package/docs/images/guides/multiple-views/split-screen.webp +0 -0
- package/docs/images/guides/performance/overdraw-view.webp +0 -0
- package/docs/images/guides/testing/hold-mode-frame.webp +0 -0
- package/docs/images/index/showcase-island.webp +0 -0
- package/docs/images/porting/threejs-shaders/dissolve.webp +0 -0
- package/docs/images/shaders/builtins/builtins.webp +0 -0
- package/docs/images/shaders/surface-functions/custom-surface.webp +0 -0
- package/docs/images/shaders/surface-functions/vertex-offset.webp +0 -0
- package/docs/images/shots.json +2231 -0
- package/docs/index.md +14 -23
- package/docs/moves.json +1 -0
- package/docs/nav.json +300 -0
- package/docs/pages.md +230 -212
- package/docs/porting/react-three-fiber.md +2 -6
- package/docs/porting/threejs-loop-and-threads.md +1 -5
- package/docs/porting/threejs-mapping.md +1248 -234
- package/docs/porting/threejs-materials.md +10 -5
- package/docs/porting/threejs-overview.md +26 -6
- package/docs/porting/threejs-postprocessing.md +2 -6
- package/docs/porting/threejs-shaders.md +16 -14
- package/docs/porting/threejs-unsupported.md +6 -6
- package/docs/porting/verification.md +0 -4
- package/docs/shaders/builtins.md +15 -4
- package/docs/shaders/library.md +9 -6
- package/docs/shaders/surface-functions.md +51 -16
- package/docs/shaders/wgsl-rules.md +12 -5
- package/lib/debug/debug.d.ts +2 -2
- package/lib/debug/draw.d.ts +2 -2
- package/lib/debug/draw.js +8 -4
- package/lib/debug/overlay-look.d.ts +6 -0
- package/lib/debug/overlay-look.js +29 -7
- package/lib/debug/overlay.js +15 -11
- package/lib/debug/stats-options.d.ts +13 -0
- package/lib/debug/stats-panel.d.ts +21 -6
- package/lib/debug/stats-panel.js +80 -13
- package/lib/errors/codes.d.ts +17 -3
- package/lib/errors/codes.js +111 -105
- package/lib/errors/fixes.js +18 -18
- package/lib/gpu/variants.d.ts +8 -2
- package/lib/gpu/variants.js +39 -7
- package/lib/gpu/webgl2/programs.js +1 -1
- package/lib/gpu/webgpu/pipelines.js +13 -13
- package/lib/index.d.ts +1 -1
- package/lib/page/capabilities.d.ts +1 -1
- package/lib/page/engine.d.ts +14 -5
- package/lib/page/engine.js +18 -2
- package/lib/page/label-loop.js +9 -4
- package/lib/page/stats-switch.js +2 -0
- package/lib/page/switches.d.ts +6 -4
- package/lib/page/switches.js +20 -4
- package/lib/scene/baked-light.d.ts +2 -2
- package/lib/scene/fake-call-values.js +2 -2
- package/lib/scene/frame-cameras.d.ts +16 -4
- package/lib/scene/frame-cameras.js +28 -10
- package/lib/scene/gltf.d.ts +1 -1
- package/lib/scene/level-rule.d.ts +6 -5
- package/lib/scene/level-rule.js +2 -2
- package/lib/scene/particles.d.ts +7 -3
- package/lib/scene/particles.js +3 -1
- package/lib/scene/post.d.ts +3 -2
- package/lib/scene/resources.d.ts +15 -9
- package/lib/scene/scene.d.ts +18 -2
- package/lib/scene/scene.js +47 -5
- package/lib/scene/time-of-day.d.ts +10 -5
- package/lib/scene/time-of-day.js +11 -7
- package/lib/shader-artifact.json +1 -1
- package/lib/shared/labels.d.ts +5 -2
- package/lib/shared/labels.js +5 -2
- package/lib/shared/permutation-words.d.ts +2 -0
- package/lib/shared/permutation-words.js +8 -0
- package/lib/shared/recording.d.ts +13 -5
- package/lib/shared/recording.js +31 -10
- package/lib/shared/sketch-data.d.ts +9 -0
- package/lib/shared/sketch-data.js +57 -0
- package/lib/shared/version.d.ts +1 -1
- package/lib/shared/version.js +1 -1
- package/lib/sketch/define-sketch.d.ts +16 -7
- package/lib/sketch/define-sketch.js +2 -1
- package/lib/sketch/runner.d.ts +4 -0
- package/lib/sketch/runner.js +5 -0
- package/lib/sketch/ui.js +4 -2
- package/lib/stats.d.ts +1 -0
- package/lib/workers/protocol.d.ts +10 -0
- package/lib/workers/render-worker.js +4 -1
- package/lib/workers/sketch-worker.js +4 -1
- package/package.json +1 -1
package/docs/errors/E1301.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1301
|
|
3
3
|
title: "E1301: No usable GPU path"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: The browser offers neither WebGPU nor WebGL2 for the way the engine was asked to draw.
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The browser offers neither WebGPU nor WebGL2 for the way the engine was asked to
|
|
|
16
15
|
|
|
17
16
|
Remove a ?gpu= switch or createEngine gpu option that forces a path this browser lacks. Update the browser, or turn on hardware acceleration in its settings.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1301: no usable GPU path for ?gpu=webgpu in this browser.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1302.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1302
|
|
3
3
|
title: "E1302: GPU lost"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The browser took the GPU away while the engine drew, for example after a driver reset or a GPU crash, and the engine could not carry on. No new GPU device started, or the GPU was lost more than twice within a minute. The engine stopped drawing."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The browser took the GPU away while the engine drew, for example after a driver
|
|
|
16
15
|
|
|
17
16
|
Listen with engine.onFailure. Destroy the engine, put a new canvas element in place of the old one, and start the engine again on it. If losses keep coming, lower the quality preset.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1302: the render worker lost its GPU: the GPU device was lost.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1303.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1303
|
|
3
3
|
title: "E1303: WebAssembly SIMD missing"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The browser runs WebAssembly without SIMD, which the engine's core needs."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The browser runs WebAssembly without SIMD, which the engine's core needs.
|
|
|
16
15
|
|
|
17
16
|
Update the browser. Chrome and Edge 91, Firefox 89, Safari 18 and later versions run the engine.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1303: this browser runs WebAssembly without SIMD.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1304.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1304
|
|
3
3
|
title: "E1304: GPU out of memory"
|
|
4
|
-
|
|
5
|
-
since: "0.2"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The GPU had no room for a buffer or texture that the engine made after the start. The objects that use it draw wrong or not at all. The engine reports the first time this happens on each GPU device, and draws on."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The GPU had no room for a buffer or texture that the engine made after the start
|
|
|
16
15
|
|
|
17
16
|
Lower the quality preset, use smaller or compressed textures, and share meshes and textures between objects. Destroy objects and textures that the scene no longer shows.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1304: the render worker's GPU ran out of memory: Not enough memory left.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1305.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1305
|
|
3
3
|
title: "E1305: GPU rejected work"
|
|
4
|
-
|
|
5
|
-
since: "0.2"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The GPU path refused a command that the engine gave it after the start, such as a buffer larger than the device allows. The objects that the command made or drew are missing, and the canvas can stay black. The engine reports the first time this happens on each GPU device, and draws on."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,19 @@ The GPU path refused a command that the engine gave it after the start, such as
|
|
|
16
15
|
|
|
17
16
|
Read the message: it quotes the GPU path. A buffer or texture past the device's limits names the limit: make the scene smaller there. Otherwise this is an engine bug: report it with the message and the browser.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
Report engine bugs on [GitHub Issues](https://github.com/null3d-engine/null3d/issues). Add the full message and [engine.report](../guides/debugging.md#how-the-engine-runs-on-this-device).
|
|
19
|
+
|
|
20
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
21
|
+
|
|
22
|
+
## Example message
|
|
23
|
+
|
|
24
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
25
|
|
|
21
26
|
```text
|
|
22
27
|
E1305: the render worker's GPU rejected a command: Buffer size (377487360) exceeds the max buffer size limit (268435456).
|
|
23
28
|
```
|
|
29
|
+
|
|
30
|
+
## See also
|
|
31
|
+
|
|
32
|
+
- [Error codes](index.md)
|
|
33
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1306.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1306
|
|
3
3
|
title: "E1306: Safari before 18"
|
|
4
|
-
|
|
5
|
-
since: "0.2"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The browser runs the WebKit engine of a Safari before 18, which null3D does not support. Every browser on iPhone and iPad runs WebKit, so Chrome, Edge and Firefox there count too."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The browser runs the WebKit engine of a Safari before 18, which null3D does not
|
|
|
16
15
|
|
|
17
16
|
Update Safari to version 18 or later. On iPhone and iPad, update iOS or iPadOS to 18 or later, which updates the engine of every browser there.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1306: this browser runs the WebKit engine of Safari 17, and the engine needs Safari 18 or later.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1307.md
CHANGED
|
@@ -1,23 +1,40 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1307
|
|
3
3
|
title: "E1307: Pipeline not built"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "After the start, the GPU's driver could not build a pipeline that draws objects of the scene. It refused the pipeline among the other builds, and again when the engine built it alone. A driver does this when it runs short of memory as it compiles the shader, or when its compiler fails on the shader. On WebGL2, a program that the driver refuses to link twice counts the same. The message names the pipeline: its template, such as a custom material, and the pass that its build draws in. The objects that draw with it are missing from that pass. The engine reports the first time this happens on each GPU device, and draws on."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "After the start, the GPU's driver could not build one pipeline that draws objects of the scene. The objects that draw with it are missing from the pass that the message names, and the engine draws on."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1307: Pipeline not built
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
After the start, the GPU's driver could not build
|
|
12
|
+
After the start, the GPU's driver could not build one pipeline that draws objects of the scene. The objects that draw with it are missing from the pass that the message names, and the engine draws on.
|
|
13
|
+
|
|
14
|
+
<details>
|
|
15
|
+
<summary>Technical details: how the engine builds the pipeline</summary>
|
|
16
|
+
|
|
17
|
+
The driver refused the pipeline among the other builds, and again when the engine built it alone. A driver does this when it runs short of memory as it compiles the shader, or when its compiler fails on the shader.
|
|
18
|
+
|
|
19
|
+
On WebGL2, a program that the driver refuses to link twice counts the same. The engine reports the first failure of each kind on each GPU device.
|
|
20
|
+
|
|
21
|
+
</details>
|
|
14
22
|
|
|
15
23
|
## How to fix it
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
Read the message: it names the pipeline and quotes the driver. If it names a custom material, shorten that material's WGSL, with fewer texture reads, loops and calls. On a device with little memory, use a lower quality preset, smaller textures and fewer objects. Update the browser and the device's system software, and report an engine template with the device.
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
28
|
+
|
|
29
|
+
## Example message
|
|
30
|
+
|
|
31
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
32
|
|
|
21
33
|
```text
|
|
22
34
|
E1307: the render worker's GPU driver could not build the pipeline of custom material 135, so the objects that draw with it are missing. It failed twice, the second time alone: CreateGraphicsPipelines failed with VK_ERROR_UNKNOWN.
|
|
23
35
|
```
|
|
36
|
+
|
|
37
|
+
## See also
|
|
38
|
+
|
|
39
|
+
- [Error codes](index.md)
|
|
40
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1401.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1401
|
|
3
3
|
title: "E1401: Not a sketch module"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: The module passed to createEngine as the sketch does not export a sketch as its default export.
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The module passed to createEngine as the sketch does not export a sketch as its
|
|
|
16
15
|
|
|
17
16
|
End the sketch module with export default defineSketch(...), and pass that module to createEngine.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1401: /sketch.ts must export default defineSketch(...).
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1402.md
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1402
|
|
3
3
|
title: "E1402: Engine core out of date"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "The engine core WebAssembly file lacks functions that the TypeScript side calls, so the two come from different builds. Development builds check this when the core loads. When null3D's own dev server serves the engine from a checkout of its repository, the check also compares the stamp of the Rust sources that the core was built from with the stamp of the checkout's sources. A core built before a merge or an edit of those sources then fails at once, before it can run with code that expects another core."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "The engine core's WebAssembly file lacks functions that the engine's JavaScript calls, so the two come from different builds. Development builds check this when the core loads. When null3D's own dev server serves the engine from a checkout of its repository, the check also compares the stamp of the Rust sources that the core was built from with the stamp of the checkout's sources. A core built before a merge or an edit of those sources then fails at once, before it can run with code that expects another core."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1402: Engine core out of date
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
The engine core WebAssembly file lacks functions that the
|
|
12
|
+
The engine core's WebAssembly file lacks functions that the engine's JavaScript calls, so the two come from different builds. Development builds check this when the core loads. When null3D's own dev server serves the engine from a checkout of its repository, the check also compares the stamp of the Rust sources that the core was built from with the stamp of the checkout's sources. A core built before a merge or an edit of those sources then fails at once, before it can run with code that expects another core.
|
|
14
13
|
|
|
15
14
|
## How to fix it
|
|
16
15
|
|
|
17
16
|
Reinstall the engine package so all of its parts come from one version. If you build the engine from source, run bun run build again.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1402: the threaded engine core lacks isThreadedBuild.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1403.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1403
|
|
3
3
|
title: "E1403: Engine core not ready"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "An engine call ran before the engine core started in this worker, or the core started twice."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ An engine call ran before the engine core started in this worker, or the core st
|
|
|
16
15
|
|
|
17
16
|
Create objects in the setup function you pass to defineSketch, or later, never when the sketch module loads.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1403: createMesh() ran before the engine core started.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1404.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1404
|
|
3
3
|
title: "E1404: Engine thread failed"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "An engine thread, or the drawing on the page, hit an error it could not handle, such as a trap in the engine core. After the start, the thread stops its loop: the engine draws no new frames, and engine.onFailure receives this error. During the start, createEngine() stops the engine and rejects with this error."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,19 @@ An engine thread, or the drawing on the page, hit an error it could not handle,
|
|
|
16
15
|
|
|
17
16
|
This is an engine bug. Report it with the message and the browser, then destroy the engine and start it again.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
Report engine bugs on [GitHub Issues](https://github.com/null3d-engine/null3d/issues). Add the full message and [engine.report](../guides/debugging.md#how-the-engine-runs-on-this-device).
|
|
19
|
+
|
|
20
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
21
|
+
|
|
22
|
+
## Example message
|
|
23
|
+
|
|
24
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
25
|
|
|
21
26
|
```text
|
|
22
27
|
E1404: the render worker failed: out of memory.
|
|
23
28
|
```
|
|
29
|
+
|
|
30
|
+
## See also
|
|
31
|
+
|
|
32
|
+
- [Error codes](index.md)
|
|
33
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1405.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1405
|
|
3
3
|
title: "E1405: Engine thread did not start"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "An engine worker failed while the engine started. The worker's script, the engine core or the renderer did not start there, or the sketch's setup function threw an error without an engine code."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -14,10 +13,22 @@ An engine worker failed while the engine started. The worker's script, the engin
|
|
|
14
13
|
|
|
15
14
|
## How to fix it
|
|
16
15
|
|
|
17
|
-
Read the message: it names the worker that did not start, and why. The sketch worker also reports an error that your sketch's setup function threw
|
|
16
|
+
Read the message: it names the worker that did not start, and why. The sketch worker also reports an error that your sketch's setup function threw: fix the setup function. Otherwise, check that the page is served with the isolation headers and that the engine files load. Allow the workers in the `worker-src` of a Content-Security-Policy, and report the error if it repeats.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
Report engine bugs on [GitHub Issues](https://github.com/null3d-engine/null3d/issues). Add the full message and [engine.report](../guides/debugging.md#how-the-engine-runs-on-this-device).
|
|
19
|
+
|
|
20
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
21
|
+
|
|
22
|
+
## Example message
|
|
23
|
+
|
|
24
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
25
|
|
|
21
26
|
```text
|
|
22
27
|
E1405: the render worker did not start: no WebGPU adapter.
|
|
23
28
|
```
|
|
29
|
+
|
|
30
|
+
## See also
|
|
31
|
+
|
|
32
|
+
- [Hosting and cross-origin isolation](../getting-started/hosting.md)
|
|
33
|
+
- [Error codes](index.md)
|
|
34
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1406.md
CHANGED
|
@@ -1,23 +1,49 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1406
|
|
3
3
|
title: "E1406: Engine file not downloaded"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "A file of the engine core did not download whole, or a file that a call loads the first time. The first KTX2 file loads the KTX2 transcoder, and the first glTF file the glTF loader. The first mesh that plans its levels of detail loads the level planner and its simplifier. The first glTF file with meshopt compression loads the meshopt decoder, and the first with Draco compression the Draco decoder. The first color grading table loads its readers, and the first environment its reader. The first sprite or point batch loads the sprite code, and the first line batch the line code. The first feature draw, instance draw or full-screen effect loads that adapter. The server answered with an error or sent another file in its place, such as a web page, or the connection broke off."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "A file of the engine core did not download whole, or a file that a call loads the first time it runs. The server answered with an error, sent another file in its place, such as a web page, or the connection broke off."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1406: Engine file not downloaded
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
A file of the engine core did not download whole, or a file that a call loads the first time
|
|
12
|
+
A file of the engine core did not download whole, or a file that a call loads the first time it runs. The server answered with an error, sent another file in its place, such as a web page, or the connection broke off.
|
|
13
|
+
|
|
14
|
+
<details>
|
|
15
|
+
<summary>Technical details: the files that load on first use</summary>
|
|
16
|
+
|
|
17
|
+
| First use | File |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| a KTX2 texture | the KTX2 transcoder |
|
|
20
|
+
| a glTF model | the glTF loader and its worker |
|
|
21
|
+
| a mesh that plans its levels of detail | the level planner and its simplifier |
|
|
22
|
+
| a glTF file with meshopt compression | the meshopt decoder |
|
|
23
|
+
| a glTF file with Draco compression | the Draco decoder |
|
|
24
|
+
| a color grading table | its readers |
|
|
25
|
+
| an environment map | its reader |
|
|
26
|
+
| a sprite or point batch | the sprite code |
|
|
27
|
+
| a line batch | the line code |
|
|
28
|
+
| a feature draw, instance draw or full-screen effect | that adapter |
|
|
29
|
+
|
|
30
|
+
</details>
|
|
14
31
|
|
|
15
32
|
## How to fix it
|
|
16
33
|
|
|
17
34
|
Check that the host serves every file that the build wrote, at the paths that the build gave them. The engine's .wasm files, the KTX2 transcoder's files, the glTF loader's files, the meshopt decoder and the level planner's simplifier are among them. If the page loads at other times, the network dropped: reload the page.
|
|
18
35
|
|
|
19
|
-
|
|
36
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
37
|
+
|
|
38
|
+
## Example message
|
|
39
|
+
|
|
40
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
41
|
|
|
21
42
|
```text
|
|
22
43
|
E1406: the threaded engine core did not download from /assets/null3d_bg-3f9c1a2b.wasm: HTTP 404.
|
|
23
44
|
```
|
|
45
|
+
|
|
46
|
+
## See also
|
|
47
|
+
|
|
48
|
+
- [Error codes](index.md)
|
|
49
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1407.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1407
|
|
3
3
|
title: "E1407: Invalid hold time"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The ?hold= switch or the hold option of createEngine gave a hold time that is not a number of seconds from 0 to 600."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The ?hold= switch or the hold option of createEngine gave a hold time that is no
|
|
|
16
15
|
|
|
17
16
|
Give the sketch time to hold at in seconds, such as ?hold=1.5 or hold: 1.5. A bare ?hold holds at the time of the hold option, or at 0 without one.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1407: ?hold=1500ms is not a number of seconds from 0 to 600.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1408.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1408
|
|
3
3
|
title: "E1408: Hold failed"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "The sketch or the engine failed in hold mode, before the engine read the held frame back. A live engine logs an error in the sketch and carries on. Hold mode stops at the first one, so a test fails at once."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The sketch or the engine failed in hold mode, before the engine read the held fr
|
|
|
16
15
|
|
|
17
16
|
Fix the error that the message quotes. When the message gives a sketch time, the sketch failed at that time, and the console shows the error with its stack.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1408: hold mode stopped at 0.75 seconds, in frame 46: TypeError: player is undefined.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1409.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1409
|
|
3
3
|
title: "E1409: Invalid memory maximum"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: The memory option of createEngine asked for a maximum that is not a whole number of MiB from 256 to 4096.
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ The memory option of createEngine asked for a maximum that is not a whole number
|
|
|
16
15
|
|
|
17
16
|
Give memory.maximumMiB a whole number of MiB from 256 to 4096, such as 2048, or leave the option out for the default of 1024.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1409: the memory.maximumMiB option 8192 is not a whole number of MiB from 256 to 4096.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1410.md
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1410
|
|
3
3
|
title: "E1410: Sketch module not loaded"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "The sketch module that createEngine got did not load. It did not download, or its code threw an error while the module loaded. The engine imports a module that does not load once more after a short wait, and the console notes that second import. The error comes only when the second import fails too, and it gives the reason of the first. A module whose code threw is not downloaded again, since it would throw again."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "The sketch module that `createEngine()` got did not load: it did not download, or its code threw while the module loaded. The engine imports a module that does not load once more after a short wait, and notes that second import in the console. The error comes only when the second import fails too, and it gives the reason of the first. A module whose code threw is not downloaded again, since it would throw again."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1410: Sketch module not loaded
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
The sketch module that createEngine got did not load
|
|
12
|
+
The sketch module that `createEngine()` got did not load: it did not download, or its code threw while the module loaded. The engine imports a module that does not load once more after a short wait, and notes that second import in the console. The error comes only when the second import fails too, and it gives the reason of the first. A module whose code threw is not downloaded again, since it would throw again.
|
|
14
13
|
|
|
15
14
|
## How to fix it
|
|
16
15
|
|
|
17
16
|
Pass the sketch as new URL('./sketch.ts', import.meta.url), so that the bundler ships the module and the engine finds it. When the download worked, the module's own code threw the error that the message quotes while the module loaded: fix that error.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1410: the sketch module https://example.com/assets/sketch-3f9c1a2b.js did not load: Failed to fetch dynamically imported module: https://example.com/assets/sketch-3f9c1a2b.js.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1411.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1411
|
|
3
3
|
title: "E1411: Asset not downloaded"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "A loading call could not download its file. The server answered with an error, such as 404 for a missing file, or the network failed."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ A loading call could not download its file. The server answered with an error, s
|
|
|
16
15
|
|
|
17
16
|
Check the file's address: a relative address resolves against the page's address, and new URL('./file.png', import.meta.url) resolves against the sketch module's. Check that the server sends the file, and handle the error where the file is optional.
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
19
|
+
|
|
20
|
+
## Example message
|
|
21
|
+
|
|
22
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
23
|
|
|
21
24
|
```text
|
|
22
25
|
E1411: assets.loadTexture() could not download https://example.com/tex/brick.png: HTTP 404.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|