Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/irobot1/ng3-vr-examples

VR examples using @angular-three
https://github.com/irobot1/ng3-vr-examples

3d angular angular-three augmented-reality cannon-es dagre directed-graph lil-gui ngraph svg svg-icons threejs typescript virtual-reality vr webgl webxr

Last synced: 7 days ago
JSON representation

VR examples using @angular-three

Awesome Lists containing this project

README

        

VR Examples for @angular-three

[DEMO here](https://ng3vr.z9.web.core.windows.net/)

![image](https://user-images.githubusercontent.com/25032599/182047284-40ef9a33-db46-4591-90f0-3455f0b22fba.png)

Enter VR to experience each demo in person or touch/mouse a panel to preview an example or move/pan around.

Point the controller at a panel to activate. Pull the `Trigger` on the controller to open/experience the example.

Click the `Grab` button to return to the home screen

### Examples

#### Ball Shooter
Pull the trigger to shoot balls

#### Dragging
Point at a shape. When highlighted, pull the trigger to move the shape. Release the trigger to stop moving.

#### Hand Input
The example requires Oculus Quest or equivalent and is still under development

#### Teleport
Pull the trigger at a location on the floor. Release the trigger to teleport there.

#### Physics Ball
Hit balls with a baseball bat. Score a point when you hit one in the yellow box.

#### Grab / Inspect
When controller overlaps a cube, pull the trigger to pickup. Release trigger to drop. Throwing also works.

#### Drumstick / Keyboard
Use the drumstick to tap keys on the virtual keyboard to enter a message. Press Enter to clear the message.

#### Touchpad Movement
Use the touchpad to move forward and sideways.

#### Joystick Movement
Use the joystick to move forward and sideways.

#### Toggle Controller Behavior
Point controller at a button to enable/disable that capability on the controller. Capabilites include dragging shapes, teleporting, highlighting and showing the track pointer and controller model

#### Lights, Camera, Action
Wall textures show what camera 1 and 2 can see. Grab and move the cameras. Grab and move spot lights.

#### Paint
Pull trigger and move controller to start painting. Use the joystick to increase/decrease the size of the paint brush.

#### HTML Mesh GUI
Shows lil-GUI being used in VR. Point at sliders to change shape parameters

#### World Scale
Pull triggers on both controllers. Moving controllers closer makes the model smaller. Moving apart ameks the model larger.

## Code Highlights
Add webvr to ngt-canvas to enable WebVR support
```html

```
Add vr-controller to add left and/or right controllers into a scene. Index 0 is left controller, Index 1 is right controller.
```html

```
Add directives to vr-controller to add behaviors depending on needs
* showcontroller - shows controller
* trackedpointer - shows ray to point at stuff
* teleport - teleport to new location on floor. Requires `[floor]` and `[room]`
```html

```

All behaviors can be enabled/disabled at runtime on either controller. The allows behaviors to be switched between controllers if needed.
```html

```