Your files
Host your own pointcloud files and view them in virtual reality using ImmersivePoints.
How to host your own pointcloud files
To view your pointcloud in VR, you need to host your binary file on a web server and pass its URL to the viewer. Here's how:
1 Prepare your pointcloud file
Export your pointcloud as a binary file in one of the supported formats (see file format specifications below).
Large file? Compress it with Cloudini to make it several times smaller, so it downloads faster in the headset.
2 Host your file
ImmersivePoints does not host files: it is not possible to upload your data to the ImmersivePoints server or its storage bucket. Put your binary file on any web hosting service you control that supports CORS. Some options include:
- GitHub Pages - Free hosting for static files. Simply add your file to a repository and enable GitHub Pages.
- Amazon S3 - Create a public bucket in your own AWS account and configure CORS for it.
- Google Cloud Storage - Use a bucket in your own account with public access or CORS configured.
- Your own web server - Ensure CORS headers are set to allow requests from immersivepoints.com
Important: The hosting server must allow cross-origin requests (CORS) from immersivepoints.com for the viewer to load your file.
3 View in VR
Enter your hosted file URL below and we'll generate the viewer link for you:
Compress or decompress with Cloudini
Cloudini is an open-source point cloud compression format, also used for ROS bags and MCAP files. The viewer reads Cloudini files (.cldn) directly. Use the tools below to convert between ImmersivePoints files and Cloudini. Everything runs in your browser; your files are not uploaded anywhere.
Compress to Cloudini
Convert an ImmersivePoints file (.xyz, .xyzi or .xyzrgb, big-endian float32) to a .cldn file.
Decompress from Cloudini
Convert a .cldn file to an ImmersivePoints file. Files made with the compressor above come back in their original format. Other Cloudini clouds, such as ones from a ROS bag, are converted to XYZRGB with the same colours the viewer shows.
File format specifications
All binary files must be in float32 format. ImmersivePoints supports two raw formats, plus compressed Cloudini files:
Coordinate system
Give all positions in a right-handed frame with X forward, Y left and Z up. This is the ROS convention (REP 103) and the vehicle frame most lidar datasets use, so a cloud straight from a sensor shows up the right way round with no conversion.
| Axis | Direction | Axes helper color |
|---|---|---|
| X | Forward | Red |
| Y | Left | Green |
| Z | Up | Blue |
Box sizes and rotations, line end points and object poses use the same axes, so a vehicle's heading is its rotation around Z. The viewer starts behind the origin, looking along +X. Add &showAxes=true to check your data against the axes.
Do not swap columns to make Y point up: swapping two axes mirrors the scene. Files made for the viewer's older convention (three.js axes: X right, Y up, Z toward the viewer) can still be shown as stored with &axes=threejs, or "axes": "threejs" in a JSON config.
Point size
A point's size is its diameter in your data's units, usually meters. Points are drawn at their real perspective size, so a size of 0.1 looks as big as a 10 cm ball at the same spot, on desktop, on a phone and in VR alike. The default is 0.02 (2 cm). For data at a different scale, such as molecules in Γ₯ngstrΓΆm or star maps in light years, pick a size that matches its spacing.
- For a link: add
&pointSize=0.05. - In a JSON config:
"pointSize": 0.05at the top level sets the size for every cloud, and"pointSize"on a points entry (or onsequence.points) sets it for that cloud only. ApointSizeURL parameter replaces the top-level value, but not per-cloud ones. - While viewing: the Point size buttons in the top right, or the +, - and 0 (reset) keys, scale every cloud. In VR, hold the right grip button to make points bigger and the left grip to make them smaller.
XYZI Format 4 values per point
Position with hue-based coloring.
| Field | Type | Description |
|---|---|---|
| X | float32 | Position forwards |
| Y | float32 | Position upwards |
| Z | float32 | Position left |
| Hue | float32 | Color hue (0.0 β 1.0) |
XYZRGB Format 6 values per point
Position with full RGB color control.
| Field | Type | Description |
|---|---|---|
| X | float32 | Position forwards |
| Y | float32 | Position upwards |
| Z | float32 | Position left |
| Red | float32 | Red channel (0.0 β 1.0) |
| Green | float32 | Green channel (0.0 β 1.0) |
| Blue | float32 | Blue channel (0.0 β 1.0) |
Cloudini Compressed
A Cloudini file (.cldn) holds one compressed point cloud and is typically several times smaller than the raw file. Make one with the compressor above, with the Cloudini tools (for example pcd_to_cloudini_converter or the Cloudini Python encoder), or take the compressed_data of a ROS point_cloud_interfaces/CompressedPointCloud2 message. The viewer recognises Cloudini data automatically from its CLOUDINI_V header and reads every version up to 6.
| Field | Type | Used for |
|---|---|---|
| x, y, z | any numeric type | Position (required). Points with a NaN or infinite coordinate are skipped. |
| hue | float32 | Color hue (0.0 – 1.0), as in XYZI |
| rgb / rgba | uint32 or float32 | Packed 0x00RRGGBB color (ROS/PCL convention) |
| r, g, b | uint8, uint16 or float | Separate color channels |
| intensity | any numeric type | Colored from blue (low) to red (high) |
Bounding Boxes Coming Soon
Support for 3D bounding boxes is planned.
| Field | Type | Description |
|---|---|---|
| Center X | float32 | Center position, forward |
| Center Y | float32 | Center position, left |
| Center Z | float32 | Center position, up |
| Size X | float32 | Box length (along X) |
| Size Y | float32 | Box width (along Y) |
| Size Z | float32 | Box height (along Z) |
| Rotation X | float32 | Roll: rotation around X, in radians |
| Rotation Y | float32 | Pitch: rotation around Y, in radians |
| Rotation Z | float32 | Yaw (heading): rotation around Z, in radians |
| Red | float32 | Red channel (0.0 β 1.0) |
| Green | float32 | Green channel (0.0 β 1.0) |
| Blue | float32 | Blue channel (0.0 β 1.0) |
| Opacity | float32 | Transparency (0.0 β 1.0) |
Advanced: URL Parameters
The viewer supports several URL parameters for different use cases:
Simple file URL Recommended
Pass a URL to your hosted binary file. The file extension determines the format.
oculus.html?url=https://example.com/mycloud.xyzi
Use .xyzi, .xyzrgb or .cldn file extension to auto-detect format, or add &mode=xyzi, xyzrgb or cloudini for other file names. URLs with their own query string, such as presigned links, can be pasted as they are: put url= last, or after it only the viewer options mode, showAxes and autoRotate. Encoding the URL with encodeURIComponent also works. The older name= parameter works the same way.
Sequences Animated
Play a series of point clouds over time, such as one lidar sweep per frame. Export one file per frame with the frame number in its name, then put {i} where the number goes. Use {i:04} for zero-padded numbers like 0007.
oculus.html?url=https://example.com/scan_{i:04}.xyzi&frames=0-199&fps=10
frames is an inclusive range (0-199) or a count starting at 0 (200). fps defaults to 10.
To add boxes and lines per frame, or a static map that stays visible, use a JSON config with a sequence entry. Pass it as jsonb64, or host the JSON file next to your frames and pass its URL with config=, which keeps long sequences out of the link:
oculus.html?config=https://example.com/drive.json
{
"points": [ { "source": "url", "url": "https://example.com/map.xyzrgb", "type": "XYZRGB" } ],
"sequence": {
"points": { "url": "https://example.com/scan_{i:04}.xyzi", "type": "XYZI" },
"bboxes": { "url": "https://example.com/boxes_{i:04}.bbox" },
"start": 0,
"count": 200
},
"fps": 10,
"loop": true
}
If your files aren't numbered, list them instead. Every frame uses the same fields as a static scene, and an optional label (such as a timestamp) is shown next to the frame number:
{
"frames": [
{ "label": "12:00:00.0", "points": [ { "source": "url", "url": "https://example.com/a.xyzi", "type": "XYZI" } ] },
{ "label": "12:00:00.1", "points": [ { "source": "url", "url": "https://example.com/b.xyzi", "type": "XYZI" } ] }
],
"fps": 10
}
Exporting frames from Python:
for i, scan in enumerate(scans): # each scan: float32 array with 4 columns (x, y, z, hue)
scan.astype('>f4').tofile(f'scan_{i:04d}.xyzi')
Controls: on desktop, use the playback bar, Space (play/pause) and the Left/Right arrow keys (step). In VR, A or X plays and pauses, B steps forward and Y steps back. Frames load in the background, starting with the first one. Every loaded frame stays in memory, so keep the total number of points across all frames within what your headset can handle.
Inline Base64 Points No hosting required
Embed small pointclouds directly in the URL as base64-encoded data. Great for sharing without hosting.
oculus.html?base64=YOUR_BASE64_ENCODED_DATA
Encode your binary float32 data as base64. Works for XYZI format.
JSON Configuration Advanced
For complex scenes with multiple pointclouds, lines, bounding boxes, and 3D objects, use a base64-encoded JSON configuration.
oculus.html?jsonb64=BASE64_ENCODED_JSON
Example JSON structure:
{
"points": [
{
"source": "url",
"url": "https://example.com/cloud1.xyzi",
"type": "XYZI",
"pointSize": 0.05
},
{
"source": "base64",
"base64": "BASE64_DATA_HERE",
"type": "XYZRGB"
}
],
"lines": [
{
"source": "url",
"url": "https://example.com/lines.bin"
}
],
"bboxes": [
{
"source": "url",
"url": "https://example.com/boxes.bbox"
}
],
"objects": [
{
"source": "url",
"url": "https://example.com/model.glb",
"position": [1.0, 2.0, 3.0],
"rotation": [0.0, 0.0, 0.0],
"scale": [1.0, 1.0, 1.0]
}
]
}
Object position, rotation (radians, around X, Y and Z) and scale use the data axes. glTF models are made Y up with their front facing +Z; the viewer stands them up along Z with their front along +X. Add "axes": "threejs" to show a whole config as stored.
Additional Options
| Parameter | Values | Description |
|---|---|---|
| mode | xyzi, xyzrgb, cloudini | Specify format when using name parameter (overrides the file extension) |
| axes | flu, threejs | flu (default): X forward, Y left, Z up. threejs: show the data as stored, for files made for the older convention. See Coordinate system. |
| pointSize | number > 0 | Point diameter in your data's units (usually meters). Default 0.02. See Point size. |
| showAxes | true, false | Show the axes: X red, Y green, Z blue |
| autoRotate | true, false | Auto-rotate the camera around the scene |
Lines Format
Lines are defined as pairs of 3D points. Each line segment uses 6 float32 values:
| Field | Type | Description |
|---|---|---|
| X1, Y1, Z1 | float32 Γ 3 | Start point of the line |
| X2, Y2, Z2 | float32 Γ 3 | End point of the line |
Example export scripts
Need help exporting your pointcloud data? Check out these example notebooks: