Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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