Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kfarr/hello-threejs-gltf-lkg


https://github.com/kfarr/hello-threejs-gltf-lkg

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# hello-threejs-gltf-lkg

"known good" example of working three.js gltf/glb -> looking glass display setup

original source:
https://codesandbox.io/s/hello-three-js-gltf-c4uyw2?from-embed=&file=/src/index.js

from these docs:
https://docs.lookingglassfactory.com/developer-tools/webxr/three.js#the-basics

modified to use a different hdr and scenes exported from 3dstreet in glb format

## Instructions to view your 3DStreet scene on a Looking Glass Display
* Open or create a [3DStreet scene](https://3dstreet.app) that you'd like to view in 3D on the Looking Glass
* In 3DStreet Editor, click Save > Save as GLB (or Share > Download as GLB)
* Clone [this repository]([url](https://github.com/kfarr/hello-threejs-gltf-lkg/)) and copy your saved 3DStreet glb into /src/assets of this repository as target.glb
* Run `npm install` then run `npm start`
* Ensure that Looking Glass Bridge is installed for your OS and has recognized your looking glass as described here: https://lookingglassfactory.com/software/looking-glass-bridge
* Ensure that your Looking Glass shows your second desktop as described in WebXR instructions: https://docs.lookingglassfactory.com/developer-tools/webxr
* Open your browser to http://localhost:1234/
* Click "ENTER VR"
* Manually move the new window that pops up to your Looking Glass display (see Image 1)
* Double click on the window
* Now zoom out a little bit by scrolling up or down, and use the new controls to modify the appearance of your scene (see Image 2) Keep experimenting with all the levers on the View Controls, they can really change the feeling and mood of the scene!

Image 1 - Double click the "Looking Glass Window" to make fullscreen after moving window over to your Looking Glass device. It's supposed to look weird like this.

![image](https://github.com/kfarr/hello-threejs-gltf-lkg/assets/470477/80172cfd-3c29-484f-bf8a-6353adef6ba8)

Image 2 - LookingGlass WebXR View Controls - spend some time tweaking these!

![image](https://github.com/kfarr/hello-threejs-gltf-lkg/assets/470477/cdbb7177-7d33-482b-8aa2-70b76e8bd069)