This package contains the general code for streaming pointclouds from a Websocket Server, I am currently also adding displaying an video stream.
- Open this package using Unity.
- Install NativeWebsocket via UPM: https://github.com/endel/NativeWebSocket
- Install MsgPack via unitypackage: https://github.com/neuecc/MessagePack-CSharp
This File connects to a WS Server, expecting PointCloud Messages (or soon Image Messages). Just add it to an game object and fill in the required information.
- This file attempts to display the PointCloud from a PointCloudConnector.
- Fill in the required information.
(The unity point size is only used if the pointsize of the message is smaller than 0) - Choose a Shader from the
Shader
folder. (I recommendCubesFromQuads.shader
)
Example files showing necessary format for Unity.
You can simply use this repository (where I added Charuco detection), to detect the fiducial in the camera view. As modified object you can simply use the PointCloud of the HL2 Teleop Unity package.