Skip to content

RamType0/Meshia.MeshSimplification

Repository files navigation

Meshia Mesh Simplification

English

Mesh simplification tool/library for Unity, VRChat.

Based on Unity Job System, and Burst. Provides fast, asynchronous mesh simplification.

Can be executed at runtime or in the editor.

Installation

VPM

Add my VPM repository to VCC, then add Meshia Mesh Simplification package to your projects.

How to use

NDMF integration

Attach MeshiaMeshSimplifier to your models.

You can preview the result in EditMode.

Call from C#

using Meshia.MeshSimplification;

Mesh simplifiedMesh = new();

// Asynchronous API

await MeshSimplifier.SimplifyAsync(originalMesh, target, options, simplifiedMesh);

// Synchronous API

MeshSimplifier.Simplify(originalMesh, target, options, simplifiedMesh);

日本語

Unity、VRChat向けのメッシュ軽量化ツールです。 Unity Job Systemで動作するため、Burstと合わせて高速、かつ非同期で処理ができるのが特徴です。 ランタイム、エディターの双方で動作します。

インストール

VPM

VPM repositoryをVCCに追加してから、Manage Project > Manage PackagesからMeshia Mesh Simplificationをプロジェクトに追加してください。

使い方

NDMF統合

NDMFがプロジェクトにインポートされている場合、MeshiaMeshSimplifierが使えます。 エディターで軽量化結果をプレビューしながらパラメーターの調整ができます。

C#から呼び出す

using Meshia.MeshSimplification;

Mesh simplifiedMesh = new();

// 非同期API

await MeshSimplifier.SimplifyAsync(originalMesh, target, options, simplifiedMesh);

// 同期API

MeshSimplifier.Simplify(originalMesh, target, options, simplifiedMesh);