You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,9 @@ Main Viewer | Miniature Viewer
14
14
### Quickstart
15
15
- Run the executable `Point_Cloud_Viewer.exe` or `Miniature_Point_Cloud_Viewer.exe`.
16
16
- Once the app loads, a file browser should open automatically.
17
-
- Select a CSV pointcloud file, with the expected format.
18
-
- Wait for the application to parse the file and render the points.
17
+
- Select a PLY (binary) or CSV pointcloud file, with the [expected format](#compatible-file-format).
18
+
- Wait for the application to parse the file and render the points.
19
+
> **Note:** binary `.ply` files parse significantly faster than `.csv`
19
20
- For the main viewer, use `Q` & `E` to adjust the vertical position of the point cloud so the camera appears to be at head height, and the floor in the scan matches the ground plane. Then walk around inside the scan.
20
21
- For the miniature viewer, experiment with the transform controls listed below to view the diorama.
21
22
- To exit the application and close the executable, press `ESC`.
@@ -36,21 +37,26 @@ Main Viewer | Miniature Viewer
36
37
- The scan will not appear until you put on the headset.
37
38
38
39
### Compatible file format
39
-
Only files with the expected format will open correctly. Attempting to open unexpected files will terminate the unity application. The application expects `.csv` files downloaded from the `sweep-3d-scanner` or exported from the `Sweep Visualizer` desktop application.
40
+
Only files with the expected format will open correctly. Attempting to open unexpected files will terminate the unity application. The application expects either `.csv` or `.ply (binary)` files downloaded from the `sweep-3d-scanner` or exported from the `Sweep Visualizer` desktop application.
40
41
41
-
If you want to convert custom data to make a compatible file, create a CSV file with the following format:
42
+
If you want to convert custom data to make a compatible file, create a CSV file where the first line is a header, subsequent rows represent points, and the first 3 columns are `X`, `Y` and `Z`. Optionally, you can include a 4th column called `SIGNAL_STRENGTH`. Example file contents shown below.
42
43
```csv
43
-
SCAN_INDEX,X,Y,Z,SIGNAL_STRENGTH
44
-
0,6.7,-124.2,-71.3,183
45
-
0,6.7,-125.4,-69.2,187
44
+
X,Y,Z
45
+
6.7,-124.2,-71.3
46
+
6.7,-125.4,-69.2
47
+
...
48
+
49
+
or
50
+
51
+
X,Y,Z,SIGNAL_STRENGTH
52
+
6.7,-124.2,-71.3,199
53
+
6.7,-125.4,-69.2,199
46
54
...
47
55
```
48
56
49
-
- SCAN_INDEX: is the index of the 2D slice of a 3D scan. This is a reference to the data acquisition process used by the 3D scanner, and is NOT used by the unity viewer. If you are making a file from scratch, simply use 0 for every entry.
50
57
- X,Y,Z: Integer or floating point values representing the x, y and z coordinates for each point. Units are in cm. Assumes a right handed coordinate system, where z is up. Note: this is NOT the same as unity's coordinate system, which is left handed with y up.
51
58
- SIGNAL_STRENGTH: integer value between [0:254] indicating strength/confidence in the sensor reading. Higher values are stronger readings, lower values are weaker readings. The color of points in the viewer are determined by this value, by mapping the range [0:254] to the entirety of the HUE spectrum in HSV color space. If you are generating a custom file, and you do NOT have signal strength values for your data points, simply use the same value for every point.
52
59
53
-
54
60
## Unity Project
55
61
### Packages/Dependencies
56
62
-`Standard Assets/Characters`: provides first person character controller
0 commit comments