Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/needle-engine/progressive-meshes-sample
This repository contains two samples for progressive meshes / automatic LOD generation with Needle Engine using either just Vite or Needle Engine with Unity
https://github.com/needle-engine/progressive-meshes-sample
engine needle threejs unity unity3d webgl webxr
Last synced: 3 months ago
JSON representation
This repository contains two samples for progressive meshes / automatic LOD generation with Needle Engine using either just Vite or Needle Engine with Unity
- Host: GitHub
- URL: https://github.com/needle-engine/progressive-meshes-sample
- Owner: needle-engine
- Created: 2024-04-04T13:10:30.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-25T14:46:29.000Z (9 months ago)
- Last Synced: 2024-09-27T12:03:28.127Z (3 months ago)
- Topics: engine, needle, threejs, unity, unity3d, webgl, webxr
- Language: TypeScript
- Homepage: https://engine.needle.tools/demos/lods/
- Size: 78 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Progressive Meshes and automatic LOD generation
This repository contains examples for progressive mesh loading and automatic LOD generation - a new feature in Needle Engine >= 3.36
Key features:
- **Reduced download size** for faster loading of your website.
- **Improved performance** for rendering, physics and raycasting.
- Load highpoly meshes and we make it run smoothly!The repository contains two example setups. One uses Unity and the other one just uses vite and doesn't require any editor.
## 1) Vite
The vite project is setup to run locally or build and deploy to glitch using node.
1) Go to `./Progressive Meshes Vite Sample`
2) Run `npm i && npm start`
3) See [README](./Progressive%20Meshes%20Vite%20Sample/README.md) for more details## 2) Unity
The project uses Unity 2021.3 and Needle Engine 3.36 Beta.
- **[Live Version](https://engine.needle.tools/demos/lods/)** / [Alternative Version with Postprocessing](https://engine.needle.tools/demos/lod-postprocessing/)
- [Code](./Progressive%20Meshes%20Unity%20Sample/Needle%20Web%20Project/src/modelswitch.ts)### How to use
1) Open the Unity project and the "Scene"
2) Click Play
3) After export and compression the local server opens in the browser[Learn More](https://docs.needle.tools)
----
## Videos
https://github.com/needle-engine/progressive-meshes-sample/assets/5083203/83787c66-1ad8-49f7-8b73-0c9413415334
https://github.com/needle-engine/progressive-meshes-sample/assets/5083203/31f43ded-d4a7-47eb-8b92-c1cbfa444bfb
https://github.com/needle-engine/progressive-meshes-sample/assets/5083203/b3771728-d443-409a-bb76-84f5240f2b16