rayzee 11.12.0 → 11.13.0

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.
Files changed (29) hide show
  1. package/dist/{ArchiveImporter-vUowipjh.js → ArchiveImporter-DQU55mit.js} +1322 -1290
  2. package/dist/{BidirectionalIntegrator-DPh6PSYb.js → BidirectionalIntegrator-CLmFjSN3.js} +2 -2
  3. package/dist/{NeuralRetouch-wwAwssFM.js → NeuralRetouch-CEkBhI1M.js} +1 -1
  4. package/dist/{NeuralSuperRes-DqV4v_gQ.js → NeuralSuperRes-Drjws9nE.js} +1 -1
  5. package/dist/{PathTracer-DW-ElMON.js → PathTracer-7a7L3cGF.js} +3448 -3404
  6. package/dist/{PhysicalSky-Ispr77Lf.js → PhysicalSky-DUIbTE93.js} +1 -1
  7. package/dist/{RayzeeRenderer-CPbY683A.js → RayzeeRenderer-CjjGT2e0.js} +340 -340
  8. package/dist/{SceneMetadata-BNA22-m3.js → SceneMetadata-CoAHTAmo.js} +1 -1
  9. package/dist/addons/archives.es.js +1 -1
  10. package/dist/addons/bidirectional.es.js +1 -1
  11. package/dist/addons/physical-sky.es.js +1 -1
  12. package/dist/rayzee-core.es.js +4 -4
  13. package/dist/rayzee.es.js +13 -13
  14. package/dist/rayzee.umd.js +110 -110
  15. package/dist/{sceneCachePolicy-BLvdjkVh.js → sceneCachePolicy-DavHt6Ii.js} +217 -185
  16. package/package.json +1 -1
  17. package/src/Processor/ArchiveImporter.js +25 -3
  18. package/src/Processor/AssetLoader.js +6 -4
  19. package/src/Processor/InstanceTable.js +36 -11
  20. package/src/Processor/PBRT/PBRTCurves.js +6 -3
  21. package/src/Processor/PBRT/PBRTSceneBuilder.js +26 -3
  22. package/src/Processor/PBRT/index.js +1 -0
  23. package/src/Processor/SceneProcessor.js +43 -5
  24. package/src/Processor/TLASBuilder.js +5 -4
  25. package/src/Processor/USD/USDScene.js +6 -1
  26. package/src/Processor/USD/index.js +2 -2
  27. package/src/Processor/utils.js +80 -1
  28. package/src/Stages/PathTracerStage.js +17 -6
  29. package/src/TSL/BVHTraversal.js +1 -1
@@ -1,4 +1,4 @@
1
- import { x as e } from "./sceneCachePolicy-BLvdjkVh.js";
1
+ import { x as e } from "./sceneCachePolicy-DavHt6Ii.js";
2
2
  import { DataTexture as t, LoaderUtils as n, RGBAFormat as r, UnsignedByteType as i } from "three";
3
3
  //#region src/Processor/archiveFormats.js
4
4
  var a = Object.freeze({
@@ -1,3 +1,3 @@
1
1
  import { n as e, t } from "../ZipReader-gDSWr0I5.js";
2
- import { n, t as r } from "../ArchiveImporter-vUowipjh.js";
2
+ import { n, t as r } from "../ArchiveImporter-DQU55mit.js";
3
3
  export { r as ARCHIVE_ELEMENT_PROMPT_BYTES, n as ArchiveImporter, t as openZip, e as readZipDirectory };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../BidirectionalIntegrator-DPh6PSYb.js";
1
+ import { t as e } from "../BidirectionalIntegrator-CLmFjSN3.js";
2
2
  export { e as BidirectionalIntegrator };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../PhysicalSky-Ispr77Lf.js";
1
+ import { t as e } from "../PhysicalSky-DUIbTE93.js";
2
2
  export { e as PhysicalSky };
@@ -1,12 +1,12 @@
1
1
  import "./SolarLimb-ZYl-Pwl0.js";
2
- import { a as e, n as t, o as n, r, t as i } from "./RayzeeRenderer-CPbY683A.js";
3
- import { Dt as a, mt as o } from "./PathTracer-DW-ElMON.js";
2
+ import { a as e, n as t, o as n, r, t as i } from "./RayzeeRenderer-CjjGT2e0.js";
3
+ import { Dt as a, mt as o } from "./PathTracer-7a7L3cGF.js";
4
4
  import { n as s, t as c } from "./EngineEvents-CLckhYbL.js";
5
- import { G as l, q as u, r as d, x as f, y as p } from "./sceneCachePolicy-BLvdjkVh.js";
5
+ import { G as l, q as u, r as d, x as f, y as p } from "./sceneCachePolicy-DavHt6Ii.js";
6
6
  import { i as m, n as h, r as g, t as _ } from "./Logger-dDDGj9Av.js";
7
7
  import { f as v } from "./BufferLayout-BROyMqO1.js";
8
8
  import { i as y, n as b, r as x, t as S } from "./EngineIssues-CfJiBaNj.js";
9
9
  import { n as C, t as w } from "./AssetConfig-DSEntE65.js";
10
10
  import { d as T, p as E, t as D, u as O } from "./ViewTransforms-CYN7bq2w.js";
11
- import { l as k, s as A } from "./SceneMetadata-BNA22-m3.js";
11
+ import { l as k, s as A } from "./SceneMetadata-CoAHTAmo.js";
12
12
  export { A as ARCHIVE_FORMATS, D as DEFAULT_VIEW, l as ENGINE_DEFAULTS, c as EngineEvents, S as EngineIssueError, b as ISSUE_CODES, x as ISSUE_SEVERITY, y as IssueLog, s as LEGACY_EVENT_NAMES, _ as LOG_LEVELS, r as LightManager, h as Logger, u as MATERIAL_DEFAULTS, a as MAX_RESERVABLE_RENDER_SIZE, i as RayzeeRenderer, e as RenderSettings, n as SETTING_SOURCE, o as SKY_DEFAULTS, v as TRIANGLE_DATA_LAYOUT, d as VERSION, w as configureAssets, p as configurePlatform, g as createLogger, t as describeAdapter, m as fmt, C as getAssetConfig, f as getPlatform, O as getViewTransform, T as listViewTransforms, k as localFolder, E as onRegistryChange };
package/dist/rayzee.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { t as e } from "./BidirectionalIntegrator-DPh6PSYb.js";
1
+ import { t as e } from "./BidirectionalIntegrator-CLmFjSN3.js";
2
2
  import { Ft as t, It as n, Tt as r, Zt as i, fn as a, in as o, nn as s, rt as c, tn as l } from "./SolarLimb-ZYl-Pwl0.js";
3
- import { _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./RayzeeRenderer-CPbY683A.js";
4
- import { $ as D, B as O, Dt as k, F as ee, H as te, I as ne, J as re, Mt as A, Ot as j, Q as M, V as ie, W as ae, _t as oe, at as se, bt as ce, dt as le, et as N, gt as ue, ht as de, it as fe, jt as pe, kt as me, mt as he, nt as ge, pt as _e, rt as ve, tt as ye, yt as be, z as xe } from "./PathTracer-DW-ElMON.js";
3
+ import { _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./RayzeeRenderer-CjjGT2e0.js";
4
+ import { $ as D, B as O, Dt as k, F as ee, H as te, I as ne, J as re, Mt as A, Ot as j, Q as M, V as ie, W as ae, _t as oe, at as se, bt as ce, dt as le, et as N, gt as ue, ht as de, it as fe, jt as pe, kt as me, mt as he, nt as ge, pt as _e, rt as ve, tt as ye, yt as be, z as xe } from "./PathTracer-7a7L3cGF.js";
5
5
  import { n as Se, t as P } from "./EngineEvents-CLckhYbL.js";
6
- import { D as Ce, G as we, J as Te, K as Ee, O as De, W as Oe, Y as ke, a as Ae, c as je, et as Me, i as Ne, m as Pe, ot as Fe, p as Ie, q as Le, r as Re, tt as ze, x as Be, y as Ve } from "./sceneCachePolicy-BLvdjkVh.js";
6
+ import { D as Ce, G as we, J as Te, K as Ee, O as De, W as Oe, Y as ke, a as Ae, c as je, ct as Me, i as Ne, m as Pe, nt as Fe, p as Ie, q as Le, r as Re, tt as ze, x as Be, y as Ve } from "./sceneCachePolicy-DavHt6Ii.js";
7
7
  import { i as He, n as Ue, r as We, t as Ge } from "./Logger-dDDGj9Av.js";
8
8
  import { f as Ke, r as qe } from "./BufferLayout-BROyMqO1.js";
9
9
  import { i as Je, n as Ye, r as Xe, t as Ze } from "./EngineIssues-CfJiBaNj.js";
@@ -13,14 +13,14 @@ import { i as tt, r as nt, t as rt } from "./ActiveColor-YvuQq44O.js";
13
13
  import { n as it, t as at } from "./AssetConfig-DSEntE65.js";
14
14
  import { a as ot, d as st, g as ct, i as lt, l as ut, o as dt, p as ft, r as pt, s as mt, t as ht, u as gt } from "./ViewTransforms-CYN7bq2w.js";
15
15
  import { a as _t, i as vt, n as yt, r as bt } from "./identity-C1cLD1C0.js";
16
- import { l as xt, n as St, s as Ct, t as wt } from "./SceneMetadata-BNA22-m3.js";
16
+ import { l as xt, n as St, s as Ct, t as wt } from "./SceneMetadata-CoAHTAmo.js";
17
17
  import { t as Tt } from "./ToneMapGPU-4GPwoG_c.js";
18
18
  import { t as Et } from "./FileFormats-sPGJeCRc.js";
19
19
  import { A as Dt, C as Ot, D as kt, E as At, F as jt, M as Mt, N as Nt, O as Pt, P as Ft, S as It, T as Lt, _ as Rt, a as zt, b as Bt, c as Vt, d as Ht, f as Ut, g as Wt, h as Gt, i as Kt, j as qt, k as Jt, l as Yt, m as Xt, n as Zt, o as Qt, p as $t, r as en, s as tn, t as nn, u as rn, v as an, w as on, x as sn, y as cn } from "./ColorManagement-3xw0xXRg.js";
20
20
  import { c as ln, l as un, n as dn, o as fn, t as pn } from "./openStorage-CdyVjmps.js";
21
21
  import { n as mn, t as hn } from "./ZipReader-gDSWr0I5.js";
22
- import { i as gn, n as _n, r as vn } from "./NeuralSuperRes-DqV4v_gQ.js";
23
- import { i as yn, n as bn, r as xn } from "./NeuralRetouch-wwAwssFM.js";
22
+ import { i as gn, n as _n, r as vn } from "./NeuralSuperRes-Drjws9nE.js";
23
+ import { i as yn, n as bn, r as xn } from "./NeuralRetouch-CEkBhI1M.js";
24
24
  import { ExternalTexture as Sn, MeshBasicNodeMaterial as Cn, QuadMesh as wn, ReadbackBuffer as Tn, RenderTarget as En, StorageTexture as Dn, TextureNode as On, WebGPURenderer as kn } from "three/webgpu";
25
25
  import { Fn as An, If as F, Loop as jn, Return as Mn, atan as Nn, atomicAdd as Pn, atomicLoad as Fn, atomicStore as In, attributeArray as Ln, dot as I, exp as Rn, exp2 as zn, float as L, floatBitsToUint as Bn, floor as Vn, fract as Hn, int as R, ivec2 as Un, localId as z, log2 as Wn, max as B, min as Gn, mix as V, normalize as Kn, pow as qn, round as Jn, saturate as H, select as U, smoothstep as Yn, sqrt as Xn, storage as Zn, textureLoad as W, textureStore as G, toneMappingExposure as Qn, uint as K, uniform as q, uvec2 as $n, uvec4 as er, vec2 as J, vec3 as tr, vec4 as Y, workgroupArray as nr, workgroupBarrier as rr, workgroupId as X } from "three/tsl";
26
26
  import { ACESFilmicToneMapping as ir, AddEquation as ar, AnimationMixer as or, Box2 as sr, Box3 as cr, ClampToEdgeWrapping as lr, Color as ur, Controls as dr, CustomBlending as fr, DataArrayTexture as pr, DataTexture as mr, EventDispatcher as hr, FloatType as gr, HalfFloatType as _r, InterpolateSmooth as vr, LinearFilter as yr, LoopOnce as br, LoopRepeat as xr, MathUtils as Sr, Matrix3 as Cr, Matrix4 as wr, Mesh as Tr, MeshBasicMaterial as Er, NearestFilter as Z, NoColorSpace as Dr, NumberKeyframeTrack as Or, OneFactor as kr, OrthographicCamera as Ar, PerspectiveCamera as jr, PropertyBinding as Mr, Quaternion as Nr, RGBAFormat as Pr, Raycaster as Fr, RedIntegerFormat as Ir, SRGBColorSpace as Lr, Scene as Rr, SphereGeometry as zr, Timer as Br, UnsignedByteType as Vr, UnsignedIntType as Hr, Vector2 as Ur, Vector3 as Q, Vector4 as Wr, VectorKeyframeTrack as Gr } from "three";
@@ -4458,9 +4458,9 @@ var As = {
4458
4458
  }
4459
4459
  this._neuralPostBusy = !0, this.dispatchEvent({ type: P.UPSCALING_START });
4460
4460
  try {
4461
- let i = await import("./NeuralSuperRes-DqV4v_gQ.js").then((e) => e.t);
4461
+ let i = await import("./NeuralSuperRes-Drjws9nE.js").then((e) => e.t);
4462
4462
  this._superResModule = i;
4463
- let a = n ? await import("./NeuralRetouch-wwAwssFM.js").then((e) => e.t) : null, o = this.denoiser?._outTexSize, s = (o?.width ?? 0) * (o?.height ?? 0), c = n && s <= a.RETOUCH_MAX_PIXELS;
4463
+ let a = n ? await import("./NeuralRetouch-CEkBhI1M.js").then((e) => e.t) : null, o = this.denoiser?._outTexSize, s = (o?.width ?? 0) * (o?.height ?? 0), c = n && s <= a.RETOUCH_MAX_PIXELS;
4464
4464
  if (n && !c && (Ms.warn(`Neural rendering skipped: the render is ${(s / 1e6).toFixed(1)} MP, above the ${(a.RETOUCH_MAX_PIXELS / 1e6).toFixed(1)} MP the pass survives.` + (t ? " The upscale still ran." : "")), this._releaseNeuralRetouch()), !t && !c) {
4465
4465
  r && !this._postCancelled && await this.upscaler.start();
4466
4466
  return;
@@ -4776,7 +4776,7 @@ var Js = 4096, Ys = class {
4776
4776
  this._visible !== e && (this._visible = e, this.canvas.style.display = e ? "" : "none");
4777
4777
  }
4778
4778
  dispose() {
4779
- Me(this.renderer), this.renderer = null, this.canvas.parentElement?.removeChild(this.canvas);
4779
+ ze(this.renderer), this.renderer = null, this.canvas.parentElement?.removeChild(this.canvas);
4780
4780
  }
4781
4781
  }, Xs = We("overlay"), Zs = (e, t) => e.visible && e.layer === t && e.render, Qs = class {
4782
4782
  constructor(e) {
@@ -5456,7 +5456,7 @@ var _c = We("engine"), vc = class extends T {
5456
5456
  }), this.cameraManager.camera;
5457
5457
  }
5458
5458
  _initAssetPipeline() {
5459
- super._initAssetPipeline(), this.assetLoader.controls = this.cameraManager.controls, this.assetLoader.registerFormat(...Et), this.assetLoader.setArchiveImporterLoader(() => import("./ArchiveImporter-vUowipjh.js").then((e) => e.r).then((e) => new e.ArchiveImporter(this.assetLoader)), Ct);
5459
+ super._initAssetPipeline(), this.assetLoader.controls = this.cameraManager.controls, this.assetLoader.registerFormat(...Et), this.assetLoader.setArchiveImporterLoader(() => import("./ArchiveImporter-DQU55mit.js").then((e) => e.r).then((e) => new e.ArchiveImporter(this.assetLoader)), Ct);
5460
5460
  let e = () => {
5461
5461
  this.needsReset = !0, this.stages.pathTracer?.enterInteractionMode(), this.wake();
5462
5462
  };
@@ -5479,7 +5479,7 @@ var _c = We("engine"), vc = class extends T {
5479
5479
  super._initPipeline(), this.pipeline.eventBus.on("pathtracer:interactionStart", () => this._requestRenderScale(this._interactionRenderScale())), this.pipeline.eventBus.on("pathtracer:interactionEnd", () => this._applyRenderScale(1));
5480
5480
  }
5481
5481
  async _initManagers() {
5482
- await super._initManagers(), this.environmentManager.setProceduralSkyLoader(() => import("./PhysicalSky-Ispr77Lf.js").then((e) => e.n).then((e) => e.PhysicalSky)), this.stages.pathTracer.registerIntegrator(["bidirectional", "vcm"], (t) => new e(t)), this.stages.pathTracer.requestOutput("gBuffer"), this.interactionManager = new Qa({
5482
+ await super._initManagers(), this.environmentManager.setProceduralSkyLoader(() => import("./PhysicalSky-DUIbTE93.js").then((e) => e.n).then((e) => e.PhysicalSky)), this.stages.pathTracer.registerIntegrator(["bidirectional", "vcm"], (t) => new e(t)), this.stages.pathTracer.requestOutput("gBuffer"), this.interactionManager = new Qa({
5483
5483
  scene: this.meshScene,
5484
5484
  camera: this.camera,
5485
5485
  canvas: this.canvas,
@@ -6025,7 +6025,7 @@ var Cc = class {
6025
6025
  await n;
6026
6026
  continue;
6027
6027
  }
6028
- e.cameraManager.camera.updateMatrixWorld(), e.pipeline.render(), t.frameCount % 4 == 0 && (Fe({ samples: ze(t) }), await new Promise((e) => setTimeout(e, 0)));
6028
+ e.cameraManager.camera.updateMatrixWorld(), e.pipeline.render(), t.frameCount % 4 == 0 && (Me({ samples: Fe(t) }), await new Promise((e) => setTimeout(e, 0)));
6029
6029
  }
6030
6030
  }
6031
6031
  _waitForDenoise(e) {