stpete2 commited on
Commit
e26e6e6
·
verified ·
1 Parent(s): 66817c7

Upload 2 files

Browse files
Files changed (2) hide show
  1. log.md +33 -185
  2. preprocess_manual.js +4 -28
log.md CHANGED
@@ -1,4 +1,5 @@
1
- preprocess_manual.js] ===== MODULE LOADING =====
 
2
  main.js:16 [MAIN] DOMContentLoaded fired
3
  main.js:269 [MAIN] Calling setupPathsFromUrlOrSelect...
4
  main.js:46 [MAIN] setupPathsFromUrlOrSelect started
@@ -15,217 +16,64 @@ main.js:259 [MAIN] Waiting for file load promise...
15
  main.js:175 [MAIN] ===== Manual mode button clicked! =====
16
  main.js:178 [MAIN] Opening manual file input...
17
  main.js:184 [MAIN] ===== Manual file input changed! =====
18
- main.js:186 [MAIN] File object: FilelastModified: 1765948491436lastModifiedDate: Wed Dec 17 2025 14:14:51 GMT+0900 (日本標準時) {}name: "fountain_trim8.ply"size: 63528715type: ""webkitRelativePath: ""[[Prototype]]: File
19
- main.js:190 [MAIN] Manual file selected: fountain_trim8.ply Extension: ply
20
  main.js:198 [MAIN] Reading manual file...
21
- main.js:201 [MAIN] Manual file read complete, size: 63528715
22
- main.js:209 [MAIN] Manual mode file loaded: fountain_trim8.ply
23
- main.js:210 [MAIN] gsPath: blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea
24
- main.js:211 [MAIN] gsFileName: fountain_trim8.ply
25
  main.js:110 [MAIN] Hiding select UI
26
  main.js:215 [MAIN] ===== Resolving with MANUAL MODE =====
27
- main.js:261 [MAIN] File load promise resolved: ObjectgsPath: "blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea"gvrmPath: undefinedmanualMode: true[[Prototype]]: Object
28
- main.js:271 [MAIN] setupPathsFromUrlOrSelect returned: ObjectgsPath: "blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea"gvrmPath: undefinedmanualMode: true[[Prototype]]: Object
29
  main.js:277 [MAIN] After pathResult:
30
- main.js:278 - gsPath: blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea
31
  main.js:279 - gvrmPath: undefined
32
  main.js:280 - isManualMode: true
33
  main.js:283 [MAIN] Initializing renderer...
34
  main.js:289 [MAIN] Initializing camera...
35
  main.js:316 [MAIN] Initializing scene...
36
  main.js:323 [MAIN] Three.js initialization complete
37
- main.js:506 [MAIN] Processing GS file: blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea
38
  main.js:507 [MAIN] Manual mode: true
39
- main.js:519 [MAIN] fileName: fountain_trim8.gvrm
40
  main.js:529 [MAIN] ===== STARTING MANUAL PREPROCESSING MODE =====
41
  main.js:530 [MAIN] Parameters:
42
  main.js:531 - vrmPath: ./assets/sotai.vrm
43
- main.js:532 - gsPath: blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea
44
- main.js:533 - fileName: fountain_trim8.gvrm
45
  preprocess_manual.js:977 [preprocessManual] ===== FUNCTION CALLED =====
46
  preprocess_manual.js:978 [preprocessManual] Parameters:
47
  preprocess_manual.js:979 vrmPath: ./assets/sotai.vrm
48
- preprocess_manual.js:980 gsPath: blob:http://127.0.0.1:5500/de8e8a18-625c-4daa-9720-13f3976f8dea
49
- preprocess_manual.js:981 fileName: fountain_trim8.gvrm
50
  preprocess_manual.js:984 [preprocessManual] Creating Promise...
51
  preprocess_manual.js:84 [createManualUI] Creating manual preprocessing UI...
52
  preprocess_manual.js:988 [preprocessManual] UI created
53
  preprocess_manual.js:435 [ManualUI] initialize called
54
  main.js:541 [MAIN] preprocessManual called, waiting for promise...
55
  preprocess_manual.js:991 [preprocessManual] UI initialized, starting manual process...
56
- preprocess_manual.js:1005 [preprocessManual] PLY loaded: 256158 vertices
57
  preprocess_manual.js:1011 [preprocessManual] ===== ANALYZING PLY COORDINATE SYSTEM =====
58
- preprocess_manual.js:1026 [PCA] Center: Objectx: -0.2865427244435473y: 1.146382857667562z: 0.8843377857234578[[Prototype]]: Object
59
- preprocess_manual.js:1052 [PCA] Covariance matrix: Objectcxx: "0.36"cxy: "0.14"cxz: "0.06"cyy: "1.01"cyz: "0.95"czz: "1.20"[[Prototype]]: Object
60
- preprocess_manual.js:1067 [PCA] Variance ratios: Objectx: "14.1%"y: "39.2%"z: "46.7%"[[Prototype]]: Object
61
  preprocess_manual.js:1080 [PCA] Is aligned with world axes: false
62
  preprocess_manual.js:1120 [preprocessManual] ===== PLY DATA LOADED =====
63
  preprocess_manual.js:1121 [preprocessManual] PLY data is in CAMERA coordinate space
64
- preprocess_manual.js:1122 Total vertices: 256158
65
  preprocess_manual.js:1141 [preprocessManual] PLY bounds (CAMERA space):
66
- preprocess_manual.js:1142 Min: Objectx: "-1.400"y: "-1.173"z: "-0.838"[[Prototype]]: Object
67
- preprocess_manual.js:1143 Max: Objectx: "2.970"y: "3.243"z: "3.117"[[Prototype]]: Object
68
- preprocess_manual.js:1144 Center: Objectx: "0.785"y: "1.035"z: "1.139"[[Prototype]]: Object
69
  preprocess_manual.js:1150 [preprocessManual] ✓ PLY coordinates preserved (CAMERA space)
70
  preprocess_manual.js:1219 [preprocessManual] ✓ Coordinate transformation functions defined
71
- preprocess_manual.js:1455 [preprocessManual] GS initialized
72
- preprocess_manual.js:1474 [preprocessManual] No alignment transform needed for GS
73
- preprocess_manual.js:1481 [preprocessManual] Camera controls initialized
74
- preprocess_manual.js:1487 [preprocessManual] Keyboard controls initialized
75
- preprocess_manual.js:1551 [preprocessManual] Camera positioned at: Objectx: "0.00"y: "1.32"z: "8.83"[[Prototype]]: Object
76
- preprocess_manual.js:1556 [preprocessManual] Initial box setup - size: Objectx: 5.243591022491455y: 5.299250650405884z: 4.745910859107971[[Prototype]]: Object
77
- preprocess_manual.js:1599 [preprocessManual] UI sliders initialized to PLY-aligned values
78
- preprocess_manual.js:1605 [preprocessManual] ✓ Camera and Box aligned to PLY
79
- preprocess_manual.js:1386
80
-
81
-
82
- preprocess_manual.js:1387 ═══════════════════════════════════════════════════════
83
- preprocess_manual.js:1388 CONFIRM BOX BUTTON CLICKED
84
- preprocess_manual.js:1389 ═══════════════════════════════════════════════════════
85
- preprocess_manual.js:1418 [CONFIRM] World box (from UI): Objectmax: {x: 2.6, y: 2.65, z: 2.35}min: {x: -2.6, y: -2.65, z: -2.35}[[Prototype]]: Object
86
- preprocess_manual.js:1421 [CONFIRM] Transforming box to camera space...
87
- preprocess_manual.js:1425 [CONFIRM] Camera box (transformed): Objectmax: {x: 2.6, y: 2.969281399487064, z: -13.299051894408775}min: {x: -2.6, y: -2.969281399487064, z: -18.73325715342007}[[Prototype]]: Object
88
- preprocess_manual.js:1428 [CONFIRM] Displaying box in camera space...
89
- preprocess_manual.js:1247 [createCameraSpaceBox] Creating box in CAMERA space:
90
- preprocess_manual.js:1248 Min: Objectx: -2.6y: -2.969281399487064z: -18.73325715342007[[Prototype]]: Object
91
- preprocess_manual.js:1249 Max: Objectx: 2.6y: 2.969281399487064z: -13.299051894408775[[Prototype]]: Object
92
- preprocess_manual.js:1250 Center: Objectx: 0y: 0z: -16.016154523914423[[Prototype]]: Object
93
- preprocess_manual.js:1251 Size: Objectx: 5.2y: 5.938562798974128z: 5.434205259011295[[Prototype]]: Object
94
- preprocess_manual.js:1265 [createCameraSpaceBox] ✓ Box added in camera space
95
- preprocess_manual.js:1434 [CONFIRM] Filtering splats in camera space...
96
- preprocess_manual.js:1283 [filterSplatsByCameraBox] ===== FILTERING START =====
97
- preprocess_manual.js:1284 [filterSplatsByCameraBox] CAMERA-space box:
98
- preprocess_manual.js:1285 Min: Objectx: -2.6y: -2.969281399487064z: -18.73325715342007[[Prototype]]: Object
99
- preprocess_manual.js:1286 Max: Objectx: 2.6y: 2.969281399487064z: -13.299051894408775[[Prototype]]: Object
100
- preprocess_manual.js:1287 Total vertices: 256158
101
- preprocess_manual.js:1302 [filterSplatsByCameraBox] ===== FILTERING COMPLETE =====
102
- preprocess_manual.js:1303 Filtered: 0 / 256158
103
- preprocess_manual.js:1304 Retention rate: 0.0 %
104
- preprocess_manual.js:1439 ═══════════════════════════════════════════════════════
105
- preprocess_manual.js:1440 BOX FILTERING COMPLETE
106
- preprocess_manual.js:1441 ═══════════════════════════════════════════════════════
107
- preprocess_manual.js:1750
108
-
109
-
110
- preprocess_manual.js:1751 ═══════════════════════════════════════════════════════
111
- preprocess_manual.js:1752 CONFIRM BOX BUTTON CLICKED
112
- preprocess_manual.js:1753 ═══════════════════════════════════════════════════════
113
- preprocess_manual.js:1781 [STEP 1] Current BOX Settings (from UI):
114
- preprocess_manual.js:1782 Box Size: Objectx: 5.2y: 5.3z: 4.7[[Prototype]]: Object
115
- preprocess_manual.js:1783 Box Position: Objectx: 0y: 0z: 0[[Prototype]]: Object
116
- preprocess_manual.js:1784 Box Rotation (radians): Objectx: 0y: 0z: 0[[Prototype]]: Object
117
- preprocess_manual.js:1785 Box Rotation (degrees): Objectx: "0.0°"y: "0.0°"z: "0.0°"[[Prototype]]: Object
118
- preprocess_manual.js:1790 PLY Offset: Objectx: 0y: 0z: 0[[Prototype]]: Object
119
- preprocess_manual.js:1793 [STEP 1] Outer scope variables (for comparison):
120
- preprocess_manual.js:1794 boxSize: Object
121
- preprocess_manual.js:1795 boxPosition: Objectx: 0y: 0z: 0[[Prototype]]: Object
122
- preprocess_manual.js:1796 boxRotation: Objectx: 0y: 0z: 0[[Prototype]]: Object
123
- preprocess_manual.js:1797 plyOffset: Objectx: 0y: 0z: 0[[Prototype]]: Object
124
- preprocess_manual.js:1801 [STEP 2] Centered PLY Data (should be ~0,0,0):
125
- preprocess_manual.js:1802 Total vertices: 256158
126
- preprocess_manual.js:1816 Centered bounds:
127
- preprocess_manual.js:1817 X: -1.400 to 2.970
128
- preprocess_manual.js:1818 Y: -1.173 to 3.243
129
- preprocess_manual.js:1819 Z: -0.838 to 3.117
130
- preprocess_manual.js:1827 Centered center: Objectx: "0.785"y: "1.035"z: "1.139"[[Prototype]]: Object
131
- error.js:58 [STEP 2] ❌ ERROR: PLY is NOT properly centered!
132
- console.error @ error.js:58Understand this error
133
- error.js:58 [STEP 2] Expected ~(0,0,0) but got: Object
134
- console.error @ error.js:58Understand this error
135
- error.js:58 [STEP 2] This will cause Box filtering to fail!
136
- console.error @ error.js:58Understand this error
137
- preprocess_manual.js:1842 [STEP 2] Emergency re-centering...
138
- preprocess_manual.js:1848 [STEP 2] ✓ PLY force-centered to origin
139
- preprocess_manual.js:1906 [STEP 3] No PLY offset to apply
140
- preprocess_manual.js:1915 [STEP 4] ⭐ Transforming Box coordinates to GS local space
141
- preprocess_manual.js:1932 [STEP 4] Box position transformation:
142
- preprocess_manual.js:1933 World space: Objectx: 0y: 0z: 0[[Prototype]]: Object
143
- preprocess_manual.js:1934 GS local space: Objectx: "0.000"y: "0.000"z: "0.000"[[Prototype]]: Object
144
- preprocess_manual.js:1959 [STEP 4] Box rotation transformation:
145
- preprocess_manual.js:1960 World space (deg): Objectx: "0.0°"y: "0.0°"z: "0.0°"[[Prototype]]: Object
146
- preprocess_manual.js:1965 GS local space (deg): Objectx: "0.0°"y: "0.0°"z: "-180.0°"[[Prototype]]: Object
147
- preprocess_manual.js:537 [filterSplatsByBox] ===== FILTERING START =====
148
- preprocess_manual.js:538 [filterSplatsByBox] Input parameters:
149
- preprocess_manual.js:539 Box Size: Objectx: 5.2y: 5.3z: 4.7[[Prototype]]: Object
150
- preprocess_manual.js:540 Box Position: Objectx: 0y: 0z: 0[[Prototype]]: Object
151
- preprocess_manual.js:541 Box Rotation (radians): Objectx: -0y: 0z: -3.141592653589793[[Prototype]]: Object
152
- preprocess_manual.js:542 Box Rotation (degrees): Objectx: "0.0°"y: "0.0°"z: "-180.0°"[[Prototype]]: Object
153
- preprocess_manual.js:547 Total input vertices: 256158
154
- preprocess_manual.js:557 [filterSplatsByBox] Box half-extents: ObjecthalfX: 2.6halfY: 2.65halfZ: 2.35[[Prototype]]: Object
155
- preprocess_manual.js:558 [filterSplatsByBox] Using epsilon: 0.01
156
- preprocess_manual.js:565 [filterSplatsByBox] Rotation matrices created
157
- preprocess_manual.js:610 [DEBUG] Pre-filter summary:
158
- preprocess_manual.js:611 Inside: 256158
159
- preprocess_manual.js:612 Outside: 0
160
- preprocess_manual.js:613 Boundary vertices (within 0.5m): 20381
161
- preprocess_manual.js:616 [DEBUG] Sample boundary vertices:
162
- preprocess_manual.js:618 V4: world(-2.13, -0.14, 0.27) → local(2.13, 0.14, 0.27) → IN (dist: 0.471m)
163
- preprocess_manual.js:618 V8: world(-2.15, -0.14, 0.23) → local(2.15, 0.14, 0.23) → IN (dist: 0.453m)
164
- preprocess_manual.js:618 V9: world(-2.13, -0.16, 0.23) → local(2.13, 0.16, 0.23) → IN (dist: 0.467m)
165
- preprocess_manual.js:618 V12: world(-2.12, -0.07, -0.26) → local(2.12, 0.07, -0.26) → IN (dist: 0.476m)
166
- preprocess_manual.js:618 V15: world(-2.18, 1.20, 1.50) → local(2.18, -1.20, 1.50) → IN (dist: 0.423m)
167
- preprocess_manual.js:618 V37: world(-2.18, 1.02, 1.35) → local(2.18, -1.02, 1.35) → IN (dist: 0.424m)
168
- preprocess_manual.js:618 V38: world(-0.18, 2.20, 1.82) → local(0.18, -2.20, 1.82) → IN (dist: 0.454m)
169
- preprocess_manual.js:618 V41: world(-0.06, 2.04, 1.89) → local(0.06, -2.04, 1.89) → IN (dist: 0.461m)
170
- preprocess_manual.js:618 V48: world(-2.11, 0.66, 1.09) → local(2.11, -0.66, 1.09) → IN (dist: 0.486m)
171
- preprocess_manual.js:618 V49: world(-2.18, 0.67, 0.99) → local(2.18, -0.67, 0.99) → IN (dist: 0.419m)
172
- preprocess_manual.js:618 V52: world(0.15, 1.44, 1.95) → local(-0.15, -1.44, 1.95) → IN (dist: 0.397m)
173
- preprocess_manual.js:618 V59: world(-2.11, -0.29, -0.35) → local(2.11, 0.29, -0.35) → IN (dist: 0.488m)
174
- preprocess_manual.js:618 V63: world(-2.13, -0.36, -0.45) → local(2.13, 0.36, -0.45) → IN (dist: 0.474m)
175
- preprocess_manual.js:618 V70: world(-2.12, 0.13, 0.04) → local(2.12, -0.13, 0.04) → IN (dist: 0.479m)
176
- preprocess_manual.js:618 V81: world(-2.11, 0.13, 0.31) → local(2.11, -0.13, 0.31) → IN (dist: 0.490m)
177
- preprocess_manual.js:618 V92: world(-2.18, 0.76, 0.97) → local(2.18, -0.76, 0.97) → IN (dist: 0.418m)
178
- preprocess_manual.js:618 V97: world(-2.11, -0.05, 0.30) → local(2.11, 0.05, 0.30) → IN (dist: 0.493m)
179
- preprocess_manual.js:618 V98: world(-2.12, -0.14, 0.28) → local(2.12, 0.14, 0.28) → IN (dist: 0.478m)
180
- preprocess_manual.js:618 V99: world(-2.11, -0.03, 0.07) → local(2.11, 0.03, 0.07) → IN (dist: 0.487m)
181
- preprocess_manual.js:618 V100: world(-2.17, -0.15, 0.17) → local(2.17, 0.15, 0.17) → IN (dist: 0.428m)
182
- preprocess_manual.js:625 [filterSplatsByBox] Sample vertices (first 10):
183
- preprocess_manual.js:646 Vertex 0: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '1.523', y: '0.791', z: '-0.390'}world: {x: '-1.523', y: '-0.791', z: '-0.390'}[[Prototype]]: Object
184
- preprocess_manual.js:646 Vertex 1: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '1.494', y: '0.826', z: '-0.410'}world: {x: '-1.494', y: '-0.826', z: '-0.410'}[[Prototype]]: Object
185
- preprocess_manual.js:646 Vertex 2: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '1.387', y: '0.557', z: '-1.019'}world: {x: '-1.387', y: '-0.557', z: '-1.019'}[[Prototype]]: Object
186
- preprocess_manual.js:646 Vertex 3: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.092', y: '0.168', z: '0.347'}world: {x: '-2.092', y: '-0.168', z: '0.347'}[[Prototype]]: Object
187
- preprocess_manual.js:646 Vertex 4: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.129', y: '0.140', z: '0.271'}world: {x: '-2.129', y: '-0.140', z: '0.271'}[[Prototype]]: Object
188
- preprocess_manual.js:646 Vertex 5: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.028', y: '0.428', z: '-0.221'}world: {x: '-2.028', y: '-0.428', z: '-0.221'}[[Prototype]]: Object
189
- preprocess_manual.js:646 Vertex 6: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '1.901', y: '-0.469', z: '0.563'}world: {x: '-1.901', y: '0.469', z: '0.563'}[[Prototype]]: Object
190
- preprocess_manual.js:646 Vertex 7: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.016', y: '-0.157', z: '0.448'}world: {x: '-2.016', y: '0.157', z: '0.448'}[[Prototype]]: Object
191
- preprocess_manual.js:646 Vertex 8: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.147', y: '0.142', z: '0.232'}world: {x: '-2.147', y: '-0.142', z: '0.232'}[[Prototype]]: Object
192
- preprocess_manual.js:646 Vertex 9: Objectchecks: "X:true Y:true Z:true"inside: truelimits: {x: '[-2.61, 2.61]', y: '[-2.66, 2.66]', z: '[-2.36, 2.36]'}local: {x: '2.133', y: '0.156', z: '0.232'}world: {x: '-2.133', y: '-0.156', z: '0.232'}[[Prototype]]: Object
193
- preprocess_manual.js:681 [filterSplatsByBox] ===== FILTERING COMPLETE =====
194
- preprocess_manual.js:682 [filterSplatsByBox] Results:
195
- preprocess_manual.js:683 Filtered: 256158 / 256158
196
- preprocess_manual.js:684 Retention rate: 100.0 %
197
- preprocess_manual.js:700 [filterSplatsByBox] Filtered bounds (world space):
198
- preprocess_manual.js:701 X: -2.185 to 2.185 (size: 4.370 )
199
- preprocess_manual.js:702 Y: -2.208 to 2.208 (size: 4.416 )
200
- preprocess_manual.js:703 Z: -1.977 to 1.977 (size: 3.955 )
201
- preprocess_manual.js:704 Center: Object
202
- preprocess_manual.js:710 [filterSplatsByBox] ℹ️ Box is rotated - World-space bounds will differ from box size
203
- preprocess_manual.js:2003 [STEP 4] ✓ Filtering complete: 256158 splats kept
204
- preprocess_manual.js:2013 [STEP 5] Centering splats...
205
- preprocess_manual.js:2031 [STEP 5] Before centering: Object
206
- preprocess_manual.js:2041 [STEP 5] ✓ Splats centered to origin
207
- preprocess_manual.js:2044 [STEP 6] Saving filtered PLY...
208
- preprocess_manual.js:770 [downloadPLY] Downloaded: de8e8a18-625c-4daa-9720-13f3976f8dea_filtered_2025-12-17T08-53-08.ply
209
- preprocess_manual.js:2067 [STEP 6] ✓ PLY saved: de8e8a18-625c-4daa-9720-13f3976f8dea_filtered_2025-12-17T08-53-08.ply
210
- preprocess_manual.js:2068 [STEP 6] Statistics:
211
- preprocess_manual.js:2069 Original: 256158 vertices
212
- preprocess_manual.js:2070 Filtered: 256158 vertices
213
- preprocess_manual.js:2071 Reduction: 0.0 %
214
- preprocess_manual.js:2082 [STEP 7] Loading filtered splats into viewer...
215
- preprocess_manual.js:2095 [STEP 7] ✓ Filtered GS loaded
216
- preprocess_manual.js:2101 [STEP 7] ✓ VRM loaded
217
- preprocess_manual.js:2108 ═══════════════════════════════════════════════════════
218
- preprocess_manual.js:2109 BOX FILTERING COMPLETE
219
- preprocess_manual.js:2110 ═══════════════════════════════════════════════════════
220
- preprocess_manual.js:2111
221
-
222
-
223
- preprocess_manual.js:2164 [setupBoneAssignment] Starting bone assignment...
224
- preprocess_manual.js:2196 [calculateOptimalRadius] Object size: ObjectmaxSize: 4.41604220867157sizeX: 4.369659185409546sizeY: 4.41604220867157sizeZ: 3.9549257159233093[[Prototype]]: Object
225
- preprocess_manual.js:2197 [calculateOptimalRadius] Optimal radius: 0.22 m
226
- main.js:544 [MAIN] preprocessManual returned: Objecterror: nullgvrm: GVRM {isObject3D: true, uuid: '082ffdfd-7470-411f-9364-9c8843baf1b5', name: '', type: 'Group', parent: null, …}promise2: Promise {<pending>}ui: {container: div#manual-ui-container, initialize: ƒ, show: ƒ, hide: ƒ, setStatus: ƒ, …}[[Prototype]]: Object
227
- main.js:552 [MAIN] Manual preprocessing succeeded, setting up GVRM
228
- preprocess_manual.js:2239 [setupBoneAssignment] Available bones: 54
229
- preprocess_manual.js:2240 [setupBoneAssignment] Bone names: Array(54)
230
- preprocess_manual.js:2285 [updateBoneSelector] Updating for mode: required19
231
- preprocess_manual.js:2297 [updateBoneSelector] Added 20 groups
 
1
+ Live reload enabled.
2
+ preprocess_manual.js:16 [preprocess_manual.js] ===== MODULE LOADING =====
3
  main.js:16 [MAIN] DOMContentLoaded fired
4
  main.js:269 [MAIN] Calling setupPathsFromUrlOrSelect...
5
  main.js:46 [MAIN] setupPathsFromUrlOrSelect started
 
16
  main.js:175 [MAIN] ===== Manual mode button clicked! =====
17
  main.js:178 [MAIN] Opening manual file input...
18
  main.js:184 [MAIN] ===== Manual file input changed! =====
19
+ main.js:186 [MAIN] File object: FilelastModified: 1765963082871lastModifiedDate: Wed Dec 17 2025 18:18:02 GMT+0900 (日本標準時) {}name: "fountain_trim9.ply"size: 57407083type: ""webkitRelativePath: ""[[Prototype]]: File
20
+ main.js:190 [MAIN] Manual file selected: fountain_trim9.ply Extension: ply
21
  main.js:198 [MAIN] Reading manual file...
22
+ main.js:201 [MAIN] Manual file read complete, size: 57407083
23
+ main.js:209 [MAIN] Manual mode file loaded: fountain_trim9.ply
24
+ main.js:210 [MAIN] gsPath: blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9
25
+ main.js:211 [MAIN] gsFileName: fountain_trim9.ply
26
  main.js:110 [MAIN] Hiding select UI
27
  main.js:215 [MAIN] ===== Resolving with MANUAL MODE =====
28
+ main.js:261 [MAIN] File load promise resolved: ObjectgsPath: "blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9"gvrmPath: undefinedmanualMode: true[[Prototype]]: Object
29
+ main.js:271 [MAIN] setupPathsFromUrlOrSelect returned: ObjectgsPath: "blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9"gvrmPath: undefinedmanualMode: true[[Prototype]]: Object
30
  main.js:277 [MAIN] After pathResult:
31
+ main.js:278 - gsPath: blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9
32
  main.js:279 - gvrmPath: undefined
33
  main.js:280 - isManualMode: true
34
  main.js:283 [MAIN] Initializing renderer...
35
  main.js:289 [MAIN] Initializing camera...
36
  main.js:316 [MAIN] Initializing scene...
37
  main.js:323 [MAIN] Three.js initialization complete
38
+ main.js:506 [MAIN] Processing GS file: blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9
39
  main.js:507 [MAIN] Manual mode: true
40
+ main.js:519 [MAIN] fileName: fountain_trim9.gvrm
41
  main.js:529 [MAIN] ===== STARTING MANUAL PREPROCESSING MODE =====
42
  main.js:530 [MAIN] Parameters:
43
  main.js:531 - vrmPath: ./assets/sotai.vrm
44
+ main.js:532 - gsPath: blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9
45
+ main.js:533 - fileName: fountain_trim9.gvrm
46
  preprocess_manual.js:977 [preprocessManual] ===== FUNCTION CALLED =====
47
  preprocess_manual.js:978 [preprocessManual] Parameters:
48
  preprocess_manual.js:979 vrmPath: ./assets/sotai.vrm
49
+ preprocess_manual.js:980 gsPath: blob:http://127.0.0.1:5500/cd2d2575-a39c-4d02-b0b4-2607b7a4e6c9
50
+ preprocess_manual.js:981 fileName: fountain_trim9.gvrm
51
  preprocess_manual.js:984 [preprocessManual] Creating Promise...
52
  preprocess_manual.js:84 [createManualUI] Creating manual preprocessing UI...
53
  preprocess_manual.js:988 [preprocessManual] UI created
54
  preprocess_manual.js:435 [ManualUI] initialize called
55
  main.js:541 [MAIN] preprocessManual called, waiting for promise...
56
  preprocess_manual.js:991 [preprocessManual] UI initialized, starting manual process...
57
+ preprocess_manual.js:1005 [preprocessManual] PLY loaded: 231474 vertices
58
  preprocess_manual.js:1011 [preprocessManual] ===== ANALYZING PLY COORDINATE SYSTEM =====
59
+ preprocess_manual.js:1026 [PCA] Center: Objectx: -0.4318797040374531y: 0.9642921230655178z: 0.6977965961156872[[Prototype]]: Object
60
+ preprocess_manual.js:1052 [PCA] Covariance matrix: Objectcxx: "0.17"cxy: "-0.12"cxz: "-0.21"cyy: "0.76"cyz: "0.70"czz: "0.96"[[Prototype]]: Object
61
+ preprocess_manual.js:1067 [PCA] Variance ratios: Objectx: "9.2%"y: "40.2%"z: "50.6%"[[Prototype]]: Object
62
  preprocess_manual.js:1080 [PCA] Is aligned with world axes: false
63
  preprocess_manual.js:1120 [preprocessManual] ===== PLY DATA LOADED =====
64
  preprocess_manual.js:1121 [preprocessManual] PLY data is in CAMERA coordinate space
65
+ preprocess_manual.js:1122 Total vertices: 231474
66
  preprocess_manual.js:1141 [preprocessManual] PLY bounds (CAMERA space):
67
+ preprocess_manual.js:1142 Min: Objectx: "-1.400"y: "-0.542"z: "-0.838"[[Prototype]]: Object
68
+ preprocess_manual.js:1143 Max: Objectx: "2.083"y: "3.243"z: "3.116"[[Prototype]]: Object
69
+ preprocess_manual.js:1144 Center: Objectx: "0.342"y: "1.350"z: "1.139"[[Prototype]]: Object
70
  preprocess_manual.js:1150 [preprocessManual] ✓ PLY coordinates preserved (CAMERA space)
71
  preprocess_manual.js:1219 [preprocessManual] ✓ Coordinate transformation functions defined
72
+ preprocess_manual.js:1457 [preprocessManual] GS initialized
73
+ preprocess_manual.js:1476 [preprocessManual] No alignment transform needed for GS
74
+ preprocess_manual.js:1483 [preprocessManual] Camera controls initialized
75
+ preprocess_manual.js:1489 [preprocessManual] Keyboard controls initialized
76
+ preprocess_manual.js:1553 [preprocessManual] Camera positioned at: Objectx: "0.00"y: "1.19"z: "7.91"[[Prototype]]: Object
77
+ preprocess_manual.js:1558 [preprocessManual] Initial box setup - size: Objectx: 4.1794641494750975y: 4.54158546924591z: 4.745678830146789[[Prototype]]: Object
78
+ preprocess_manual.js:1601 [preprocessManual] UI sliders initialized to PLY-aligned values
79
+ preprocess_manual.js:1607 [preprocessManual] ✓ Camera and Box aligned to PLY
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
preprocess_manual.js CHANGED
@@ -1428,7 +1428,9 @@ if (confirmBoxBtn) {
1428
  console.log('[CONFIRM] Displaying box in camera space...');
1429
 
1430
  ui.removeBoundingBox(); // 古いBOXを削除
1431
- const boxHelper = createCameraSpaceBox(cameraBox, scene);
 
 
1432
 
1433
  // ⭐ Step 4: カメラ座標でフィルタリング
1434
  console.log('[CONFIRM] Filtering splats in camera space...');
@@ -1813,10 +1815,7 @@ if (confirmBoxBtn) {
1813
  centeredMaxZ = Math.max(centeredMaxZ, v.z);
1814
  });
1815
 
1816
- console.log(' Centered bounds:');
1817
- console.log(' X:', centeredMinX.toFixed(3), 'to', centeredMaxX.toFixed(3));
1818
- console.log(' Y:', centeredMinY.toFixed(3), 'to', centeredMaxY.toFixed(3));
1819
- console.log(' Z:', centeredMinZ.toFixed(3), 'to', centeredMaxZ.toFixed(3));
1820
 
1821
  const centeredCenter = {
1822
  x: (centeredMinX + centeredMaxX) / 2,
@@ -1824,29 +1823,7 @@ if (confirmBoxBtn) {
1824
  z: (centeredMinZ + centeredMaxZ) / 2
1825
  };
1826
 
1827
- console.log(' Centered center:', {
1828
- x: centeredCenter.x.toFixed(3),
1829
- y: centeredCenter.y.toFixed(3),
1830
- z: centeredCenter.z.toFixed(3)
1831
- });
1832
 
1833
- // ⭐ 検証: 中心が 0,0,0 から離れすぎている場合は警告
1834
- if (Math.abs(centeredCenter.x) > 0.1 ||
1835
- Math.abs(centeredCenter.y) > 0.1 ||
1836
- Math.abs(centeredCenter.z) > 0.1) {
1837
- console.error('[STEP 2] ❌ ERROR: PLY is NOT properly centered!');
1838
- console.error('[STEP 2] Expected ~(0,0,0) but got:', centeredCenter);
1839
- console.error('[STEP 2] This will cause Box filtering to fail!');
1840
-
1841
- // ⭐ 緊急修正: もう一度中心化
1842
- console.log('[STEP 2] Emergency re-centering...');
1843
- plyData.vertices.forEach(v => {
1844
- v.x -= centeredCenter.x;
1845
- v.y -= centeredCenter.y;
1846
- v.z -= centeredCenter.z;
1847
- });
1848
- console.log('[STEP 2] ✓ PLY force-centered to origin');
1849
- }
1850
 
1851
  cleanupAnimation();
1852
 
@@ -1869,7 +1846,6 @@ if (confirmBoxBtn) {
1869
 
1870
  await gs.viewer.dispose();
1871
  gs = await GVRM.initGS(adjustedPlyUrl, undefined, undefined, scene);
1872
- console.log('[STEP 3] ✓ GS reloaded with adjusted position');
1873
 
1874
  // ⭐ 外側の変数も更新(念のため)
1875
  plyOffset = { x: 0, y: 0, z: 0 };
 
1428
  console.log('[CONFIRM] Displaying box in camera space...');
1429
 
1430
  ui.removeBoundingBox(); // 古いBOXを削除
1431
+
1432
+ ///// step2におけるbox出現の理由?
1433
+ // const boxHelper = createCameraSpaceBox(cameraBox, scene);
1434
 
1435
  // ⭐ Step 4: カメラ座標でフィルタリング
1436
  console.log('[CONFIRM] Filtering splats in camera space...');
 
1815
  centeredMaxZ = Math.max(centeredMaxZ, v.z);
1816
  });
1817
 
1818
+
 
 
 
1819
 
1820
  const centeredCenter = {
1821
  x: (centeredMinX + centeredMaxX) / 2,
 
1823
  z: (centeredMinZ + centeredMaxZ) / 2
1824
  };
1825
 
 
 
 
 
 
1826
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1827
 
1828
  cleanupAnimation();
1829
 
 
1846
 
1847
  await gs.viewer.dispose();
1848
  gs = await GVRM.initGS(adjustedPlyUrl, undefined, undefined, scene);
 
1849
 
1850
  // ⭐ 外側の変数も更新(念のため)
1851
  plyOffset = { x: 0, y: 0, z: 0 };