Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/polygonjs/example-plugin-occlusion


https://github.com/polygonjs/example-plugin-occlusion

Last synced: 21 days ago
JSON representation

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`