@null3d/engine 0.1.0 → 0.1.2
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 +40 -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 +68 -24
- 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/E1308.md +31 -0
- 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 +53 -29
- package/docs/getting-started/cdn.md +15 -9
- package/docs/getting-started/first-scene.md +20 -12
- package/docs/getting-started/hosting.md +113 -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 +13 -14
- package/docs/guides/assets-pipeline.md +294 -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 +86 -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 +10 -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 +74 -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 +126 -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 +116 -105
- package/lib/errors/engine-error.js +1 -1
- package/lib/errors/fixes.d.ts +1 -0
- package/lib/errors/fixes.js +19 -18
- package/lib/generated/shader-permutations.d.ts +6 -0
- package/lib/generated/shader-permutations.js +6 -0
- 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 +29 -7
- package/lib/page/engine.js +79 -7
- 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 +8 -0
- package/lib/shared/permutation-words.js +14 -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/tier.d.ts +9 -0
- package/lib/shared/tier.js +4 -1
- 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/E1434.md
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1434
|
|
3
3
|
title: "E1434: Baked light file not read"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that is not a baked light file that this engine reads. The file may not be JSON, or its format marker may be missing. Its version may not be the one that this engine reads, or its kind may not be the one that the call takes. A probe grid may have counts or spacing that a grid cannot take. Its coefficients may not hold 12 floats for each probe in the counts' product, or its validity or skyVisibility may not hold one float from 0 to 1 for each probe. A light map may have a width or height that a texture cannot take, or an encoding other than rgb8 or rgba16float. Its radiance or its direction may not hold the bytes that its size needs, which a cut-short file shows. The message names the fault."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that this engine cannot read as baked light data. The file may not be JSON, may have the wrong format marker, version or kind, or may have a field whose size does not match the counts or size that the file gives. The message names the fault."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1434: Baked light file not read
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that
|
|
12
|
+
assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that this engine cannot read as baked light data. The file may not be JSON, may have the wrong format marker, version or kind, or may have a field whose size does not match the counts or size that the file gives. The message names the fault.
|
|
14
13
|
|
|
15
14
|
## How to fix it
|
|
16
15
|
|
|
17
|
-
Read the fault that the message names in the baked light file. Write version 1 of the format, which docs/guides/baked-light-data.md describes: a JSON object with the marker null3d.baked-light, the version, the kind, and the base64 payloads that its kind needs. Make each payload's length match the counts or the size that the same file gives. Read the file to its end, since a file cut short has no complete JSON.
|
|
16
|
+
Read the fault that the message names in the baked light file. Write version 1 of the format, which https://github.com/null3d-engine/null3d/blob/generated/docs/guides/baked-light-data.md describes: a JSON object with the marker null3d.baked-light, the version, the kind, and the base64 payloads that its kind needs. Make each payload's length match the counts or the size that the same file gives. Read the file to its end, since a file cut short has no complete JSON.
|
|
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
|
E1434: assets.loadLightProbeGrid() could not read https://example.com/light/grid.json: its version is 2, and this engine reads version 1.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Baked light data](../guides/baked-light-data.md)
|
|
31
|
+
- [Error codes](index.md)
|
|
32
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1435.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1435
|
|
3
3
|
title: "E1435: Recording not read"
|
|
4
|
-
|
|
5
|
-
since: "0.3"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "createEngine() could not read the recording that ?replay= names, or the recording does not match this page. The file may not be a null3D recording, may come from another version of the format, may be cut short, or may name keys or fixed steps that this engine does not have. The message names the fault."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ createEngine() could not read the recording that ?replay= names, or the recordin
|
|
|
16
15
|
|
|
17
16
|
Record the session again with the engine that recorded it, or update the engine that reads the file. When the message names a sketch, open the page with that sketch: a replay runs the file's frames on the scene that recorded them. When it names a key or a fixed step rate, the recording came from a sketch that this engine cannot run as it ran. A replay starts at the file's first frame, so a file must come from a session that started at the page's first frame.
|
|
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
|
E1435: createEngine() could not read the recording https://example.com/bug.n3dr: the file is not a null3D recording: it does not start with the format marker. Save the recording again, or ask for a new one.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1436.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1436
|
|
3
3
|
title: "E1436: Pick lost with the GPU"
|
|
4
|
-
|
|
5
|
-
since: "0.3"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "A pick waited for the GPU to copy its pixel back when the browser took the GPU away. The engine started a new device, but the frame that recorded the pick drew on the lost device, so its read never lands. The pick is rejected rather than repeated on the new device."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ A pick waited for the GPU to copy its pixel back when the browser took the GPU a
|
|
|
16
15
|
|
|
17
16
|
Ask for the pick again: the engine started a new GPU device, which answers a new pick. A pick that waits when the device is lost is rejected rather than repeated, because the frame that recorded it drew on the lost device.
|
|
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
|
E1436: pick() was waiting for its read when the GPU was lost.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1437.md
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1437
|
|
3
3
|
title: "E1437: Chrome for Testing refused"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive it downloaded does not have the SHA-256 hash that the tool records for the pinned version on this platform. Or the tool has no build, and so no hash, for this platform. The tool deletes a refused archive before it unpacks it, and never runs it."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive does not have the SHA-256 hash that the tool records for the pinned version, or the tool has no build for this platform. The tool deletes a refused archive before it unpacks it, and the command then draws with the installed Google Chrome."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1437: Chrome for Testing refused
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive
|
|
12
|
+
The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive does not have the SHA-256 hash that the tool records for the pinned version, or the tool has no build for this platform. The tool deletes a refused archive before it unpacks it, and the command then draws with the installed Google Chrome.
|
|
14
13
|
|
|
15
14
|
## How to fix it
|
|
16
15
|
|
|
17
|
-
Run the command again
|
|
16
|
+
Run the command again: a download that broke off, or that something changed on the way, fails the check. If the check fails again, a proxy or a mirror between this computer and Google's storage changes the file, so download without it. A refused archive is a warning, and stops the command only when `NULL3D_CHROME=testing` asks for Chrome for Testing alone. A platform with no Chrome for Testing build draws with the installed Google Chrome, or with Playwright's Chromium when `CI=1` is set.
|
|
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
|
E1437: the Chrome for Testing 156.0.8078.80 archive for mac-arm64 has the SHA-256 hash 5d41402abc4b2a76b9719d911017c592ae2f4d3c1a0d9b7e6c9a3f5b8e7d2c10, not 8bc590d1b1acac042a000234c768f31830f25a3983a83ed5e067114c87c4cad1, so the tool deleted it.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1501.md
CHANGED
|
@@ -1,23 +1,58 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1501
|
|
3
3
|
title: "E1501: Render space full"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "The scene needs more room than the renderer has. The message names the full part: the material table, the upload space, the culling pass, skinning on WebGPU, the draw list, one GPU buffer, or the shadow atlas. On WebGPU the culling pass covers 2,097,152 objects and instance rows on every device, and more on devices with larger GPU buffers. On WebGL2 the number follows the largest texture the device allows. The number for the device is in engine.capabilities.maxInstances. On WebGPU, skinned meshes keep their skinned vertices in at most 8 GPU buffers. Those hold 1 GiB in all on most devices. Skinned meshes fill at most 32 mesh buffers. The draw list grows with the scene, so it fills only when memory runs out. A frame that fails draws nothing, and the canvas keeps the last whole frame."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "The scene needs more room than the renderer has. The message names the full part, such as the material table, the texture table, the culling pass or the shadow atlas. A frame that fails draws nothing, and the canvas keeps the last whole frame."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1501: Render space full
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
The scene needs more room than the renderer has. The message names the full part
|
|
12
|
+
The scene needs more room than the renderer has. The message names the full part, such as the material table, the texture table, the culling pass or the shadow atlas. A frame that fails draws nothing, and the canvas keeps the last whole frame.
|
|
13
|
+
|
|
14
|
+
<details>
|
|
15
|
+
<summary>Technical details: each full part and its limit</summary>
|
|
16
|
+
|
|
17
|
+
| Full part | Limit |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| Material table | The message says it is full. |
|
|
20
|
+
| Draw list | The megabytes that its commands may take, which it reaches only when memory runs out. |
|
|
21
|
+
| Culling pass | 2,097,152 objects and instance rows on WebGPU, and more on devices with larger GPU buffers. On WebGL2 the number follows the largest texture. `engine.capabilities.maxInstances` gives the device's number. |
|
|
22
|
+
| Skinning on WebGPU | 8 GPU buffers, 1 GiB in all on most devices, and 32 mesh pages. |
|
|
23
|
+
| Views | 32, the camera's included. |
|
|
24
|
+
| Shadow atlas | 1,024 MB. |
|
|
25
|
+
| Texture table | The message says it is full. |
|
|
26
|
+
| Upload space | The room that the frame sets aside. |
|
|
27
|
+
| One GPU buffer | The bytes that one GPU buffer may take on the device. |
|
|
28
|
+
| Rectangle lights | The most lights that show images at once. |
|
|
29
|
+
| Light image size | The texels a side that an image takes. |
|
|
30
|
+
|
|
31
|
+
</details>
|
|
14
32
|
|
|
15
33
|
## How to fix it
|
|
16
34
|
|
|
17
|
-
Share meshes and
|
|
35
|
+
Share meshes, materials and textures between objects instead of creating them per object. Draw many copies of one mesh with an instance batch, and size each batch for the rows it uses. For a large crowd of skinned characters on WebGPU, use models with fewer vertices or fewer copies. The crowd draws again once it fits.
|
|
36
|
+
|
|
37
|
+
- For the culling pass: every row of a batch counts toward the limit, active or not, so size each batch for the rows it uses.
|
|
38
|
+
- For skinned characters on WebGPU: each copy skins its own vertices, even when copies share a mesh.
|
|
39
|
+
- For the shadow atlas: name a smaller `heroTileSize` or fewer `shadowTiles`.
|
|
40
|
+
- For the views: destroy views that no longer draw.
|
|
41
|
+
- For the texture table: use fewer textures, and share them.
|
|
42
|
+
- For the upload space, the draw list or one GPU buffer: make that part smaller. The message gives the megabytes or bytes that it may take.
|
|
43
|
+
- For rectangle lights or a light image: show images on fewer lights, or use a smaller image.
|
|
18
44
|
|
|
19
|
-
|
|
45
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
46
|
+
|
|
47
|
+
## Example message
|
|
48
|
+
|
|
49
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
50
|
|
|
21
51
|
```text
|
|
22
52
|
E1501: materials.standard() failed: the material table is full.
|
|
23
53
|
```
|
|
54
|
+
|
|
55
|
+
## See also
|
|
56
|
+
|
|
57
|
+
- [Error codes](index.md)
|
|
58
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1502.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1502
|
|
3
3
|
title: "E1502: Pass input missing"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "A render pass uses a target or buffer that no pass creates, or reads one that no pass running in the frame writes. The render graph checks the sketch's passes when render.addPass() or render.removePass() changes them, and every pass before the frame draws."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,19 @@ A render pass uses a target or buffer that no pass creates, or reads one that no
|
|
|
16
15
|
|
|
17
16
|
Name in reads only the textures that your other passes write, as their writes option spells them. Add the pass that writes a texture before a pass that reads it, and remove a pass that reads a texture before the pass that writes it. If the message names only the engine's own passes, report it with the message, the browser and the quality preset.
|
|
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
|
E1502: the pass "Final" reads "sceneColor", but no pass that runs this frame writes it.
|
|
23
28
|
```
|
|
29
|
+
|
|
30
|
+
## See also
|
|
31
|
+
|
|
32
|
+
- [Error codes](index.md)
|
|
33
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1503.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1503
|
|
3
3
|
title: "E1503: Target created twice"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "Two render passes create the same target, or a pass creates a target that the render graph keeps between frames. A sketch's pass whose texture has the name of a target of the engine's own passes does this. Each target has one creator, which sets its format and size."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ Two render passes create the same target, or a pass creates a target that the re
|
|
|
16
15
|
|
|
17
16
|
Give each pass's texture a name that no other pass writes. The engine's own passes write sceneColor, sceneDepth, outlineMask and the other names that render.dumpGraph() shows, so pick another name.
|
|
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
|
E1503: both "Opaque" and "Sky" create "sceneColor".
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1504.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1504
|
|
3
3
|
title: "E1504: Render pass cycle"
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "Render passes need each other in a loop, so no order runs each pass after the passes whose output it reads. A sketch's pass that reads its own texture makes such a loop."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ Render passes need each other in a loop, so no order runs each pass after the pa
|
|
|
16
15
|
|
|
17
16
|
Break the loop: a pass cannot read its own texture. To show a mirror in a mirror, add a pass for the inner mirror first, and let the outer pass read its texture.
|
|
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
|
E1504: the passes form a cycle: "Tint" runs after "Glow", and "Glow" after "Tint".
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1505.md
CHANGED
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1505
|
|
3
3
|
title: "E1505: Pass targets do not match"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
summary: "A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size than the pass, or the targets can have different sample counts. The pass can also draw into two depth targets, into a whole texture array instead of one layer, or into no target. It can draw into more than four color targets, or into color targets of more than 32 bytes per sample, which some devices cannot hold. A resolve pass fails the same way when it cannot resolve its target into the canvas. That target must be multisampled, in the canvas's format and size, and read by no other running pass."
|
|
4
|
+
generated: true
|
|
5
|
+
summary: "A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size or sample count than the pass, or the pass can name no target."
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# E1505: Pass targets do not match
|
|
10
9
|
|
|
11
10
|
## What happened
|
|
12
11
|
|
|
13
|
-
A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size than the pass, or the
|
|
12
|
+
A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size or sample count than the pass, or the pass can name no target.
|
|
13
|
+
|
|
14
|
+
- A target has another size than the pass.
|
|
15
|
+
- The targets have different sample counts.
|
|
16
|
+
- The pass draws into two depth targets.
|
|
17
|
+
- The pass draws into a whole texture array instead of one layer, or into a layer that the target does not have.
|
|
18
|
+
- The pass names no target.
|
|
19
|
+
- The pass draws into more than four color targets, or into color targets of more than 32 bytes per sample in all.
|
|
20
|
+
- A resolve pass cannot resolve its target into the canvas. The target is not multisampled, not in the canvas's format and size, or read by another running pass.
|
|
14
21
|
|
|
15
22
|
## How to fix it
|
|
16
23
|
|
|
17
24
|
Draw into targets of one size and one sample count in each pass, and into at most four color targets. If the message names only the engine's own passes, report it with the message, the browser and the quality preset.
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
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).
|
|
27
|
+
|
|
28
|
+
[Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
29
|
+
|
|
30
|
+
## Example message
|
|
31
|
+
|
|
32
|
+
The engine prints the part below, then the fix above and a link to this page.
|
|
20
33
|
|
|
21
34
|
```text
|
|
22
35
|
E1505: the pass "Blur" draws at half size into "sceneColor", which is full size.
|
|
23
36
|
```
|
|
37
|
+
|
|
38
|
+
## See also
|
|
39
|
+
|
|
40
|
+
- [Error codes](index.md)
|
|
41
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/E1506.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/E1506
|
|
3
3
|
title: "E1506: Feature draw after the first frame"
|
|
4
|
-
|
|
5
|
-
since: "0.3"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: "A draw whose instance count the GPU writes was created after the engine recorded its first frame, on a device that draws its scene directly. The direct path counts every draw on the CPU and keeps no indirect draw, so the frame has nowhere to copy the count. The frame records no draw."
|
|
7
6
|
---
|
|
8
7
|
|
|
@@ -16,8 +15,17 @@ A draw whose instance count the GPU writes was created after the engine recorded
|
|
|
16
15
|
|
|
17
16
|
Create the draw in the sketch's setup, and await addComputeInstances() there, before the first frame. A device that draws directly fixes that choice at its first frame, and cannot take a draw whose count the GPU writes after it. Destroy the draw to let the frames draw 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
|
E1506: the frame failed: a draw whose instance count the GPU writes arrived after the first frame, and this device draws directly.
|
|
23
26
|
```
|
|
27
|
+
|
|
28
|
+
## See also
|
|
29
|
+
|
|
30
|
+
- [Error codes](index.md)
|
|
31
|
+
- [Debugging](../guides/debugging.md)
|
package/docs/errors/index.md
CHANGED
|
@@ -1,93 +1,117 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: errors/index
|
|
3
3
|
title: Error codes
|
|
4
|
-
|
|
5
|
-
since: "0.1"
|
|
4
|
+
generated: true
|
|
6
5
|
summary: Every EngineError code with its cause and fix.
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
# Error codes
|
|
10
9
|
|
|
11
|
-
Every error the engine
|
|
10
|
+
Every error the engine reports is an `EngineError` with a code. Its message names the call and the object, says what failed and how to fix it, and links to the code's page here. [Where problems appear](../guides/debugging.md#where-problems-appear) says where each kind of error reaches your code.
|
|
11
|
+
|
|
12
|
+
Codes from E2000 to E9999 belong to add-ons. An add-on's message starts with its name, such as `splats E2101`, and the add-on's page lists its codes: [Gaussian splats](../api/splats.md), [Sound](../api/sound.md).
|
|
13
|
+
|
|
14
|
+
## Objects, handles and engine memory
|
|
12
15
|
|
|
13
16
|
| Code | Error | What happened |
|
|
14
17
|
| --- | --- | --- |
|
|
15
|
-
| [E1101](E1101.md) | Stale handle | A call used an object after
|
|
18
|
+
| [E1101](E1101.md) | Stale handle | A call used an object, instance batch or resource after you destroyed it. The engine reuses the freed slot, but a call through the old handle never changes the object that takes it. |
|
|
16
19
|
| [E1102](E1102.md) | Too many objects | The scene, the table of instance batches or the queue of changes for the next frame is full. The message names which one, and how many it holds. |
|
|
17
20
|
| [E1103](E1103.md) | Object from another engine | A call received an object that this engine did not create. |
|
|
18
21
|
| [E1104](E1104.md) | Parent loop | A call would make an object its own ancestor: the new parent is the object itself or one of its descendants. |
|
|
19
|
-
| [E1105](E1105.md) | Unknown command | The engine core received a structural change it does not know, so the
|
|
22
|
+
| [E1105](E1105.md) | Unknown command | The engine core received a structural change it does not know, so the engine's JavaScript and its core come from different builds. |
|
|
20
23
|
| [E1106](E1106.md) | Object never created | A call such as `setVisible` or `setParent` queued a change for an object that the engine never created. The engine creates an object when the next frame starts. When that fails, for example because its parent was destroyed, the object never joins the scene. |
|
|
21
|
-
| [E1107](E1107.md) | Object created twice | The engine core received a second create command for one object, so the
|
|
24
|
+
| [E1107](E1107.md) | Object created twice | The engine core received a second create command for one object, so the engine's JavaScript and its core disagree about the scene. The core skips that command, and the scene keeps running. |
|
|
22
25
|
| [E1108](E1108.md) | Value out of range | A call received a number outside the range it takes. Examples are a row past the capacity of an instance batch, an opacity above 1, a negative radius, and a camera's far plane that does not lie beyond its near plane. |
|
|
23
|
-
| [E1109](E1109.md) | Engine memory full | The engine could not create or grow its WebAssembly memory. A page with worker threads gives the engine 1 GiB by default, and
|
|
24
|
-
| [E1110](E1110.md) | Unmarked write to a static object | A static object's position, rotation, scale or bounding sphere changed without a setter. The engine
|
|
26
|
+
| [E1109](E1109.md) | Engine memory full | The engine could not create or grow its WebAssembly memory. A page with worker threads gives the engine 1 GiB by default, and the memory option of `createEngine()` can raise it to 4 GiB. Many instance rows, a mesh of millions of vertices, or the first frame that copies every mesh can fill it. |
|
|
27
|
+
| [E1110](E1110.md) | Unmarked write to a static object | A static object's position, rotation, scale or bounding sphere changed without a setter. The engine updates a static object only in a frame where a setter marks it or its parent moves. A row of a static instance, sprite or point batch that changed without `markDirty()` raises it too. |
|
|
25
28
|
| [E1111](E1111.md) | Mesh or model still in use | A call to destroy() named a mesh, or a model that assets.loadGltf loaded, while an object or an instance batch still uses it. For a model, that includes objects that use one of its meshes or materials, and objects that its animation clips move. The engine keeps the mesh or model, so nothing draws freed memory. |
|
|
26
29
|
| [E1112](E1112.md) | Unsupported cookie texture | A spot light's map copies its picture once, when the texture's texels reach the GPU. A video's texture and a render pass's texture change every frame, and a 3D or cube texture holds more than one image, so none of them fits the copy. |
|
|
30
|
+
|
|
31
|
+
## Values passed to calls
|
|
32
|
+
|
|
33
|
+
| Code | Error | What happened |
|
|
34
|
+
| --- | --- | --- |
|
|
27
35
|
| [E1203](E1203.md) | Invalid number | A call received a number that is not finite, such as NaN or Infinity. |
|
|
28
36
|
| [E1204](E1204.md) | Invalid color | A call received a color that is not a hex string, a number from 0 to 0xffffff, or three numbers from 0 to 1. |
|
|
29
37
|
| [E1205](E1205.md) | Unknown input name | An input call received a name that no key, button or action has, or `input.actions.define()` received an action name that a key or button already has. `on()` and `off()` received an event type that objects do not have. Names are case-sensitive: `KeyW` is the W key, and `keyW` names nothing. |
|
|
30
|
-
| [E1206](E1206.md) | Invalid mesh arrays |
|
|
38
|
+
| [E1206](E1206.md) | Invalid mesh arrays | A call that builds or updates a mesh, a line or a set of points got arrays that do not fit. An array can have the wrong length, an index can name no vertex, or a value can be NaN or Infinity. |
|
|
31
39
|
| [E1207](E1207.md) | Invalid layer mask | A call that sets layers received a number that is not a 32-bit layer mask: a fraction, NaN, or a number past 32 bits. |
|
|
32
40
|
| [E1208](E1208.md) | Invalid texture | A call that makes or updates a texture received something it cannot use. It can be an option the engine does not know, or an image without pixels or larger than the device takes. It can also be data that does not fit the texture's size and format, or numbers that make no color grading table. With a KTX2 file, it can be an option that the file cannot take, or an update of its texture. |
|
|
33
41
|
| [E1209](E1209.md) | Too many textures | A material whose shader reads more textures than a WebGL2 shader stage has units. The engine numbers the textures that a program reads, and WebGL2 gives every stage at least 16 units, as many as the device reports. The lit shader reads most of them, so a custom material or add-on draw reaches the limit with its own textures, beside the maps and the shadows. |
|
|
34
|
-
| [E1213](E1213.md) | Invalid setting | A call received a setting that it does not have, or a value that the setting does not take.
|
|
42
|
+
| [E1213](E1213.md) | Invalid setting | A call received a setting that it does not have, or a value that the setting does not take. A tone mapping that the engine does not know, or a grading control outside its range, are examples. |
|
|
35
43
|
| [E1214](E1214.md) | Invalid sketch option | defineSketch() received an option out of its range. fixedRate must be a number above 0, and maxFixedSteps a whole number of 1 or more. downloads must be an array of file addresses: an empty string, or a string that is not an address, fails. The engine checks the options before it runs the setup function. |
|
|
36
|
-
| [E1215](E1215.md) | Invalid custom WGSL | materials.shader()
|
|
37
|
-
| [E1216](E1216.md) | Invalid uniform or texture | A custom material's or effect's uniforms or textures did not match its WGSL. The
|
|
38
|
-
| [E1217](E1217.md) | Invalid material option | A material factory or scene.createLines()
|
|
39
|
-
| [E1218](E1218.md) | Invalid animation call | An
|
|
44
|
+
| [E1215](E1215.md) | Invalid custom WGSL | `materials.shader()`, `post.addEffect()`, `post.set()` or `scene.setSkyLayer()` received WGSL that it cannot draw with. The engine takes only WGSL that the null3D Vite plugin compiled, as a shader of the kind that the call takes. |
|
|
45
|
+
| [E1216](E1216.md) | Invalid uniform or texture | A custom material's or effect's uniforms or textures did not match its WGSL. The options take the names of the fields of `struct Uniforms` and of the WGSL's texture declarations. Give each one a value or texture of the type that its declaration takes, and leave standard values such as `color` to `set()`. |
|
|
46
|
+
| [E1217](E1217.md) | Invalid material option | A material factory or scene.createLines() got an option value that it does not take, or two options that cannot go together. The message names the option and the rule it breaks. |
|
|
47
|
+
| [E1218](E1218.md) | Invalid animation call | An animation call, or animation data that the engine loads, named something that does not exist or gave a value out of range. The call can be an animator call, a morph-weight call or `animateProperty()`. |
|
|
40
48
|
| [E1219](E1219.md) | Invalid label | ui.trackLabel() or ui.untrackLabel() got an id that is not a string with at least one character. Or trackLabel() got a transform that is not 'screen', 'world' or 'billboard', or a rotation that is not a number for a label that faces the camera. Or the sketch tracked more labels at once than createEngine's maxLabels option allows: 4,096 by default. A label that is a plane of the scene counts against maxLabels3d instead, which holds 256 by default. |
|
|
41
|
-
| [E1220](E1220.md) | Invalid render pass | render
|
|
42
|
-
| [E1221](E1221.md) | Invalid levels of detail | mesh.setLevels() received levels that the mesh cannot take, or a glTF file's MSFT_lod levels could not become them. Each level
|
|
49
|
+
| [E1220](E1220.md) | Invalid render pass | A render pass call got options that it does not take, or a pass of a kind that it does not work on. The message names the call and the rule that it breaks. |
|
|
50
|
+
| [E1221](E1221.md) | Invalid levels of detail | `mesh.setLevels()` received levels that the mesh cannot take, or a glTF file's MSFT_lod levels could not become them. Each level gives one of an error, a distance and a coverage, and the switch distances grow from level to level. |
|
|
43
51
|
| [E1222](E1222.md) | Invalid light probe grid texture | scene.setLightProbeGrid() received a texture that is not a 3D texture. A probe grid sample reads a 3D texture, so the frame cannot bind a texture array in its place. setLightProbeGrid() also refuses a texture that is not live. |
|
|
44
|
-
| [E1223](E1223.md) | Invalid feature description |
|
|
52
|
+
| [E1223](E1223.md) | Invalid feature description | A call that registers a feature, a feature draw, a full-screen effect, a sky layer or a compute pass got a description it cannot take. The message names the value and the rule that it breaks. |
|
|
45
53
|
| [E1224](E1224.md) | Material cannot draw a mesh | scene.overrideMaterial received a sprite, point or line material. Such a material draws the rows of its batch, or a sprite or line of its own, rather than the surface of a mesh, so it cannot stand in for every mesh of the pass. |
|
|
46
54
|
| [E1225](E1225.md) | Add-on name clash | An add-on registered a name that the engine or another add-on holds: its namespace, its shader library, an error-code range, a quality key, or the name of a feature, output or lighting slot. A namespace also names the package that owns it, so a second add-on that takes the name is refused even when its other fields match, while a reload of the same package keeps its namespace. Two add-ons cannot share a name, a range or a key, because the engine would have two answers for one of them. |
|
|
55
|
+
|
|
56
|
+
## Browsers and GPUs
|
|
57
|
+
|
|
58
|
+
| Code | Error | What happened |
|
|
59
|
+
| --- | --- | --- |
|
|
47
60
|
| [E1301](E1301.md) | No usable GPU path | The browser offers neither WebGPU nor WebGL2 for the way the engine was asked to draw. |
|
|
48
61
|
| [E1302](E1302.md) | GPU lost | 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. |
|
|
49
62
|
| [E1303](E1303.md) | WebAssembly SIMD missing | The browser runs WebAssembly without SIMD, which the engine's core needs. |
|
|
50
63
|
| [E1304](E1304.md) | GPU out of memory | 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. |
|
|
51
64
|
| [E1305](E1305.md) | GPU rejected work | 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. |
|
|
52
65
|
| [E1306](E1306.md) | Safari before 18 | 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. |
|
|
53
|
-
| [E1307](E1307.md) | Pipeline not built | After the start, the GPU's driver could not build
|
|
66
|
+
| [E1307](E1307.md) | Pipeline not built | 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. |
|
|
67
|
+
| [E1308](E1308.md) | GPU path not in this build | This page's build holds the shaders of one GPU path, and this device would draw with the other. The Vite plugin's shaders.gpuPaths option left the other path out, for a deployment whose browser always offers the shipped one, such as an Electron app whose Chromium draws with WebGPU. |
|
|
68
|
+
|
|
69
|
+
## Setup, loading and runtime
|
|
70
|
+
|
|
71
|
+
| Code | Error | What happened |
|
|
72
|
+
| --- | --- | --- |
|
|
54
73
|
| [E1401](E1401.md) | Not a sketch module | The module passed to createEngine as the sketch does not export a sketch as its default export. |
|
|
55
|
-
| [E1402](E1402.md) | Engine core out of date | The engine core WebAssembly file lacks functions that the
|
|
74
|
+
| [E1402](E1402.md) | Engine core out of date | 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. |
|
|
56
75
|
| [E1403](E1403.md) | Engine core not ready | An engine call ran before the engine core started in this worker, or the core started twice. |
|
|
57
76
|
| [E1404](E1404.md) | Engine thread failed | 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. |
|
|
58
77
|
| [E1405](E1405.md) | Engine thread did not start | 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. |
|
|
59
|
-
| [E1406](E1406.md) | Engine file not downloaded | A file of the engine core did not download whole, or a file that a call loads the first time
|
|
78
|
+
| [E1406](E1406.md) | Engine file not downloaded | 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. |
|
|
60
79
|
| [E1407](E1407.md) | Invalid hold time | The ?hold= switch or the hold option of createEngine gave a hold time that is not a number of seconds from 0 to 600. |
|
|
61
80
|
| [E1408](E1408.md) | Hold failed | 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. |
|
|
62
81
|
| [E1409](E1409.md) | Invalid memory maximum | The memory option of createEngine asked for a maximum that is not a whole number of MiB from 256 to 4096. |
|
|
63
|
-
| [E1410](E1410.md) | Sketch module not loaded | The sketch module that createEngine got did not load
|
|
82
|
+
| [E1410](E1410.md) | Sketch module not loaded | 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. |
|
|
64
83
|
| [E1411](E1411.md) | Asset not downloaded | 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. |
|
|
65
|
-
| [E1412](E1412.md) | Asset not decoded | A loading call downloaded its file but could not read it. The
|
|
84
|
+
| [E1412](E1412.md) | Asset not decoded | A loading call downloaded its file but could not read it. The message says what in the file the engine could not read, with its line where it has one. |
|
|
66
85
|
| [E1413](E1413.md) | Asset from another origin blocked | A loading call could not read a file from another origin. The browser reads such a file only when its server allows the page's origin with an Access-Control-Allow-Origin header. The browser gives no reason, so the server may also have been unreachable. |
|
|
67
86
|
| [E1414](E1414.md) | Frame not captured | engine.capture() could not give an image of a frame. The engine had stopped, or the thread that draws could not read the frame back from the GPU or encode it. The thread that draws can also stop taking messages, as when a GPU call never returns: the engine then fails the request once its wait for the answer has taken longer than its limit, instead of leaving the call to wait with no end. |
|
|
68
87
|
| [E1415](E1415.md) | Page thread already runs a sketch | createEngine() was asked to run a sketch on the page's thread while another engine still runs its sketch there. The page's copy of the engine core serves one engine at a time. This happens with sketchThread: 'main', and in the single-threaded build, which runs every sketch on the page's thread. |
|
|
69
|
-
| [E1416](E1416.md) | glTF file not read | assets.loadGltf()
|
|
88
|
+
| [E1416](E1416.md) | glTF file not read | assets.loadGltf() could not read a file as a glTF 2.0 model. The file is broken, it goes past a limit of the engine, or the rewriteUrl option refused an address that it names. The message names the part that failed. |
|
|
70
89
|
| [E1417](E1417.md) | glTF feature not supported | A glTF file needs an extension that the engine does not read, as its extensionsRequired list says. When a foundation add-on reads that extension, the message names the package to import, such as "Import @null3d/splats, which reads it", and that add-on registers the handler that loads the file. Or a call asked a model for something it cannot give, such as instance batches of a model with no meshes. |
|
|
71
90
|
| [E1418](E1418.md) | WebAssembly blocked by the page | The page's Content-Security-Policy does not allow WebAssembly, so the engine core, the KTX2 transcoder, the meshopt decoder or the Draco decoder could not compile. A policy allows it only when its script-src, or its default-src without a script-src, holds 'wasm-unsafe-eval'. |
|
|
72
|
-
| [E1419](E1419.md) | Canvas held by another engine | createEngine() got a canvas that another engine still draws on, or a canvas whose drawing thread ended, so no engine can draw on it again. That thread ends when it fails,
|
|
91
|
+
| [E1419](E1419.md) | Canvas held by another engine | `createEngine()` got a canvas that another engine still draws on, or a canvas whose drawing thread ended, so no engine can draw on it again. That thread ends when it fails, when the canvas leaves the page, or when the browser refuses memory for a new engine. A canvas serves one engine at a time, but after `destroy()` a new engine can start on it. |
|
|
73
92
|
| [E1420](E1420.md) | Engine stopped | Sketch code called the engine after the engine stopped, from a timer, a promise or an event handler that outlived destroy(). The call did nothing. engine.firstFrame rejects with it too when the page destroys the engine before its first frame. |
|
|
74
93
|
| [E1421](E1421.md) | Unknown feature to preload | createEngine()'s preload option names a feature whose shaders the engine does not have. The features are ao, background, bloom, coat_sheen, coverage, cutout, dof, effect_groups, hash, lines, lod_fade, morph, occlusion, row_values, skinning, sky, sprites, transmission and views, and instance_index and texcoords for the engine's own tests. |
|
|
75
94
|
| [E1422](E1422.md) | Engine file blocked by the page | The engine's files come from another origin than the page, such as a CDN, and the page's Content-Security-Policy blocks one of them. The engine starts each worker from a blob: address that imports the worker's script from that origin, and downloads its .wasm files from there. So the policy's worker-src must allow blob: and the other origin, and its script-src and connect-src must allow the other origin too. Firefox checks the modules that a worker imports against worker-src. |
|
|
76
95
|
| [E1423](E1423.md) | Engine file without CORS | The engine's files come from another origin than the page, such as a CDN. One of them came without a CORS header, or did not download. A page loads a module or a .wasm file from another origin only when the response carries Access-Control-Allow-Origin. |
|
|
77
|
-
| [E1424](E1424.md) | Custom shader builds not downloaded | A
|
|
96
|
+
| [E1424](E1424.md) | Custom shader builds not downloaded | A file that holds a custom shader's builds did not download, so the engine draws no new frames. The server answered with an error, sent another file in its place, such as a web page, or the connection broke off. |
|
|
78
97
|
| [E1425](E1425.md) | Pointer lock refused | engine.requestPointerLock() asked the browser to lock the pointer to the canvas, and the browser refused or ended the lock before it began. Browsers lock the pointer only right after the user clicks or presses a key. They never lock it on phones or in some frames, and they refuse for a moment after the user pressed Esc. |
|
|
79
98
|
| [E1426](E1426.md) | Pointer lock with input off | engine.requestPointerLock() asked for the pointer lock on an engine started with input: false. The lock is part of the engine's input: the sketch reads the mouse's movement through the engine's listeners, which that option turns off. So the engine takes no lock, and leaves the lock to the code that records the page's input. |
|
|
80
99
|
| [E1430](E1430.md) | Too many reflection probes | scene.createReflectionProbe() would make a 17th reflection probe, and a scene has at most 16. Or the scene's first probe needs 6 views of the scene for its captures. The scene and its passes share 32 views, and its passes left fewer than 6. |
|
|
81
100
|
| [E1431](E1431.md) | Area lights' tables missing | The sketch made a rectangle or tube light, and the file of the area lights' fitted tables did not download. The engine's package ships the file, area-light-tables.bin, beside its code, and the engine downloads it with the first area light. Until the file arrives, area lights give no light. A server or a build that leaves out the file, or a Content-Security-Policy whose connect-src blocks its address, stops the download. |
|
|
82
101
|
| [E1432](E1432.md) | Add-on for another engine version | An add-on package loaded beside an engine of another version. Each add-on ships in step with the engine and pins the engine version that it was built for, so a page may mix no two versions. The message names the add-on, its version and the engine version. |
|
|
83
102
|
| [E1433](E1433.md) | Add-on for another plugin interface | An add-on from another developer loaded against a plugin interface that its declared range does not include, or the add-on declares no range of whole versions. An outside add-on declares the plugin interface versions that it works with, because it ships on its own schedule. The engine's own add-ons pin the engine version instead. The message names the add-on, the range it declares and this engine's plugin interface version. |
|
|
84
|
-
| [E1434](E1434.md) | Baked light file not read | assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that
|
|
103
|
+
| [E1434](E1434.md) | Baked light file not read | assets.loadLightProbeGrid() or assets.loadLightMap() downloaded a file that this engine cannot read as baked light data. The file may not be JSON, may have the wrong format marker, version or kind, or may have a field whose size does not match the counts or size that the file gives. The message names the fault. |
|
|
85
104
|
| [E1435](E1435.md) | Recording not read | createEngine() could not read the recording that ?replay= names, or the recording does not match this page. The file may not be a null3D recording, may come from another version of the format, may be cut short, or may name keys or fixed steps that this engine does not have. The message names the fault. |
|
|
86
105
|
| [E1436](E1436.md) | Pick lost with the GPU | A pick waited for the GPU to copy its pixel back when the browser took the GPU away. The engine started a new device, but the frame that recorded the pick drew on the lost device, so its read never lands. The pick is rejected rather than repeated on the new device. |
|
|
87
|
-
| [E1437](E1437.md) | Chrome for Testing refused | The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive
|
|
88
|
-
|
|
106
|
+
| [E1437](E1437.md) | Chrome for Testing refused | The null3D command-line tool did not install Chrome for Testing, the browser that draws on the computer's GPU. The archive does not have the SHA-256 hash that the tool records for the pinned version, or the tool has no build for this platform. The tool deletes a refused archive before it unpacks it, and the command then draws with the installed Google Chrome. |
|
|
107
|
+
|
|
108
|
+
## Render graph
|
|
109
|
+
|
|
110
|
+
| Code | Error | What happened |
|
|
111
|
+
| --- | --- | --- |
|
|
112
|
+
| [E1501](E1501.md) | Render space full | The scene needs more room than the renderer has. The message names the full part, such as the material table, the texture table, the culling pass or the shadow atlas. A frame that fails draws nothing, and the canvas keeps the last whole frame. |
|
|
89
113
|
| [E1502](E1502.md) | Pass input missing | A render pass uses a target or buffer that no pass creates, or reads one that no pass running in the frame writes. The render graph checks the sketch's passes when render.addPass() or render.removePass() changes them, and every pass before the frame draws. |
|
|
90
114
|
| [E1503](E1503.md) | Target created twice | Two render passes create the same target, or a pass creates a target that the render graph keeps between frames. A sketch's pass whose texture has the name of a target of the engine's own passes does this. Each target has one creator, which sets its format and size. |
|
|
91
115
|
| [E1504](E1504.md) | Render pass cycle | Render passes need each other in a loop, so no order runs each pass after the passes whose output it reads. A sketch's pass that reads its own texture makes such a loop. |
|
|
92
|
-
| [E1505](E1505.md) | Pass targets do not match | A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size than the pass, or the
|
|
116
|
+
| [E1505](E1505.md) | Pass targets do not match | A render pass draws into targets that one GPU render pass cannot hold together. A target can have another size or sample count than the pass, or the pass can name no target. |
|
|
93
117
|
| [E1506](E1506.md) | Feature draw after the first frame | A draw whose instance count the GPU writes was created after the engine recorded its first frame, on a device that draws its scene directly. The direct path counts every draw on the CPU and keeps no indirect draw, so the frame has nowhere to copy the count. The frame records no draw. |
|