Websockets and Augmented Reality @grae_n
Websockets and Augmented Reality  @grae_n
Uploaded July 2022 | Updated November 2026, 3 hours ago
This demonstrates using websockets together with augmented reality (webxr). The red box on the right is following the kinematic information for the phone on the left. The two videos are synced manually but because of some frame drops they didn't line up exactly.

**Please make sure websockets are secure if you do anything in the wild with this.

Time Stamps
0:00 Intro
2:24 Server setup
3:22 Example
4:30 JavaScript Client Code
6:14 Python Server Code

Django Channels / Nginx setups:
1. digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04#step-8-%E2%80%94-checking-for-the-gunicorn-socket-file
2. digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
3. channels.readthedocs.io/en/stable

Code: github.com/graemeniedermayer/ArExperiments/tree/main/javascript/websockets
Websockets and Augmented Reality3 Simple Augmented Reality Projects (Quest webxr)Magnetic Fields in Augmented Realitysmoothly relighting AI artPlane Detection in webxrNormal Maps for Stable DiffusionAI Word Art and Fonts with Stable DiffusionImage Tracking with WebxrJarvis Visualization (AlexNet mapped)Differential Eq + Depth #1The Crazy World of Neural RenderingStable Fluids in Augmented Reality
Grae n |

Websockets and Augmented Reality

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER