@playcanvas/supersplat-viewer 1.25.0 → 1.26.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.
- package/README.md +2 -2
- package/dist/index.js +3 -3
- package/package.json +4 -4
- package/public/index.css +64 -0
- package/public/index.html +114 -102
- package/public/index.js +807 -63
- package/public/index.js.map +1 -1
package/public/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const TRACEID_GPU_TIMINGS = 'GpuTimings';
|
|
2
2
|
|
|
3
|
-
const version$1 = '2.19.0-preview.
|
|
4
|
-
const revision = '
|
|
3
|
+
const version$1 = '2.19.0-preview.2';
|
|
4
|
+
const revision = '40bc881';
|
|
5
5
|
function extend(target, ex) {
|
|
6
6
|
for(const prop in ex){
|
|
7
7
|
const copy = ex[prop];
|
|
@@ -47765,7 +47765,6 @@ var skyboxVS = `
|
|
|
47765
47765
|
|
|
47766
47766
|
var sortIndirectArgsCS = `
|
|
47767
47767
|
fn writeSortIndirectArgs(
|
|
47768
|
-
buf: ptr<storage, array<u32>, read_write>,
|
|
47769
47768
|
baseSlot: u32,
|
|
47770
47769
|
count: u32,
|
|
47771
47770
|
slotInfo: vec4<u32>
|
|
@@ -47775,25 +47774,25 @@ fn writeSortIndirectArgs(
|
|
|
47775
47774
|
let g = slotInfo.y;
|
|
47776
47775
|
let wc = (count + g - 1u) / g;
|
|
47777
47776
|
let off = baseSlot * 3u;
|
|
47778
|
-
|
|
47779
|
-
|
|
47780
|
-
|
|
47777
|
+
indirectDispatchArgs[off + 0u] = wc;
|
|
47778
|
+
indirectDispatchArgs[off + 1u] = 1u;
|
|
47779
|
+
indirectDispatchArgs[off + 2u] = 1u;
|
|
47781
47780
|
}
|
|
47782
47781
|
if (n >= 2u) {
|
|
47783
47782
|
let g = slotInfo.z;
|
|
47784
47783
|
let wc = (count + g - 1u) / g;
|
|
47785
47784
|
let off = (baseSlot + 1u) * 3u;
|
|
47786
|
-
|
|
47787
|
-
|
|
47788
|
-
|
|
47785
|
+
indirectDispatchArgs[off + 0u] = wc;
|
|
47786
|
+
indirectDispatchArgs[off + 1u] = 1u;
|
|
47787
|
+
indirectDispatchArgs[off + 2u] = 1u;
|
|
47789
47788
|
}
|
|
47790
47789
|
if (n >= 3u) {
|
|
47791
47790
|
let g = slotInfo.w;
|
|
47792
47791
|
let wc = (count + g - 1u) / g;
|
|
47793
47792
|
let off = (baseSlot + 2u) * 3u;
|
|
47794
|
-
|
|
47795
|
-
|
|
47796
|
-
|
|
47793
|
+
indirectDispatchArgs[off + 0u] = wc;
|
|
47794
|
+
indirectDispatchArgs[off + 1u] = 1u;
|
|
47795
|
+
indirectDispatchArgs[off + 2u] = 1u;
|
|
47797
47796
|
}
|
|
47798
47797
|
}
|
|
47799
47798
|
`;
|
|
@@ -56996,7 +56995,7 @@ fn main() {
|
|
|
56996
56995
|
);
|
|
56997
56996
|
numSplatsBuf[0] = count;
|
|
56998
56997
|
sortElementCountBuf[0] = count;
|
|
56999
|
-
writeSortIndirectArgs(
|
|
56998
|
+
writeSortIndirectArgs(uniforms.sortSlotBase, count, uniforms.sortIndirectInfo);
|
|
57000
56999
|
}
|
|
57001
57000
|
`;
|
|
57002
57001
|
|
|
@@ -58533,7 +58532,7 @@ fn main(@builtin(global_invocation_id) gid: vec3u) {
|
|
|
58533
58532
|
indirectDispatchArgs[keygenOffset + 0u] = keygenDim.x;
|
|
58534
58533
|
indirectDispatchArgs[keygenOffset + 1u] = keygenDim.y;
|
|
58535
58534
|
indirectDispatchArgs[keygenOffset + 2u] = 1u;
|
|
58536
|
-
writeSortIndirectArgs(
|
|
58535
|
+
writeSortIndirectArgs(keygenSlot + 1u, count, uniforms.sortIndirectInfo);
|
|
58537
58536
|
sortElementCountBuf[0] = count;
|
|
58538
58537
|
}
|
|
58539
58538
|
`;
|
|
@@ -77652,6 +77651,713 @@ const observe = (events, target) => {
|
|
|
77652
77651
|
});
|
|
77653
77652
|
};
|
|
77654
77653
|
|
|
77654
|
+
var deJson = {
|
|
77655
|
+
"settings.performance-mode": "Leistungsmodus",
|
|
77656
|
+
"settings.gaming-controls": "Gaming-Steuerung",
|
|
77657
|
+
"settings.frame": "Einpassen",
|
|
77658
|
+
"settings.reset": "Zurücksetzen",
|
|
77659
|
+
"tooltip.play": "Wiedergabe",
|
|
77660
|
+
"tooltip.pause": "Pause",
|
|
77661
|
+
"tooltip.orbit-camera": "Umlaufkamera",
|
|
77662
|
+
"tooltip.fly-camera": "Flugkamera",
|
|
77663
|
+
"tooltip.walk-mode": "Gehmodus",
|
|
77664
|
+
"tooltip.reset-camera": "Kamera zurücksetzen",
|
|
77665
|
+
"tooltip.frame-scene": "Szene einpassen",
|
|
77666
|
+
"tooltip.show-collision": "Kollision anzeigen",
|
|
77667
|
+
"tooltip.settings": "Einstellungen",
|
|
77668
|
+
"tooltip.help": "Hilfe",
|
|
77669
|
+
"tooltip.enter-ar": "AR starten",
|
|
77670
|
+
"tooltip.enter-vr": "VR starten",
|
|
77671
|
+
"tooltip.fullscreen": "Vollbild",
|
|
77672
|
+
"help.tab.desktop": "Desktop",
|
|
77673
|
+
"help.tab.touch": "Touch",
|
|
77674
|
+
"help.section.orbit": "Umlaufmodus",
|
|
77675
|
+
"help.section.fly": "Flugmodus",
|
|
77676
|
+
"help.section.walk": "Gehmodus",
|
|
77677
|
+
"help.section.modes": "Modus wechseln",
|
|
77678
|
+
"help.action.orbit": "Umkreisen",
|
|
77679
|
+
"help.action.pan": "Schwenken",
|
|
77680
|
+
"help.action.zoom": "Zoomen",
|
|
77681
|
+
"help.action.set-focus": "Fokus setzen",
|
|
77682
|
+
"help.action.fly-to": "Fliegen zu",
|
|
77683
|
+
"help.action.fly-to-point": "Zum Punkt fliegen",
|
|
77684
|
+
"help.action.walk-to": "Gehen zu",
|
|
77685
|
+
"help.action.look-around": "Umsehen",
|
|
77686
|
+
"help.action.move": "Bewegen",
|
|
77687
|
+
"help.action.vertical": "Vertikal",
|
|
77688
|
+
"help.action.jump": "Springen",
|
|
77689
|
+
"help.action.run-slow": "Rennen / Gehen",
|
|
77690
|
+
"help.action.focus-point": "Fokuspunkt",
|
|
77691
|
+
"help.action.frame-scene": "Szene einpassen",
|
|
77692
|
+
"help.action.reset-camera": "Kamera zurücksetzen",
|
|
77693
|
+
"help.action.orbit-mode": "Umlaufmodus",
|
|
77694
|
+
"help.action.fly-mode": "Flugmodus",
|
|
77695
|
+
"help.action.toggle-walk": "Gehen umschalten",
|
|
77696
|
+
"help.action.toggle-gaming": "Gaming-Steuerung umschalten",
|
|
77697
|
+
"help.action.show-collision": "Kollision anzeigen",
|
|
77698
|
+
"help.action.play-pause": "Wiedergabe / Pause",
|
|
77699
|
+
"help.action.toggle-help": "Hilfe umschalten",
|
|
77700
|
+
"help.action.exit-cancel": "Beenden / Abbrechen",
|
|
77701
|
+
"help.key.left-click": "Linksklick",
|
|
77702
|
+
"help.key.left-click-drag": "Linksklick + Ziehen",
|
|
77703
|
+
"help.key.right-click-drag": "Rechtsklick + Ziehen",
|
|
77704
|
+
"help.key.mouse-wheel": "Mausrad",
|
|
77705
|
+
"help.key.mouse": "Maus",
|
|
77706
|
+
"help.key.double-click": "Doppelklick",
|
|
77707
|
+
"help.key.double-tap": "Doppeltippen",
|
|
77708
|
+
"help.key.tap": "Tippen",
|
|
77709
|
+
"help.key.touch-drag": "Berühren + Ziehen",
|
|
77710
|
+
"help.key.one-finger-drag": "Mit einem Finger ziehen",
|
|
77711
|
+
"help.key.two-finger-drag": "Mit zwei Fingern ziehen",
|
|
77712
|
+
"help.key.pinch": "Zwei-Finger-Zoom",
|
|
77713
|
+
"help.key.pinch-two-finger": "Zwei-Finger-Zoom / Ziehen",
|
|
77714
|
+
"help.key.joystick": "Joystick",
|
|
77715
|
+
"help.key.shift-ctrl": "Umschalt / Strg",
|
|
77716
|
+
"help.key.space": "Leertaste",
|
|
77717
|
+
"help.key.esc": "Esc",
|
|
77718
|
+
"xr-modal.title": "WebGL erforderlich",
|
|
77719
|
+
"xr-modal.message": "AR und VR werden vom WebGPU-Renderer nicht unterstützt. Mit OK wird der Viewer mit WebGL neu geladen.",
|
|
77720
|
+
"xr-modal.cancel": "Abbrechen",
|
|
77721
|
+
"xr-modal.ok": "OK",
|
|
77722
|
+
"walk-hint.desktop": "Zum Gehen klicken. WASD für freie Bewegung.",
|
|
77723
|
+
"walk-hint.touch-tap": "Zum Gehen tippen. Ziehen, um sich umzusehen.",
|
|
77724
|
+
"walk-hint.touch-gaming": "Mit dem Joystick bewegen. Ziehen, um sich umzusehen. Zum Springen tippen."
|
|
77725
|
+
};
|
|
77726
|
+
|
|
77727
|
+
var enJson = {
|
|
77728
|
+
"settings.performance-mode": "Performance Mode",
|
|
77729
|
+
"settings.gaming-controls": "Gaming Controls",
|
|
77730
|
+
"settings.frame": "Frame",
|
|
77731
|
+
"settings.reset": "Reset",
|
|
77732
|
+
"tooltip.play": "Play",
|
|
77733
|
+
"tooltip.pause": "Pause",
|
|
77734
|
+
"tooltip.orbit-camera": "Orbit Camera",
|
|
77735
|
+
"tooltip.fly-camera": "Fly Camera",
|
|
77736
|
+
"tooltip.walk-mode": "Walk Mode",
|
|
77737
|
+
"tooltip.reset-camera": "Reset Camera",
|
|
77738
|
+
"tooltip.frame-scene": "Frame Scene",
|
|
77739
|
+
"tooltip.show-collision": "Show Collision",
|
|
77740
|
+
"tooltip.settings": "Settings",
|
|
77741
|
+
"tooltip.help": "Help",
|
|
77742
|
+
"tooltip.enter-ar": "Enter AR",
|
|
77743
|
+
"tooltip.enter-vr": "Enter VR",
|
|
77744
|
+
"tooltip.fullscreen": "Fullscreen",
|
|
77745
|
+
"help.tab.desktop": "Desktop",
|
|
77746
|
+
"help.tab.touch": "Touch",
|
|
77747
|
+
"help.section.orbit": "Orbit Mode",
|
|
77748
|
+
"help.section.fly": "Fly Mode",
|
|
77749
|
+
"help.section.walk": "Walk Mode",
|
|
77750
|
+
"help.section.modes": "Mode Switching",
|
|
77751
|
+
"help.action.orbit": "Orbit",
|
|
77752
|
+
"help.action.pan": "Pan",
|
|
77753
|
+
"help.action.zoom": "Zoom",
|
|
77754
|
+
"help.action.set-focus": "Set Focus",
|
|
77755
|
+
"help.action.fly-to": "Fly To",
|
|
77756
|
+
"help.action.fly-to-point": "Fly to Point",
|
|
77757
|
+
"help.action.walk-to": "Walk To",
|
|
77758
|
+
"help.action.look-around": "Look Around",
|
|
77759
|
+
"help.action.move": "Move",
|
|
77760
|
+
"help.action.vertical": "Vertical",
|
|
77761
|
+
"help.action.jump": "Jump",
|
|
77762
|
+
"help.action.run-slow": "Run / Slow",
|
|
77763
|
+
"help.action.focus-point": "Focus Point",
|
|
77764
|
+
"help.action.frame-scene": "Frame Scene",
|
|
77765
|
+
"help.action.reset-camera": "Reset Camera",
|
|
77766
|
+
"help.action.orbit-mode": "Orbit Mode",
|
|
77767
|
+
"help.action.fly-mode": "Fly Mode",
|
|
77768
|
+
"help.action.toggle-walk": "Toggle Walk",
|
|
77769
|
+
"help.action.toggle-gaming": "Toggle Gaming Controls",
|
|
77770
|
+
"help.action.show-collision": "Show Collision",
|
|
77771
|
+
"help.action.play-pause": "Play / Pause",
|
|
77772
|
+
"help.action.toggle-help": "Toggle Help",
|
|
77773
|
+
"help.action.exit-cancel": "Exit / Cancel",
|
|
77774
|
+
"help.key.left-click": "Left Click",
|
|
77775
|
+
"help.key.left-click-drag": "Left Click + Drag",
|
|
77776
|
+
"help.key.right-click-drag": "Right Click + Drag",
|
|
77777
|
+
"help.key.mouse-wheel": "Mouse Wheel",
|
|
77778
|
+
"help.key.mouse": "Mouse",
|
|
77779
|
+
"help.key.double-click": "Double-click",
|
|
77780
|
+
"help.key.double-tap": "Double-tap",
|
|
77781
|
+
"help.key.tap": "Tap",
|
|
77782
|
+
"help.key.touch-drag": "Touch + Drag",
|
|
77783
|
+
"help.key.one-finger-drag": "One Finger Drag",
|
|
77784
|
+
"help.key.two-finger-drag": "Two Finger Drag",
|
|
77785
|
+
"help.key.pinch": "Pinch",
|
|
77786
|
+
"help.key.pinch-two-finger": "Pinch / Two Finger Drag",
|
|
77787
|
+
"help.key.joystick": "Joystick",
|
|
77788
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
77789
|
+
"help.key.space": "Space",
|
|
77790
|
+
"help.key.esc": "Esc",
|
|
77791
|
+
"xr-modal.title": "WebGL Required",
|
|
77792
|
+
"xr-modal.message": "AR and VR are not supported on the WebGPU renderer. Pressing OK will reload the viewer with WebGL.",
|
|
77793
|
+
"xr-modal.cancel": "Cancel",
|
|
77794
|
+
"xr-modal.ok": "OK",
|
|
77795
|
+
"walk-hint.desktop": "Click to walk. WASD to move freely.",
|
|
77796
|
+
"walk-hint.touch-tap": "Tap to walk. Drag to look around.",
|
|
77797
|
+
"walk-hint.touch-gaming": "Use the joystick to move. Drag to look around. Tap to jump."
|
|
77798
|
+
};
|
|
77799
|
+
|
|
77800
|
+
var esJson = {
|
|
77801
|
+
"settings.performance-mode": "Modo rendimiento",
|
|
77802
|
+
"settings.gaming-controls": "Controles de juego",
|
|
77803
|
+
"settings.frame": "Encuadrar",
|
|
77804
|
+
"settings.reset": "Restablecer",
|
|
77805
|
+
"tooltip.play": "Reproducir",
|
|
77806
|
+
"tooltip.pause": "Pausar",
|
|
77807
|
+
"tooltip.orbit-camera": "Cámara orbital",
|
|
77808
|
+
"tooltip.fly-camera": "Cámara de vuelo",
|
|
77809
|
+
"tooltip.walk-mode": "Modo caminar",
|
|
77810
|
+
"tooltip.reset-camera": "Restablecer cámara",
|
|
77811
|
+
"tooltip.frame-scene": "Encuadrar escena",
|
|
77812
|
+
"tooltip.show-collision": "Mostrar colisión",
|
|
77813
|
+
"tooltip.settings": "Ajustes",
|
|
77814
|
+
"tooltip.help": "Ayuda",
|
|
77815
|
+
"tooltip.enter-ar": "Entrar en AR",
|
|
77816
|
+
"tooltip.enter-vr": "Entrar en VR",
|
|
77817
|
+
"tooltip.fullscreen": "Pantalla completa",
|
|
77818
|
+
"help.tab.desktop": "Escritorio",
|
|
77819
|
+
"help.tab.touch": "Táctil",
|
|
77820
|
+
"help.section.orbit": "Modo orbital",
|
|
77821
|
+
"help.section.fly": "Modo vuelo",
|
|
77822
|
+
"help.section.walk": "Modo caminar",
|
|
77823
|
+
"help.section.modes": "Cambio de modo",
|
|
77824
|
+
"help.action.orbit": "Orbitar",
|
|
77825
|
+
"help.action.pan": "Desplazar",
|
|
77826
|
+
"help.action.zoom": "Zoom",
|
|
77827
|
+
"help.action.set-focus": "Fijar foco",
|
|
77828
|
+
"help.action.fly-to": "Volar a",
|
|
77829
|
+
"help.action.fly-to-point": "Volar al punto",
|
|
77830
|
+
"help.action.walk-to": "Caminar a",
|
|
77831
|
+
"help.action.look-around": "Mirar alrededor",
|
|
77832
|
+
"help.action.move": "Mover",
|
|
77833
|
+
"help.action.vertical": "Vertical",
|
|
77834
|
+
"help.action.jump": "Saltar",
|
|
77835
|
+
"help.action.run-slow": "Correr / Lento",
|
|
77836
|
+
"help.action.focus-point": "Punto focal",
|
|
77837
|
+
"help.action.frame-scene": "Encuadrar escena",
|
|
77838
|
+
"help.action.reset-camera": "Restablecer cámara",
|
|
77839
|
+
"help.action.orbit-mode": "Modo orbital",
|
|
77840
|
+
"help.action.fly-mode": "Modo vuelo",
|
|
77841
|
+
"help.action.toggle-walk": "Alternar caminar",
|
|
77842
|
+
"help.action.toggle-gaming": "Alternar controles de juego",
|
|
77843
|
+
"help.action.show-collision": "Mostrar colisión",
|
|
77844
|
+
"help.action.play-pause": "Reproducir / Pausar",
|
|
77845
|
+
"help.action.toggle-help": "Alternar ayuda",
|
|
77846
|
+
"help.action.exit-cancel": "Salir / Cancelar",
|
|
77847
|
+
"help.key.left-click": "Clic izquierdo",
|
|
77848
|
+
"help.key.left-click-drag": "Clic izquierdo + arrastrar",
|
|
77849
|
+
"help.key.right-click-drag": "Clic derecho + arrastrar",
|
|
77850
|
+
"help.key.mouse-wheel": "Rueda del ratón",
|
|
77851
|
+
"help.key.mouse": "Ratón",
|
|
77852
|
+
"help.key.double-click": "Doble clic",
|
|
77853
|
+
"help.key.double-tap": "Doble toque",
|
|
77854
|
+
"help.key.tap": "Toque",
|
|
77855
|
+
"help.key.touch-drag": "Toque + arrastrar",
|
|
77856
|
+
"help.key.one-finger-drag": "Arrastre con un dedo",
|
|
77857
|
+
"help.key.two-finger-drag": "Arrastre con dos dedos",
|
|
77858
|
+
"help.key.pinch": "Pellizcar",
|
|
77859
|
+
"help.key.pinch-two-finger": "Pellizcar / Arrastre con dos dedos",
|
|
77860
|
+
"help.key.joystick": "Joystick",
|
|
77861
|
+
"help.key.shift-ctrl": "Mayús / Ctrl",
|
|
77862
|
+
"help.key.space": "Espacio",
|
|
77863
|
+
"help.key.esc": "Esc",
|
|
77864
|
+
"xr-modal.title": "Se requiere WebGL",
|
|
77865
|
+
"xr-modal.message": "AR y VR no son compatibles con el renderizador WebGPU. Al pulsar OK se recargará el visor con WebGL.",
|
|
77866
|
+
"xr-modal.cancel": "Cancelar",
|
|
77867
|
+
"xr-modal.ok": "OK",
|
|
77868
|
+
"walk-hint.desktop": "Haz clic para caminar. WASD para moverte libremente.",
|
|
77869
|
+
"walk-hint.touch-tap": "Toca para caminar. Arrastra para mirar alrededor.",
|
|
77870
|
+
"walk-hint.touch-gaming": "Usa el joystick para moverte. Arrastra para mirar. Toca para saltar."
|
|
77871
|
+
};
|
|
77872
|
+
|
|
77873
|
+
var frJson = {
|
|
77874
|
+
"settings.performance-mode": "Mode performance",
|
|
77875
|
+
"settings.gaming-controls": "Commandes de jeu",
|
|
77876
|
+
"settings.frame": "Cadrer",
|
|
77877
|
+
"settings.reset": "Réinitialiser",
|
|
77878
|
+
"tooltip.play": "Lecture",
|
|
77879
|
+
"tooltip.pause": "Pause",
|
|
77880
|
+
"tooltip.orbit-camera": "Caméra orbitale",
|
|
77881
|
+
"tooltip.fly-camera": "Caméra volante",
|
|
77882
|
+
"tooltip.walk-mode": "Mode marche",
|
|
77883
|
+
"tooltip.reset-camera": "Réinitialiser la caméra",
|
|
77884
|
+
"tooltip.frame-scene": "Cadrer la scène",
|
|
77885
|
+
"tooltip.show-collision": "Afficher les collisions",
|
|
77886
|
+
"tooltip.settings": "Paramètres",
|
|
77887
|
+
"tooltip.help": "Aide",
|
|
77888
|
+
"tooltip.enter-ar": "Entrer en AR",
|
|
77889
|
+
"tooltip.enter-vr": "Entrer en VR",
|
|
77890
|
+
"tooltip.fullscreen": "Plein écran",
|
|
77891
|
+
"help.tab.desktop": "Bureau",
|
|
77892
|
+
"help.tab.touch": "Tactile",
|
|
77893
|
+
"help.section.orbit": "Mode orbital",
|
|
77894
|
+
"help.section.fly": "Mode vol",
|
|
77895
|
+
"help.section.walk": "Mode marche",
|
|
77896
|
+
"help.section.modes": "Changement de mode",
|
|
77897
|
+
"help.action.orbit": "Orbiter",
|
|
77898
|
+
"help.action.pan": "Panoramique",
|
|
77899
|
+
"help.action.zoom": "Zoom",
|
|
77900
|
+
"help.action.set-focus": "Définir le focus",
|
|
77901
|
+
"help.action.fly-to": "Voler vers",
|
|
77902
|
+
"help.action.fly-to-point": "Voler vers le point",
|
|
77903
|
+
"help.action.walk-to": "Marcher vers",
|
|
77904
|
+
"help.action.look-around": "Regarder autour",
|
|
77905
|
+
"help.action.move": "Se déplacer",
|
|
77906
|
+
"help.action.vertical": "Vertical",
|
|
77907
|
+
"help.action.jump": "Sauter",
|
|
77908
|
+
"help.action.run-slow": "Courir / Lent",
|
|
77909
|
+
"help.action.focus-point": "Point focal",
|
|
77910
|
+
"help.action.frame-scene": "Cadrer la scène",
|
|
77911
|
+
"help.action.reset-camera": "Réinitialiser la caméra",
|
|
77912
|
+
"help.action.orbit-mode": "Mode orbital",
|
|
77913
|
+
"help.action.fly-mode": "Mode vol",
|
|
77914
|
+
"help.action.toggle-walk": "Basculer la marche",
|
|
77915
|
+
"help.action.toggle-gaming": "Basculer les commandes de jeu",
|
|
77916
|
+
"help.action.show-collision": "Afficher les collisions",
|
|
77917
|
+
"help.action.play-pause": "Lecture / Pause",
|
|
77918
|
+
"help.action.toggle-help": "Basculer l'aide",
|
|
77919
|
+
"help.action.exit-cancel": "Quitter / Annuler",
|
|
77920
|
+
"help.key.left-click": "Clic gauche",
|
|
77921
|
+
"help.key.left-click-drag": "Clic gauche + glisser",
|
|
77922
|
+
"help.key.right-click-drag": "Clic droit + glisser",
|
|
77923
|
+
"help.key.mouse-wheel": "Molette",
|
|
77924
|
+
"help.key.mouse": "Souris",
|
|
77925
|
+
"help.key.double-click": "Double clic",
|
|
77926
|
+
"help.key.double-tap": "Double tape",
|
|
77927
|
+
"help.key.tap": "Tape",
|
|
77928
|
+
"help.key.touch-drag": "Toucher + glisser",
|
|
77929
|
+
"help.key.one-finger-drag": "Glisser à un doigt",
|
|
77930
|
+
"help.key.two-finger-drag": "Glisser à deux doigts",
|
|
77931
|
+
"help.key.pinch": "Pincer",
|
|
77932
|
+
"help.key.pinch-two-finger": "Pincer / Glisser à deux doigts",
|
|
77933
|
+
"help.key.joystick": "Joystick",
|
|
77934
|
+
"help.key.shift-ctrl": "Maj / Ctrl",
|
|
77935
|
+
"help.key.space": "Espace",
|
|
77936
|
+
"help.key.esc": "Échap",
|
|
77937
|
+
"xr-modal.title": "WebGL requis",
|
|
77938
|
+
"xr-modal.message": "L'AR et la VR ne sont pas prises en charge par le moteur de rendu WebGPU. Cliquer sur OK rechargera le visualiseur avec WebGL.",
|
|
77939
|
+
"xr-modal.cancel": "Annuler",
|
|
77940
|
+
"xr-modal.ok": "OK",
|
|
77941
|
+
"walk-hint.desktop": "Cliquez pour marcher. WASD pour vous déplacer librement.",
|
|
77942
|
+
"walk-hint.touch-tap": "Tapez pour marcher. Glissez pour regarder autour.",
|
|
77943
|
+
"walk-hint.touch-gaming": "Utilisez le joystick pour vous déplacer. Glissez pour regarder. Tapez pour sauter."
|
|
77944
|
+
};
|
|
77945
|
+
|
|
77946
|
+
var jaJson = {
|
|
77947
|
+
"settings.performance-mode": "パフォーマンスモード",
|
|
77948
|
+
"settings.gaming-controls": "ゲームコントロール",
|
|
77949
|
+
"settings.frame": "フィット",
|
|
77950
|
+
"settings.reset": "リセット",
|
|
77951
|
+
"tooltip.play": "再生",
|
|
77952
|
+
"tooltip.pause": "一時停止",
|
|
77953
|
+
"tooltip.orbit-camera": "オービットカメラ",
|
|
77954
|
+
"tooltip.fly-camera": "フライカメラ",
|
|
77955
|
+
"tooltip.walk-mode": "ウォークモード",
|
|
77956
|
+
"tooltip.reset-camera": "カメラをリセット",
|
|
77957
|
+
"tooltip.frame-scene": "シーンにフィット",
|
|
77958
|
+
"tooltip.show-collision": "コリジョンを表示",
|
|
77959
|
+
"tooltip.settings": "設定",
|
|
77960
|
+
"tooltip.help": "ヘルプ",
|
|
77961
|
+
"tooltip.enter-ar": "ARを開始",
|
|
77962
|
+
"tooltip.enter-vr": "VRを開始",
|
|
77963
|
+
"tooltip.fullscreen": "全画面表示",
|
|
77964
|
+
"help.tab.desktop": "デスクトップ",
|
|
77965
|
+
"help.tab.touch": "タッチ",
|
|
77966
|
+
"help.section.orbit": "オービットモード",
|
|
77967
|
+
"help.section.fly": "フライモード",
|
|
77968
|
+
"help.section.walk": "ウォークモード",
|
|
77969
|
+
"help.section.modes": "モード切り替え",
|
|
77970
|
+
"help.action.orbit": "オービット",
|
|
77971
|
+
"help.action.pan": "パン",
|
|
77972
|
+
"help.action.zoom": "ズーム",
|
|
77973
|
+
"help.action.set-focus": "フォーカスを設定",
|
|
77974
|
+
"help.action.fly-to": "飛ぶ",
|
|
77975
|
+
"help.action.fly-to-point": "ポイントへ飛ぶ",
|
|
77976
|
+
"help.action.walk-to": "歩く",
|
|
77977
|
+
"help.action.look-around": "周りを見る",
|
|
77978
|
+
"help.action.move": "移動",
|
|
77979
|
+
"help.action.vertical": "垂直",
|
|
77980
|
+
"help.action.jump": "ジャンプ",
|
|
77981
|
+
"help.action.run-slow": "走る / 歩く",
|
|
77982
|
+
"help.action.focus-point": "フォーカスポイント",
|
|
77983
|
+
"help.action.frame-scene": "シーンにフィット",
|
|
77984
|
+
"help.action.reset-camera": "カメラをリセット",
|
|
77985
|
+
"help.action.orbit-mode": "オービットモード",
|
|
77986
|
+
"help.action.fly-mode": "フライモード",
|
|
77987
|
+
"help.action.toggle-walk": "ウォークを切り替え",
|
|
77988
|
+
"help.action.toggle-gaming": "ゲームコントロールを切り替え",
|
|
77989
|
+
"help.action.show-collision": "コリジョンを表示",
|
|
77990
|
+
"help.action.play-pause": "再生 / 一時停止",
|
|
77991
|
+
"help.action.toggle-help": "ヘルプを切り替え",
|
|
77992
|
+
"help.action.exit-cancel": "終了 / キャンセル",
|
|
77993
|
+
"help.key.left-click": "左クリック",
|
|
77994
|
+
"help.key.left-click-drag": "左クリック + ドラッグ",
|
|
77995
|
+
"help.key.right-click-drag": "右クリック + ドラッグ",
|
|
77996
|
+
"help.key.mouse-wheel": "マウスホイール",
|
|
77997
|
+
"help.key.mouse": "マウス",
|
|
77998
|
+
"help.key.double-click": "ダブルクリック",
|
|
77999
|
+
"help.key.double-tap": "ダブルタップ",
|
|
78000
|
+
"help.key.tap": "タップ",
|
|
78001
|
+
"help.key.touch-drag": "タッチ + ドラッグ",
|
|
78002
|
+
"help.key.one-finger-drag": "1本指でドラッグ",
|
|
78003
|
+
"help.key.two-finger-drag": "2本指でドラッグ",
|
|
78004
|
+
"help.key.pinch": "ピンチ",
|
|
78005
|
+
"help.key.pinch-two-finger": "ピンチ / 2本指でドラッグ",
|
|
78006
|
+
"help.key.joystick": "ジョイスティック",
|
|
78007
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
78008
|
+
"help.key.space": "スペース",
|
|
78009
|
+
"help.key.esc": "Esc",
|
|
78010
|
+
"xr-modal.title": "WebGLが必要です",
|
|
78011
|
+
"xr-modal.message": "ARとVRはWebGPUレンダラーでは利用できません。OKを押すとWebGLでビューアーを再読み込みします。",
|
|
78012
|
+
"xr-modal.cancel": "キャンセル",
|
|
78013
|
+
"xr-modal.ok": "OK",
|
|
78014
|
+
"walk-hint.desktop": "クリックで歩行。WASDで自由に移動。",
|
|
78015
|
+
"walk-hint.touch-tap": "タップで歩行。ドラッグで視点移動。",
|
|
78016
|
+
"walk-hint.touch-gaming": "ジョイスティックで移動。ドラッグで視点移動。タップでジャンプ。"
|
|
78017
|
+
};
|
|
78018
|
+
|
|
78019
|
+
var koJson = {
|
|
78020
|
+
"settings.performance-mode": "성능 모드",
|
|
78021
|
+
"settings.gaming-controls": "게임 컨트롤",
|
|
78022
|
+
"settings.frame": "맞춤",
|
|
78023
|
+
"settings.reset": "재설정",
|
|
78024
|
+
"tooltip.play": "재생",
|
|
78025
|
+
"tooltip.pause": "일시 정지",
|
|
78026
|
+
"tooltip.orbit-camera": "오빗 카메라",
|
|
78027
|
+
"tooltip.fly-camera": "플라이 카메라",
|
|
78028
|
+
"tooltip.walk-mode": "워크 모드",
|
|
78029
|
+
"tooltip.reset-camera": "카메라 재설정",
|
|
78030
|
+
"tooltip.frame-scene": "씬에 맞춤",
|
|
78031
|
+
"tooltip.show-collision": "충돌 표시",
|
|
78032
|
+
"tooltip.settings": "설정",
|
|
78033
|
+
"tooltip.help": "도움말",
|
|
78034
|
+
"tooltip.enter-ar": "AR 시작",
|
|
78035
|
+
"tooltip.enter-vr": "VR 시작",
|
|
78036
|
+
"tooltip.fullscreen": "전체 화면",
|
|
78037
|
+
"help.tab.desktop": "데스크톱",
|
|
78038
|
+
"help.tab.touch": "터치",
|
|
78039
|
+
"help.section.orbit": "오빗 모드",
|
|
78040
|
+
"help.section.fly": "플라이 모드",
|
|
78041
|
+
"help.section.walk": "워크 모드",
|
|
78042
|
+
"help.section.modes": "모드 전환",
|
|
78043
|
+
"help.action.orbit": "오빗",
|
|
78044
|
+
"help.action.pan": "팬",
|
|
78045
|
+
"help.action.zoom": "줌",
|
|
78046
|
+
"help.action.set-focus": "포커스 설정",
|
|
78047
|
+
"help.action.fly-to": "비행",
|
|
78048
|
+
"help.action.fly-to-point": "지점으로 비행",
|
|
78049
|
+
"help.action.walk-to": "걷기",
|
|
78050
|
+
"help.action.look-around": "둘러보기",
|
|
78051
|
+
"help.action.move": "이동",
|
|
78052
|
+
"help.action.vertical": "수직",
|
|
78053
|
+
"help.action.jump": "점프",
|
|
78054
|
+
"help.action.run-slow": "달리기 / 천천히",
|
|
78055
|
+
"help.action.focus-point": "포커스 포인트",
|
|
78056
|
+
"help.action.frame-scene": "씬에 맞춤",
|
|
78057
|
+
"help.action.reset-camera": "카메라 재설정",
|
|
78058
|
+
"help.action.orbit-mode": "오빗 모드",
|
|
78059
|
+
"help.action.fly-mode": "플라이 모드",
|
|
78060
|
+
"help.action.toggle-walk": "워크 전환",
|
|
78061
|
+
"help.action.toggle-gaming": "게임 컨트롤 전환",
|
|
78062
|
+
"help.action.show-collision": "충돌 표시",
|
|
78063
|
+
"help.action.play-pause": "재생 / 일시 정지",
|
|
78064
|
+
"help.action.toggle-help": "도움말 전환",
|
|
78065
|
+
"help.action.exit-cancel": "나가기 / 취소",
|
|
78066
|
+
"help.key.left-click": "왼쪽 클릭",
|
|
78067
|
+
"help.key.left-click-drag": "왼쪽 클릭 + 드래그",
|
|
78068
|
+
"help.key.right-click-drag": "오른쪽 클릭 + 드래그",
|
|
78069
|
+
"help.key.mouse-wheel": "마우스 휠",
|
|
78070
|
+
"help.key.mouse": "마우스",
|
|
78071
|
+
"help.key.double-click": "더블 클릭",
|
|
78072
|
+
"help.key.double-tap": "더블 탭",
|
|
78073
|
+
"help.key.tap": "탭",
|
|
78074
|
+
"help.key.touch-drag": "터치 + 드래그",
|
|
78075
|
+
"help.key.one-finger-drag": "한 손가락 드래그",
|
|
78076
|
+
"help.key.two-finger-drag": "두 손가락 드래그",
|
|
78077
|
+
"help.key.pinch": "핀치",
|
|
78078
|
+
"help.key.pinch-two-finger": "핀치 / 두 손가락 드래그",
|
|
78079
|
+
"help.key.joystick": "조이스틱",
|
|
78080
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
78081
|
+
"help.key.space": "스페이스",
|
|
78082
|
+
"help.key.esc": "Esc",
|
|
78083
|
+
"xr-modal.title": "WebGL 필요",
|
|
78084
|
+
"xr-modal.message": "AR과 VR은 WebGPU 렌더러에서 지원되지 않습니다. 확인을 누르면 WebGL로 뷰어를 다시 불러옵니다.",
|
|
78085
|
+
"xr-modal.cancel": "취소",
|
|
78086
|
+
"xr-modal.ok": "확인",
|
|
78087
|
+
"walk-hint.desktop": "클릭하여 걷기. WASD로 자유롭게 이동.",
|
|
78088
|
+
"walk-hint.touch-tap": "탭하여 걷기. 드래그하여 둘러보기.",
|
|
78089
|
+
"walk-hint.touch-gaming": "조이스틱으로 이동. 드래그하여 둘러보기. 탭하여 점프."
|
|
78090
|
+
};
|
|
78091
|
+
|
|
78092
|
+
var ptBRJson = {
|
|
78093
|
+
"settings.performance-mode": "Modo de desempenho",
|
|
78094
|
+
"settings.gaming-controls": "Controles de jogo",
|
|
78095
|
+
"settings.frame": "Enquadrar",
|
|
78096
|
+
"settings.reset": "Redefinir",
|
|
78097
|
+
"tooltip.play": "Reproduzir",
|
|
78098
|
+
"tooltip.pause": "Pausar",
|
|
78099
|
+
"tooltip.orbit-camera": "Câmera orbital",
|
|
78100
|
+
"tooltip.fly-camera": "Câmera de voo",
|
|
78101
|
+
"tooltip.walk-mode": "Modo caminhar",
|
|
78102
|
+
"tooltip.reset-camera": "Redefinir câmera",
|
|
78103
|
+
"tooltip.frame-scene": "Enquadrar cena",
|
|
78104
|
+
"tooltip.show-collision": "Mostrar colisão",
|
|
78105
|
+
"tooltip.settings": "Configurações",
|
|
78106
|
+
"tooltip.help": "Ajuda",
|
|
78107
|
+
"tooltip.enter-ar": "Entrar em AR",
|
|
78108
|
+
"tooltip.enter-vr": "Entrar em VR",
|
|
78109
|
+
"tooltip.fullscreen": "Tela cheia",
|
|
78110
|
+
"help.tab.desktop": "Desktop",
|
|
78111
|
+
"help.tab.touch": "Toque",
|
|
78112
|
+
"help.section.orbit": "Modo orbital",
|
|
78113
|
+
"help.section.fly": "Modo voo",
|
|
78114
|
+
"help.section.walk": "Modo caminhar",
|
|
78115
|
+
"help.section.modes": "Troca de modo",
|
|
78116
|
+
"help.action.orbit": "Orbitar",
|
|
78117
|
+
"help.action.pan": "Deslocar",
|
|
78118
|
+
"help.action.zoom": "Zoom",
|
|
78119
|
+
"help.action.set-focus": "Definir foco",
|
|
78120
|
+
"help.action.fly-to": "Voar para",
|
|
78121
|
+
"help.action.fly-to-point": "Voar até o ponto",
|
|
78122
|
+
"help.action.walk-to": "Caminhar para",
|
|
78123
|
+
"help.action.look-around": "Olhar em volta",
|
|
78124
|
+
"help.action.move": "Mover",
|
|
78125
|
+
"help.action.vertical": "Vertical",
|
|
78126
|
+
"help.action.jump": "Pular",
|
|
78127
|
+
"help.action.run-slow": "Correr / Devagar",
|
|
78128
|
+
"help.action.focus-point": "Ponto focal",
|
|
78129
|
+
"help.action.frame-scene": "Enquadrar cena",
|
|
78130
|
+
"help.action.reset-camera": "Redefinir câmera",
|
|
78131
|
+
"help.action.orbit-mode": "Modo orbital",
|
|
78132
|
+
"help.action.fly-mode": "Modo voo",
|
|
78133
|
+
"help.action.toggle-walk": "Alternar caminhar",
|
|
78134
|
+
"help.action.toggle-gaming": "Alternar controles de jogo",
|
|
78135
|
+
"help.action.show-collision": "Mostrar colisão",
|
|
78136
|
+
"help.action.play-pause": "Reproduzir / Pausar",
|
|
78137
|
+
"help.action.toggle-help": "Alternar ajuda",
|
|
78138
|
+
"help.action.exit-cancel": "Sair / Cancelar",
|
|
78139
|
+
"help.key.left-click": "Clique esquerdo",
|
|
78140
|
+
"help.key.left-click-drag": "Clique esquerdo + arrastar",
|
|
78141
|
+
"help.key.right-click-drag": "Clique direito + arrastar",
|
|
78142
|
+
"help.key.mouse-wheel": "Roda do mouse",
|
|
78143
|
+
"help.key.mouse": "Mouse",
|
|
78144
|
+
"help.key.double-click": "Clique duplo",
|
|
78145
|
+
"help.key.double-tap": "Toque duplo",
|
|
78146
|
+
"help.key.tap": "Toque",
|
|
78147
|
+
"help.key.touch-drag": "Toque + arrastar",
|
|
78148
|
+
"help.key.one-finger-drag": "Arrastar com um dedo",
|
|
78149
|
+
"help.key.two-finger-drag": "Arrastar com dois dedos",
|
|
78150
|
+
"help.key.pinch": "Pinçar",
|
|
78151
|
+
"help.key.pinch-two-finger": "Pinçar / Arrastar com dois dedos",
|
|
78152
|
+
"help.key.joystick": "Joystick",
|
|
78153
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
78154
|
+
"help.key.space": "Espaço",
|
|
78155
|
+
"help.key.esc": "Esc",
|
|
78156
|
+
"xr-modal.title": "WebGL necessário",
|
|
78157
|
+
"xr-modal.message": "AR e VR não são compatíveis com o renderizador WebGPU. Ao pressionar OK, o visualizador será recarregado com WebGL.",
|
|
78158
|
+
"xr-modal.cancel": "Cancelar",
|
|
78159
|
+
"xr-modal.ok": "OK",
|
|
78160
|
+
"walk-hint.desktop": "Clique para caminhar. WASD para se mover livremente.",
|
|
78161
|
+
"walk-hint.touch-tap": "Toque para caminhar. Arraste para olhar em volta.",
|
|
78162
|
+
"walk-hint.touch-gaming": "Use o joystick para se mover. Arraste para olhar. Toque para pular."
|
|
78163
|
+
};
|
|
78164
|
+
|
|
78165
|
+
var ruJson = {
|
|
78166
|
+
"settings.performance-mode": "Режим производительности",
|
|
78167
|
+
"settings.gaming-controls": "Игровое управление",
|
|
78168
|
+
"settings.frame": "Кадрировать",
|
|
78169
|
+
"settings.reset": "Сбросить",
|
|
78170
|
+
"tooltip.play": "Воспроизвести",
|
|
78171
|
+
"tooltip.pause": "Пауза",
|
|
78172
|
+
"tooltip.orbit-camera": "Орбитальная камера",
|
|
78173
|
+
"tooltip.fly-camera": "Полётная камера",
|
|
78174
|
+
"tooltip.walk-mode": "Режим ходьбы",
|
|
78175
|
+
"tooltip.reset-camera": "Сбросить камеру",
|
|
78176
|
+
"tooltip.frame-scene": "Кадрировать сцену",
|
|
78177
|
+
"tooltip.show-collision": "Показать коллизию",
|
|
78178
|
+
"tooltip.settings": "Настройки",
|
|
78179
|
+
"tooltip.help": "Справка",
|
|
78180
|
+
"tooltip.enter-ar": "Войти в AR",
|
|
78181
|
+
"tooltip.enter-vr": "Войти в VR",
|
|
78182
|
+
"tooltip.fullscreen": "Полный экран",
|
|
78183
|
+
"help.tab.desktop": "Десктоп",
|
|
78184
|
+
"help.tab.touch": "Сенсор",
|
|
78185
|
+
"help.section.orbit": "Орбитальный режим",
|
|
78186
|
+
"help.section.fly": "Режим полёта",
|
|
78187
|
+
"help.section.walk": "Режим ходьбы",
|
|
78188
|
+
"help.section.modes": "Смена режимов",
|
|
78189
|
+
"help.action.orbit": "Вращение",
|
|
78190
|
+
"help.action.pan": "Панорама",
|
|
78191
|
+
"help.action.zoom": "Масштаб",
|
|
78192
|
+
"help.action.set-focus": "Задать фокус",
|
|
78193
|
+
"help.action.fly-to": "Лететь к",
|
|
78194
|
+
"help.action.fly-to-point": "Лететь к точке",
|
|
78195
|
+
"help.action.walk-to": "Идти к",
|
|
78196
|
+
"help.action.look-around": "Осмотреться",
|
|
78197
|
+
"help.action.move": "Движение",
|
|
78198
|
+
"help.action.vertical": "Вертикально",
|
|
78199
|
+
"help.action.jump": "Прыжок",
|
|
78200
|
+
"help.action.run-slow": "Бег / Медленно",
|
|
78201
|
+
"help.action.focus-point": "Точка фокуса",
|
|
78202
|
+
"help.action.frame-scene": "Кадрировать сцену",
|
|
78203
|
+
"help.action.reset-camera": "Сбросить камеру",
|
|
78204
|
+
"help.action.orbit-mode": "Орбитальный режим",
|
|
78205
|
+
"help.action.fly-mode": "Режим полёта",
|
|
78206
|
+
"help.action.toggle-walk": "Переключить ходьбу",
|
|
78207
|
+
"help.action.toggle-gaming": "Переключить игровое управление",
|
|
78208
|
+
"help.action.show-collision": "Показать коллизию",
|
|
78209
|
+
"help.action.play-pause": "Воспроизведение / Пауза",
|
|
78210
|
+
"help.action.toggle-help": "Переключить справку",
|
|
78211
|
+
"help.action.exit-cancel": "Выход / Отмена",
|
|
78212
|
+
"help.key.left-click": "Левый клик",
|
|
78213
|
+
"help.key.left-click-drag": "Левый клик + перетаскивание",
|
|
78214
|
+
"help.key.right-click-drag": "Правый клик + перетаскивание",
|
|
78215
|
+
"help.key.mouse-wheel": "Колесо мыши",
|
|
78216
|
+
"help.key.mouse": "Мышь",
|
|
78217
|
+
"help.key.double-click": "Двойной клик",
|
|
78218
|
+
"help.key.double-tap": "Двойной тап",
|
|
78219
|
+
"help.key.tap": "Тап",
|
|
78220
|
+
"help.key.touch-drag": "Касание + перетаскивание",
|
|
78221
|
+
"help.key.one-finger-drag": "Перетаскивание одним пальцем",
|
|
78222
|
+
"help.key.two-finger-drag": "Перетаскивание двумя пальцами",
|
|
78223
|
+
"help.key.pinch": "Щипок",
|
|
78224
|
+
"help.key.pinch-two-finger": "Щипок / Перетаскивание двумя пальцами",
|
|
78225
|
+
"help.key.joystick": "Джойстик",
|
|
78226
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
78227
|
+
"help.key.space": "Пробел",
|
|
78228
|
+
"help.key.esc": "Esc",
|
|
78229
|
+
"xr-modal.title": "Требуется WebGL",
|
|
78230
|
+
"xr-modal.message": "AR и VR не поддерживаются рендером WebGPU. Нажмите OK, чтобы перезагрузить просмотрщик с WebGL.",
|
|
78231
|
+
"xr-modal.cancel": "Отмена",
|
|
78232
|
+
"xr-modal.ok": "OK",
|
|
78233
|
+
"walk-hint.desktop": "Кликните для ходьбы. WASD для свободного движения.",
|
|
78234
|
+
"walk-hint.touch-tap": "Тапните для ходьбы. Перетаскивайте, чтобы осмотреться.",
|
|
78235
|
+
"walk-hint.touch-gaming": "Используйте джойстик для движения. Перетаскивайте, чтобы осмотреться. Тапните для прыжка."
|
|
78236
|
+
};
|
|
78237
|
+
|
|
78238
|
+
var zhCNJson = {
|
|
78239
|
+
"settings.performance-mode": "性能模式",
|
|
78240
|
+
"settings.gaming-controls": "游戏控制",
|
|
78241
|
+
"settings.frame": "适应",
|
|
78242
|
+
"settings.reset": "重置",
|
|
78243
|
+
"tooltip.play": "播放",
|
|
78244
|
+
"tooltip.pause": "暂停",
|
|
78245
|
+
"tooltip.orbit-camera": "环绕相机",
|
|
78246
|
+
"tooltip.fly-camera": "飞行相机",
|
|
78247
|
+
"tooltip.walk-mode": "行走模式",
|
|
78248
|
+
"tooltip.reset-camera": "重置相机",
|
|
78249
|
+
"tooltip.frame-scene": "适应场景",
|
|
78250
|
+
"tooltip.show-collision": "显示碰撞",
|
|
78251
|
+
"tooltip.settings": "设置",
|
|
78252
|
+
"tooltip.help": "帮助",
|
|
78253
|
+
"tooltip.enter-ar": "进入 AR",
|
|
78254
|
+
"tooltip.enter-vr": "进入 VR",
|
|
78255
|
+
"tooltip.fullscreen": "全屏",
|
|
78256
|
+
"help.tab.desktop": "桌面",
|
|
78257
|
+
"help.tab.touch": "触屏",
|
|
78258
|
+
"help.section.orbit": "环绕模式",
|
|
78259
|
+
"help.section.fly": "飞行模式",
|
|
78260
|
+
"help.section.walk": "行走模式",
|
|
78261
|
+
"help.section.modes": "模式切换",
|
|
78262
|
+
"help.action.orbit": "环绕",
|
|
78263
|
+
"help.action.pan": "平移",
|
|
78264
|
+
"help.action.zoom": "缩放",
|
|
78265
|
+
"help.action.set-focus": "设置焦点",
|
|
78266
|
+
"help.action.fly-to": "飞至",
|
|
78267
|
+
"help.action.fly-to-point": "飞至该点",
|
|
78268
|
+
"help.action.walk-to": "走到",
|
|
78269
|
+
"help.action.look-around": "环顾",
|
|
78270
|
+
"help.action.move": "移动",
|
|
78271
|
+
"help.action.vertical": "垂直",
|
|
78272
|
+
"help.action.jump": "跳跃",
|
|
78273
|
+
"help.action.run-slow": "奔跑 / 慢走",
|
|
78274
|
+
"help.action.focus-point": "焦点",
|
|
78275
|
+
"help.action.frame-scene": "适应场景",
|
|
78276
|
+
"help.action.reset-camera": "重置相机",
|
|
78277
|
+
"help.action.orbit-mode": "环绕模式",
|
|
78278
|
+
"help.action.fly-mode": "飞行模式",
|
|
78279
|
+
"help.action.toggle-walk": "切换行走",
|
|
78280
|
+
"help.action.toggle-gaming": "切换游戏控制",
|
|
78281
|
+
"help.action.show-collision": "显示碰撞",
|
|
78282
|
+
"help.action.play-pause": "播放 / 暂停",
|
|
78283
|
+
"help.action.toggle-help": "切换帮助",
|
|
78284
|
+
"help.action.exit-cancel": "退出 / 取消",
|
|
78285
|
+
"help.key.left-click": "左键点击",
|
|
78286
|
+
"help.key.left-click-drag": "左键点击 + 拖动",
|
|
78287
|
+
"help.key.right-click-drag": "右键点击 + 拖动",
|
|
78288
|
+
"help.key.mouse-wheel": "鼠标滚轮",
|
|
78289
|
+
"help.key.mouse": "鼠标",
|
|
78290
|
+
"help.key.double-click": "双击",
|
|
78291
|
+
"help.key.double-tap": "双击",
|
|
78292
|
+
"help.key.tap": "点击",
|
|
78293
|
+
"help.key.touch-drag": "触摸 + 拖动",
|
|
78294
|
+
"help.key.one-finger-drag": "单指拖动",
|
|
78295
|
+
"help.key.two-finger-drag": "双指拖动",
|
|
78296
|
+
"help.key.pinch": "捏合",
|
|
78297
|
+
"help.key.pinch-two-finger": "捏合 / 双指拖动",
|
|
78298
|
+
"help.key.joystick": "摇杆",
|
|
78299
|
+
"help.key.shift-ctrl": "Shift / Ctrl",
|
|
78300
|
+
"help.key.space": "空格",
|
|
78301
|
+
"help.key.esc": "Esc",
|
|
78302
|
+
"xr-modal.title": "需要 WebGL",
|
|
78303
|
+
"xr-modal.message": "WebGPU 渲染器不支持 AR 和 VR。按下确定将以 WebGL 重新加载查看器。",
|
|
78304
|
+
"xr-modal.cancel": "取消",
|
|
78305
|
+
"xr-modal.ok": "确定",
|
|
78306
|
+
"walk-hint.desktop": "点击行走。WASD 自由移动。",
|
|
78307
|
+
"walk-hint.touch-tap": "点击行走。拖动环顾四周。",
|
|
78308
|
+
"walk-hint.touch-gaming": "使用摇杆移动。拖动环顾四周。点击跳跃。"
|
|
78309
|
+
};
|
|
78310
|
+
|
|
78311
|
+
const en = enJson;
|
|
78312
|
+
const dictionaries = {
|
|
78313
|
+
de: deJson,
|
|
78314
|
+
en,
|
|
78315
|
+
es: esJson,
|
|
78316
|
+
fr: frJson,
|
|
78317
|
+
ja: jaJson,
|
|
78318
|
+
ko: koJson,
|
|
78319
|
+
'pt-BR': ptBRJson,
|
|
78320
|
+
ru: ruJson,
|
|
78321
|
+
'zh-CN': zhCNJson
|
|
78322
|
+
};
|
|
78323
|
+
let current = en;
|
|
78324
|
+
const detectLocale = () => {
|
|
78325
|
+
const candidates = [
|
|
78326
|
+
new URLSearchParams(location.search).get('lang'),
|
|
78327
|
+
...(navigator.languages ?? [navigator.language])
|
|
78328
|
+
];
|
|
78329
|
+
const keys = Object.keys(dictionaries);
|
|
78330
|
+
for (const c of candidates) {
|
|
78331
|
+
if (!c)
|
|
78332
|
+
continue;
|
|
78333
|
+
const lc = c.toLowerCase();
|
|
78334
|
+
const base = lc.split('-')[0];
|
|
78335
|
+
// 1. exact tag match (case-insensitive: "DE" → "de", "pt-br" → "pt-BR")
|
|
78336
|
+
// 2. base-language match ("fr-CA" → "fr")
|
|
78337
|
+
// 3. any region variant sharing the base ("pt" → "pt-BR", "zh" → "zh-CN")
|
|
78338
|
+
const match = keys.find(k => k.toLowerCase() === lc) ??
|
|
78339
|
+
keys.find(k => k.toLowerCase() === base) ??
|
|
78340
|
+
keys.find(k => k.toLowerCase().split('-')[0] === base);
|
|
78341
|
+
if (match)
|
|
78342
|
+
return match;
|
|
78343
|
+
}
|
|
78344
|
+
return 'en';
|
|
78345
|
+
};
|
|
78346
|
+
// Look up a key in the active locale, falling back to English, then the key
|
|
78347
|
+
// itself so missing translations are visible rather than blank.
|
|
78348
|
+
const localize = (key) => current[key] ?? en[key] ?? key;
|
|
78349
|
+
// Detect the preferred locale and replace the text of every `[data-i18n]`
|
|
78350
|
+
// element with its translation. Call once after the DOM is parsed and before
|
|
78351
|
+
// any code reads localized strings.
|
|
78352
|
+
const initLocalization = () => {
|
|
78353
|
+
const locale = detectLocale();
|
|
78354
|
+
current = dictionaries[locale];
|
|
78355
|
+
document.documentElement.lang = locale;
|
|
78356
|
+
document.querySelectorAll('[data-i18n]').forEach((el) => {
|
|
78357
|
+
el.textContent = localize(el.dataset.i18n);
|
|
78358
|
+
});
|
|
78359
|
+
};
|
|
78360
|
+
|
|
77655
78361
|
const migrateV1 = (settings) => {
|
|
77656
78362
|
if (settings.animTracks) {
|
|
77657
78363
|
settings.animTracks?.forEach((track) => {
|
|
@@ -77763,7 +78469,7 @@ const importSettings = (settings) => {
|
|
|
77763
78469
|
return result;
|
|
77764
78470
|
};
|
|
77765
78471
|
|
|
77766
|
-
var version = "1.
|
|
78472
|
+
var version = "1.26.0";
|
|
77767
78473
|
|
|
77768
78474
|
class Tooltip {
|
|
77769
78475
|
register;
|
|
@@ -78056,7 +78762,8 @@ const initUI = (global) => {
|
|
|
78056
78762
|
'showCollision', 'desktopShowCollisionHelp',
|
|
78057
78763
|
'tooltip',
|
|
78058
78764
|
'annotationNav', 'annotationPrev', 'annotationNext', 'annotationInfo', 'annotationNavTitle',
|
|
78059
|
-
'viewerBranding', 'viewerTitle', 'appVersionLabel'
|
|
78765
|
+
'viewerBranding', 'viewerTitle', 'appVersionLabel',
|
|
78766
|
+
'xrModal', 'xrModalOk', 'xrModalCancel'
|
|
78060
78767
|
].reduce((acc, id) => {
|
|
78061
78768
|
acc[id] = document.getElementById(id);
|
|
78062
78769
|
return acc;
|
|
@@ -78182,8 +78889,30 @@ const initUI = (global) => {
|
|
|
78182
78889
|
// AR/VR
|
|
78183
78890
|
const arChanged = () => dom.arMode.classList[state.hasAR ? 'remove' : 'add']('hidden');
|
|
78184
78891
|
const vrChanged = () => dom.vrMode.classList[state.hasVR ? 'remove' : 'add']('hidden');
|
|
78185
|
-
|
|
78186
|
-
|
|
78892
|
+
// XR sessions require a WebGL device. Under WebGPU, prompt the user to reload
|
|
78893
|
+
// the viewer with the WebGL renderer before starting AR/VR. Use replace() so
|
|
78894
|
+
// the renderer-switch reload doesn't add a back-button entry — important
|
|
78895
|
+
// because the viewer often runs inside an iframe (e.g. superspl.at /scene).
|
|
78896
|
+
const reloadWithWebgl = () => {
|
|
78897
|
+
const reloadUrl = new URL(location.href);
|
|
78898
|
+
reloadUrl.searchParams.set('webgl', '');
|
|
78899
|
+
location.replace(reloadUrl.toString());
|
|
78900
|
+
};
|
|
78901
|
+
const showXrModal = () => dom.xrModal.classList.remove('hidden');
|
|
78902
|
+
const hideXrModal = () => dom.xrModal.classList.add('hidden');
|
|
78903
|
+
dom.xrModalOk.addEventListener('click', reloadWithWebgl);
|
|
78904
|
+
dom.xrModalCancel.addEventListener('click', hideXrModal);
|
|
78905
|
+
dom.xrModal.addEventListener('pointerdown', hideXrModal);
|
|
78906
|
+
const handleXrClick = (type) => {
|
|
78907
|
+
if (global.renderer !== 'webgl') {
|
|
78908
|
+
showXrModal();
|
|
78909
|
+
}
|
|
78910
|
+
else {
|
|
78911
|
+
events.fire(type === 'AR' ? 'startAR' : 'startVR');
|
|
78912
|
+
}
|
|
78913
|
+
};
|
|
78914
|
+
dom.arMode.addEventListener('click', () => handleXrClick('AR'));
|
|
78915
|
+
dom.vrMode.addEventListener('click', () => handleXrClick('VR'));
|
|
78187
78916
|
events.on('hasAR:changed', arChanged);
|
|
78188
78917
|
events.on('hasVR:changed', vrChanged);
|
|
78189
78918
|
arChanged();
|
|
@@ -78377,11 +79106,9 @@ const initUI = (global) => {
|
|
|
78377
79106
|
let walkHintShown = false;
|
|
78378
79107
|
const getWalkHintText = () => {
|
|
78379
79108
|
if (state.inputMode === 'desktop') {
|
|
78380
|
-
return '
|
|
79109
|
+
return localize('walk-hint.desktop');
|
|
78381
79110
|
}
|
|
78382
|
-
return state.gamingControls ?
|
|
78383
|
-
'Use the joystick to move. Drag to look around. Tap to jump.' :
|
|
78384
|
-
'Tap to walk. Drag to look around.';
|
|
79111
|
+
return localize(state.gamingControls ? 'walk-hint.touch-gaming' : 'walk-hint.touch-tap');
|
|
78385
79112
|
};
|
|
78386
79113
|
events.on('cameraMode:changed', (value) => {
|
|
78387
79114
|
if (value === 'walk' && !walkHintShown && !isPointerCapturedMode()) {
|
|
@@ -78446,20 +79173,20 @@ const initUI = (global) => {
|
|
|
78446
79173
|
}
|
|
78447
79174
|
// tooltips
|
|
78448
79175
|
const tooltip = new Tooltip(dom.tooltip);
|
|
78449
|
-
tooltip.register(dom.play, '
|
|
78450
|
-
tooltip.register(dom.pause, '
|
|
78451
|
-
tooltip.register(dom.orbitCamera, '
|
|
78452
|
-
tooltip.register(dom.flyCamera, '
|
|
78453
|
-
tooltip.register(dom.fpsCamera, '
|
|
78454
|
-
tooltip.register(dom.reset, '
|
|
78455
|
-
tooltip.register(dom.frame, '
|
|
78456
|
-
tooltip.register(dom.showCollision, '
|
|
78457
|
-
tooltip.register(dom.settings, '
|
|
78458
|
-
tooltip.register(dom.info, '
|
|
78459
|
-
tooltip.register(dom.arMode, '
|
|
78460
|
-
tooltip.register(dom.vrMode, '
|
|
78461
|
-
tooltip.register(dom.enterFullscreen, '
|
|
78462
|
-
tooltip.register(dom.exitFullscreen, '
|
|
79176
|
+
tooltip.register(dom.play, localize('tooltip.play'), 'top');
|
|
79177
|
+
tooltip.register(dom.pause, localize('tooltip.pause'), 'top');
|
|
79178
|
+
tooltip.register(dom.orbitCamera, localize('tooltip.orbit-camera'), 'top');
|
|
79179
|
+
tooltip.register(dom.flyCamera, localize('tooltip.fly-camera'), 'top');
|
|
79180
|
+
tooltip.register(dom.fpsCamera, localize('tooltip.walk-mode'), 'top');
|
|
79181
|
+
tooltip.register(dom.reset, localize('tooltip.reset-camera'), 'bottom');
|
|
79182
|
+
tooltip.register(dom.frame, localize('tooltip.frame-scene'), 'bottom');
|
|
79183
|
+
tooltip.register(dom.showCollision, localize('tooltip.show-collision'), 'top');
|
|
79184
|
+
tooltip.register(dom.settings, localize('tooltip.settings'), 'top');
|
|
79185
|
+
tooltip.register(dom.info, localize('tooltip.help'), 'top');
|
|
79186
|
+
tooltip.register(dom.arMode, localize('tooltip.enter-ar'), 'top');
|
|
79187
|
+
tooltip.register(dom.vrMode, localize('tooltip.enter-vr'), 'top');
|
|
79188
|
+
tooltip.register(dom.enterFullscreen, localize('tooltip.fullscreen'), 'top');
|
|
79189
|
+
tooltip.register(dom.exitFullscreen, localize('tooltip.fullscreen'), 'top');
|
|
78463
79190
|
const isThirdPartyEmbedded = () => {
|
|
78464
79191
|
try {
|
|
78465
79192
|
return window.location.hostname !== window.parent.location.hostname;
|
|
@@ -82841,11 +83568,12 @@ const NUM_SAMPLES = 12;
|
|
|
82841
83568
|
const BASE_OUTER_RADIUS = 0.2;
|
|
82842
83569
|
const INNER_OUTER_RATIO = 0.17 / 0.2;
|
|
82843
83570
|
// Screen-space diameter (in CSS pixels) used for both hover and target
|
|
82844
|
-
// rings when the scene
|
|
82845
|
-
//
|
|
82846
|
-
//
|
|
82847
|
-
// fixed pixel size
|
|
82848
|
-
//
|
|
83571
|
+
// rings when the scene isn't walk-sized. Walk-sized scenes render
|
|
83572
|
+
// world-space (BASE_OUTER_RADIUS) so the ring orients to the surface and
|
|
83573
|
+
// reads as a physical footprint; smaller scenes (or no collision) fall
|
|
83574
|
+
// back to a fixed pixel size, which keeps the ring legible when 0.2 world
|
|
83575
|
+
// units would eat too much of the scene. Selection happens in
|
|
83576
|
+
// screenPixelsForRing(), keyed on state.walkAllowed.
|
|
82849
83577
|
const SCREEN_OUTER_PIXELS = 48;
|
|
82850
83578
|
const BEZIER_K = 1 / 6;
|
|
82851
83579
|
const NORMAL_SMOOTH_FACTOR = 0.25;
|
|
@@ -83118,13 +83846,14 @@ class NavCursor {
|
|
|
83118
83846
|
app.on('prerender', this.onPrerender);
|
|
83119
83847
|
updateActive();
|
|
83120
83848
|
}
|
|
83121
|
-
// Ring sizing is per-scene:
|
|
83122
|
-
//
|
|
83123
|
-
// as physical footprints on the surface with visible
|
|
83124
|
-
//
|
|
83125
|
-
//
|
|
83849
|
+
// Ring sizing is per-scene: walk-sized scenes (collision present and
|
|
83850
|
+
// bbox large enough — same predicate as walk mode) get world-space
|
|
83851
|
+
// rings, which read as physical footprints on the surface with visible
|
|
83852
|
+
// orientation. Smaller scenes or scenes without collision use a fixed
|
|
83853
|
+
// screen-pixel ring — 0.2 world units would dominate a small scene,
|
|
83854
|
+
// and the pick already falls back to splat depth without collision.
|
|
83126
83855
|
screenPixelsForRing() {
|
|
83127
|
-
return this.state.
|
|
83856
|
+
return this.state.walkAllowed ? null : SCREEN_OUTER_PIXELS;
|
|
83128
83857
|
}
|
|
83129
83858
|
setTarget(pos, normal, mode) {
|
|
83130
83859
|
this.targetPos = pos.clone();
|
|
@@ -84583,10 +85312,8 @@ class Viewer {
|
|
|
84583
85312
|
origChunks;
|
|
84584
85313
|
constructor(global, gsplatLoad, skyboxLoad, collisionLoad) {
|
|
84585
85314
|
this.global = global;
|
|
84586
|
-
const { app, settings, config, events, state, camera } = global;
|
|
85315
|
+
const { app, settings, config, events, state, camera, renderer } = global;
|
|
84587
85316
|
const { graphicsDevice } = app;
|
|
84588
|
-
// enable anonymous CORS for image loading in safari
|
|
84589
|
-
app.loader.getHandler('texture').imgParser.crossOrigin = 'anonymous';
|
|
84590
85317
|
// render skybox as plain equirect
|
|
84591
85318
|
const glsl = ShaderChunks.get(graphicsDevice, 'glsl');
|
|
84592
85319
|
glsl.set('skyboxPS', patchChunk(glsl.get('skyboxPS'), 'mapRoughnessUv(uv, mipLevel)', 'uv', 'glsl skyboxPS'));
|
|
@@ -84733,7 +85460,7 @@ class Viewer {
|
|
|
84733
85460
|
state.walkAllowed = isWalkAllowed(sceneBound, collision ?? null);
|
|
84734
85461
|
// Create collision debug overlay (voxel uses a compute shader, mesh
|
|
84735
85462
|
// uses standard line rendering). The voxel path requires WebGPU.
|
|
84736
|
-
if (collision instanceof VoxelCollision &&
|
|
85463
|
+
if (collision instanceof VoxelCollision && renderer !== 'webgl') {
|
|
84737
85464
|
this.voxelOverlay = new VoxelDebugOverlay(app, collision, camera);
|
|
84738
85465
|
this.voxelOverlay.mode = config.heatmap ? 'heatmap' : 'overlay';
|
|
84739
85466
|
state.hasCollisionOverlay = true;
|
|
@@ -84850,7 +85577,7 @@ class Viewer {
|
|
|
84850
85577
|
applyPerfSettings();
|
|
84851
85578
|
// debug colorize lods
|
|
84852
85579
|
gsplat.debug = config.colorize ? GSPLAT_DEBUG_LOD : GSPLAT_DEBUG_NONE;
|
|
84853
|
-
gsplat.renderer = rendererTable[
|
|
85580
|
+
gsplat.renderer = rendererTable[renderer];
|
|
84854
85581
|
// wait for the first valid frame to complete rendering
|
|
84855
85582
|
app.once('frameend', () => {
|
|
84856
85583
|
events.fire('firstFrame');
|
|
@@ -85767,7 +86494,7 @@ class XrNavigation extends Script {
|
|
|
85767
86494
|
|
|
85768
86495
|
// On entering/exiting AR, we need to set the camera clear color to transparent black
|
|
85769
86496
|
const initXr = (global) => {
|
|
85770
|
-
const { app, events, state, camera } = global;
|
|
86497
|
+
const { app, events, state, camera, renderer } = global;
|
|
85771
86498
|
state.hasAR = app.xr.isAvailable('immersive-ar');
|
|
85772
86499
|
state.hasVR = app.xr.isAvailable('immersive-vr');
|
|
85773
86500
|
// initialize ar/vr
|
|
@@ -85777,6 +86504,11 @@ const initXr = (global) => {
|
|
|
85777
86504
|
app.xr.on('available:immersive-vr', (available) => {
|
|
85778
86505
|
state.hasVR = available;
|
|
85779
86506
|
});
|
|
86507
|
+
// XR sessions require a WebGL device; under WebGPU we only expose availability so
|
|
86508
|
+
// the UI can offer to reload the viewer in WebGL mode.
|
|
86509
|
+
if (renderer !== 'webgl') {
|
|
86510
|
+
return;
|
|
86511
|
+
}
|
|
85780
86512
|
const parent = camera.parent;
|
|
85781
86513
|
const clearColor = new Color();
|
|
85782
86514
|
const parentPosition = new Vec3();
|
|
@@ -85894,16 +86626,21 @@ const loadSkybox = (app, url) => {
|
|
|
85894
86626
|
};
|
|
85895
86627
|
const createApp = async (canvas, config) => {
|
|
85896
86628
|
const useWebGPU = config.renderer === 'webgpu';
|
|
85897
|
-
// Create the graphics device
|
|
86629
|
+
// Create the graphics device. The engine auto-appends WebGL2/null fallbacks
|
|
86630
|
+
// when WebGPU isn't supported, so request xrCompatible so the WebGL fallback
|
|
86631
|
+
// is also usable for AR/VR.
|
|
85898
86632
|
const device = await createGraphicsDevice(canvas, {
|
|
85899
86633
|
deviceTypes: useWebGPU ? ['webgpu'] : [],
|
|
85900
86634
|
antialias: false,
|
|
85901
86635
|
depth: true,
|
|
85902
86636
|
stencil: false,
|
|
85903
|
-
xrCompatible:
|
|
86637
|
+
xrCompatible: true,
|
|
85904
86638
|
powerPreference: 'high-performance'
|
|
85905
86639
|
});
|
|
85906
86640
|
console.log(`Renderer: ${device.deviceType}`);
|
|
86641
|
+
// The engine may have fallen back from WebGPU to WebGL2; downstream code
|
|
86642
|
+
// (voxel overlay, XR, gsplat renderer selection) needs the *actual* renderer.
|
|
86643
|
+
const renderer = device.deviceType === 'webgpu' ? 'webgpu' : 'webgl';
|
|
85907
86644
|
// Set maxPixelRatio so the XR framebuffer scale factor is computed correctly.
|
|
85908
86645
|
// Regular rendering bypasses maxPixelRatio via the custom initCanvas sizing.
|
|
85909
86646
|
device.maxPixelRatio = window.devicePixelRatio;
|
|
@@ -85914,6 +86651,10 @@ const createApp = async (canvas, config) => {
|
|
|
85914
86651
|
touch: new TouchDevice$1(canvas),
|
|
85915
86652
|
keyboard: new Keyboard(window)
|
|
85916
86653
|
});
|
|
86654
|
+
// enable anonymous CORS for image loading in safari (must be set before any
|
|
86655
|
+
// texture asset starts loading, otherwise the <img> is fetched without the
|
|
86656
|
+
// crossorigin attribute and WebGL rejects it with SecurityError)
|
|
86657
|
+
app.loader.getHandler('texture').imgParser.crossOrigin = 'anonymous';
|
|
85917
86658
|
// Create entity hierarchy
|
|
85918
86659
|
const cameraRoot = new Entity('camera root');
|
|
85919
86660
|
app.root.addChild(cameraRoot);
|
|
@@ -85927,7 +86668,7 @@ const createApp = async (canvas, config) => {
|
|
|
85927
86668
|
});
|
|
85928
86669
|
app.root.addChild(light);
|
|
85929
86670
|
app.scene.ambientLight.set(0.51, 0.55, 0.65);
|
|
85930
|
-
return { app, camera };
|
|
86671
|
+
return { app, camera, renderer };
|
|
85931
86672
|
};
|
|
85932
86673
|
// initialize canvas size and resizing
|
|
85933
86674
|
const initCanvas = (global) => {
|
|
@@ -85977,7 +86718,7 @@ const initCanvas = (global) => {
|
|
|
85977
86718
|
apply();
|
|
85978
86719
|
};
|
|
85979
86720
|
const main = async (canvas, settingsJson, config) => {
|
|
85980
|
-
const { app, camera } = await createApp(canvas, config);
|
|
86721
|
+
const { app, camera, renderer } = await createApp(canvas, config);
|
|
85981
86722
|
// create events
|
|
85982
86723
|
const events = new EventHandler();
|
|
85983
86724
|
// migrate legacy `retinaDisplay` preference (inverted) to `performanceMode`
|
|
@@ -86014,7 +86755,8 @@ const main = async (canvas, settingsJson, config) => {
|
|
|
86014
86755
|
config,
|
|
86015
86756
|
state,
|
|
86016
86757
|
events,
|
|
86017
|
-
camera
|
|
86758
|
+
camera,
|
|
86759
|
+
renderer
|
|
86018
86760
|
};
|
|
86019
86761
|
initCanvas(global);
|
|
86020
86762
|
// start the application
|
|
@@ -86024,20 +86766,22 @@ const main = async (canvas, settingsJson, config) => {
|
|
|
86024
86766
|
initPoster(events);
|
|
86025
86767
|
}
|
|
86026
86768
|
camera.addComponent('camera');
|
|
86027
|
-
// Initialize XR support
|
|
86028
|
-
|
|
86029
|
-
|
|
86030
|
-
}
|
|
86769
|
+
// Initialize XR support (availability detection always runs so the UI can offer
|
|
86770
|
+
// a reload into WebGL when the user requests AR/VR under WebGPU)
|
|
86771
|
+
initXr(global);
|
|
86031
86772
|
// Initialize user interface
|
|
86773
|
+
initLocalization();
|
|
86032
86774
|
initUI(global);
|
|
86033
86775
|
// Load model
|
|
86034
86776
|
const gsplatLoad = loadGsplat(app, config, (progress) => {
|
|
86035
86777
|
state.progress = progress;
|
|
86036
86778
|
});
|
|
86037
|
-
// Load skybox
|
|
86779
|
+
// Load skybox (continue without if it fails — e.g. CORS, 404)
|
|
86038
86780
|
const skyboxLoad = config.skyboxUrl &&
|
|
86039
86781
|
loadSkybox(app, config.skyboxUrl).then((asset) => {
|
|
86040
86782
|
app.scene.envAtlas = asset.resource;
|
|
86783
|
+
}).catch((err) => {
|
|
86784
|
+
console.warn('Failed to load skybox:', err);
|
|
86041
86785
|
});
|
|
86042
86786
|
// Load collision data (type determined by file extension)
|
|
86043
86787
|
let collisionLoad;
|