Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@gfodor/xatlas-web
Advanced tools
[![Actions Status](https://github.com/jpcy/xatlas/workflows/build/badge.svg)](https://github.com/jpcy/xatlas/actions) [![Appveyor CI Build Status](https://ci.appveyor.com/api/projects/status/github/jpcy/xatlas?branch=master&svg=true)](https://ci.appveyor.
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.
Viewer | Random packing | Brute force packing |
---|---|---|
Premake is used. For CMake support, see here.
Integration into an existing build is simple, only xatlas.cpp
and xatlas.h
are required. They can be found in source/xatlas
Run build\premake.bat
. Open build\vs2019\xatlas.sln
.
Note: change the build configuration to "Release". The default - "Debug" - severely degrades performance.
Required packages: libgl1-mesa-dev libgtk-3-dev xorg-dev
.
Install Premake version 5. Run premake5 gmake
, cd build/gmake
, make
.
xatlas::Create
.xatlas::AddMesh
.xatlas::Generate
. Meshes are segmented into charts, which are parameterized and packed into an atlas.The xatlas::Atlas
instance created in the first step now contains the result: each input mesh added by xatlas::AddMesh
has a corresponding new mesh with a UV channel. New meshes have more vertices (the UV channel adds seams), but the same number of indices.
Cleanup with xatlas::Destroy
.
Instead of calling xatlas::Generate
, the following functions can be called in sequence:
xatlas::ComputeCharts
: meshes are segmented into charts and parameterized.xatlas::PackCharts
: charts are packed into one or more atlases.All of these functions take a progress callback. Return false to cancel.
You can call any of these functions multiple times, followed by the proceeding functions, to re-generate the atlas. E.g. calling xatlas::PackCharts
multiple times to tweak options like unit to texel scale and resolution.
See the viewer for example code.
xatlas::Create
.xatlas::AddUvMesh
.xatlas::PackCharts
.Ignacio Castaño's blog post on thekla_atlas
P. Sander, J. Snyder, S. Gortler, and H. Hoppe. Texture Mapping Progressive Meshes
K. Hormann, B. Lévy, and A. Sheffer. Mesh Parameterization: Theory and Practice
P. Sander, Z. Wood, S. Gortler, J. Snyder, and H. Hoppe. Multi-Chart Geometry Images
D. Julius, V. Kraevoy, and A. Sheffer. D-Charts: Quasi-Developable Mesh Segmentation
B. Lévy, S. Petitjean, N. Ray, and J. Maillot. Least Squares Conformal Maps for Automatic Texture Atlas Generation
O. Sorkine, D. Cohen-Or, R. Goldenthal, and D. Lischinski. Bounded-distortion Piecewise Mesh Parameterization
Y. O’Donnell. Precomputed Global Illumination in Frostbite
DXR Ambient Occlusion Baking - A demo of ambient occlusion map baking using DXR inline ray tracing.
Lightmaps - An OpenGL sample demonstrating path traced lightmap baking on the CPU with Embree
aobaker - Ambient occlusion baking. Uses thekla_atlas.
Lightmapper - Hemicube based lightmap baking. The example model texture coordinates were generated by thekla_atlas.
Microsoft's UVAtlas - isochart texture atlasing.
Ministry of Flat - Commercial automated UV unwrapper.
seamoptimizer - A C/C++ single-file library that minimizes the hard transition errors of disjoint edges in lightmaps.
simpleuv - Automatic UV Unwrapping Library for Dust3D.
Gazebo model by Teh_Bucket
FAQs
[![Actions Status](https://github.com/jpcy/xatlas/workflows/build/badge.svg)](https://github.com/jpcy/xatlas/actions) [![Appveyor CI Build Status](https://ci.appveyor.com/api/projects/status/github/jpcy/xatlas?branch=master&svg=true)](https://ci.appveyor.
The npm package @gfodor/xatlas-web receives a total of 1 weekly downloads. As such, @gfodor/xatlas-web popularity was classified as not popular.
We found that @gfodor/xatlas-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.