Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polygonjs/example-plugin-occlusion
https://github.com/polygonjs/example-plugin-occlusion
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/polygonjs/example-plugin-occlusion
- Owner: polygonjs
- Created: 2021-01-27T19:35:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T17:10:31.000Z (12 months ago)
- Last Synced: 2024-04-17T22:14:51.539Z (7 months ago)
- Language: TypeScript
- Size: 51.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polygonjs Plugin Occlusion Example
This repository shows how to use the [Occlusion Plugin](https://github.com/polygonjs/plugin-occlusion) for the WebGL engine [Polygonjs](https://github.com/polygonjs/polygonjs).
This plugin adds a node `SOP/Occlusion` which adds an occlusion attribute to a geometry (downloaded from [threedscans](http://threedscans.com/)), which in turn can be used in the material builder.
![Geometries with occlusion](https://github.com/polygonjs/example-plugin-occlusion/blob/main/doc/occlusion_examples.jpg?raw=true)
## Open the scene in the WebGL editor`yarn && yarn polygon`
and open your browser at:
`http://localhost:8091?scene=default`
This will open the scene saved in this repo. It is a simple scene with a few geometry, whose occlusion is added via the SOP/Occlusion node.
![Occlusion plugin from Polygonjs node-based Editor](https://github.com/polygonjs/example-plugin-occlusion/blob/main/doc/occlusion_example_in_editor.jpg?raw=true)
## Open the export scene without the editor
`yarn && yarn run snowpack dev`
and open your browser at:
`http://localhost:8080`