xatlas.js and xatlas-three
xatlas.js - (xAtlas Wrapper)
Mesh parameterization library for use on web and js.
INFO
xatlas.js is a wrapper for xatlas for js. It uses emcc
to compile WASM from C++ codebase and can be used as a simple js module or as a webworker with comlink
xatlas is a small C++11 library with no external dependencies that generates unique texture coordinates suitable for baking lightmaps or texture painting. It is an independent fork of thekla_atlas, used by The Witness.
Github: https://github.com/repalash/xatlas.js
xatlas-three - XAtlas + Three.js
Mesh parameterization / UV unwrapping module for three.js
Github: https://github.com/repalash/xatlas-three
INFO
xAtlas + three.js: Mesh parameterization / UV unwrapping module for three.js in wasm with webworkers.
Can be used to unwrap UVs in BufferGeometry
or pack multiple geometries into a single atlas for lightmap/AO baking.
To use xatlas in JS without three.js you can use xatlas.js directly.
Examples
- Unwrap geometry and debug UV - https://repalash.com/xatlas-three/public/uvs-debug.html
- Pack multiple geometries into a single atlas and unwrap GLTF - https://repalash.com/xatlas-three/public/pack-atlas.html