Livelink.js
The Livelink.js SDK offers a JavaScript interface to interact with cloud-renderd 3D scene from a client application. Behind the scenes, it opens a WebSocket connection with the rendering engine and allows you to:
- stream rendered frames to an HTML Canvas.
- send commands to the rendering engine.
- listen to events from the rendering engine.
Setup
- Import the library in a script tag.
1
- Add an HTML Canvas to your page.
1
2
3
4
5
6
7
8
- Get a Public Token and the UUID of the scene to from the 3dverse Console.
- Join or start a session:
1
2
3
4
5
6
7
8
Putting it all together:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Code samples
Explore code samples on Github:
- Basic HTML/JS Starter
- Next.js Starters:
- How to use the Camera Controller
- How to spawn entities
- How to search entities