Skip to content

davreev/demo-mesh-parameterize

Repository files navigation

Demo: Mesh Parameterize

Demo and reference implementations of mesh parameterization methods 1 2 for automated UV mapping of triangle meshes.

Try it here: https://davreev.gitlab.io/demos/mesh-parameterize/

Build

This project can be built to run natively or in a web browser. Build instructions vary slightly between the two targets.

Native Build

Build via cmake

⚠️ Currently only tested with Clang and GCC. MSVC is not supported.

mkdir build
cmake -S . -B ./build -G <generator>
cmake --build ./build [--config <config>]

Web Build

Download the Emscripten SDK and dot source the appropriate setup script

# Bash
EMSDK_DIR="absolute/path/of/emsdk/root"
. ./emsc-setup.sh

# Powershell
$EMSDK_DIR="absolute/path/of/emsdk/root"
. ./emsc-setup.ps1

Then build via emcmake

mkdir build 
emcmake cmake -S . -B ./build -G <generator>
cmake --build ./build [--config <config>]

Output can be served locally for testing e.g.

python -m http.server

Dependencies

The following build-time dependencies are expected to be installed locally:

  • glslangValidator (>= 12.2.*)
  • spirv-cross ( >= 2021.01.15)

Remaining dependencies are fetched during CMake's configure step. See cmake/deps for a complete list.

Footnotes

  1. Least squares conformal maps

  2. Spectral conformal parameterization

About

Demo and reference implementations of mesh parameterization methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published