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

https://github.com/angydev/three-clipping-vr

The clipping function of the project threejs-clipping applied in a VR project
https://github.com/angydev/three-clipping-vr

javascript threejs vr

Last synced: 4 months ago
JSON representation

The clipping function of the project threejs-clipping applied in a VR project

Awesome Lists containing this project

README

          

# Clipping in VR

This code implements clipping in a virtual reality scene using the Three.js library. It includes classes, methods, and examples that are useful for creating and manipulating clipping planes, or for adjusting the visibility of objects in a Three.js VR scene based on the position of the user's head-mounted display. The function used in the project [threejs-clipping](https://github.com/AngyDev/threejs-clipping) is not used because when this function is applied to this case the colored clipping planes are not visible in the correct space, they are translated, I wasn't able to figure out why.

## Demo

https://clipping-vr.netlify.app/


## Functionalities

- Import an STL file
- Add planes
- Hide planes
- Clipping
- Nagate clipping
- Join mesh, with this function is possible to move all the objects in the scene together
- Scale the selected object
- With the controller is possible to move the object in the scene

## Setup

If you want to start the application in local:

1. Clone the project `git clone git@github.com:AngyDev/three-clipping-vr.git`
2. With your terminal go in the folder where you cloned the project
3. Run the command `npm install` to install the dependencies
4. Run the command `npm run start` to run the project