RepositoryC#
Scrawk

Scrawk/Marching-Cubes

Marching cubes in Unity

523stars
78forks
2issues
0views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: voxel

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: marching-cubes

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: marching-tetrahedron-algorithm

#1 Repository Của Tháng

🧊 Marching Cubes trong Unity — Từ voxel sang mesh mượt mà

Triển khai thuật toán Marching Cubes và Marching Tetrahedron trong Unity, hỗ trợ tạo lưới tam giác từ dữ liệu 3D kiểu voxel.

Dự án Marching-Cubes của Scrawk cung cấp cách thực hiện thuật toán Marching Cubes — một phương pháp phổ biến để chuyển đổi dữ liệu voxel 3D thành lưới tam giác mà GPU có thể hiểu. Đây là bước cần thiết khi làm việc với định dạng như terrain voxel trong game.

Ngoài ra, dự án còn tích hợp thuật toán Marching Tetrahedron, một biến thể khó tìm nhưng cho kết quả khớp với dữ liệu voxel tốt hơn (dù sinh ra nhiều đỉnh hơn). Đây là lựa chọn tốt cho những ai cần kiểm soát chất lượng lưới tam giác trong Unity.

✨ Điểm nổi bật

  • Marching Cubes: chuyển đổi dữ liệu voxel 3D thành lưới tam giác.
  • Marching Tetrahedron: cải thiện độ khớp với voxel, thích hợp cho chất lượng hình học cao.
  • Smooth normals: hỗ trợ tạo bình phương trơn cho bề mặt.
  • C# / Unity: dễ tích hợp vào dự án Unity.
  • Dựa trên nguồn tham khảo nổi tiếng: được xây dựng từ ví dụ trên trang siafoo.net.

💡 Vì sao đáng chú ý

Không phải mọi người đều cần thư viện nặng để xử lý voxel — đôi khi chỉ cần một bản cài đặt sạch và dễ đọc là đủ. Dự án này đơn giản hóa quá trình chuyển đổi voxel sang mesh, đồng thời cung cấp lựa chọn giữa hai thuật toán khác nhau tùy nhu cầu. Đặc biệt phù hợp với nhà phát triển Unity muốn thêm terrain voxel hoặc hình 3D dạng khối.


#MarchingCubes #Unity3D #Voxel #MarchingTetrahedron #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC#
Eldemarkki/Marching-Cubes-Terrain

Marching Cubes terrain implementation in Unity using the Job System and the Burst compiler

602
Feb 10, 2026
RepositoryC#
Scrawk/Marching-Cubes-On-The-GPU

A implementation of the marching cubes algorithm on the GPU in Unity.

298
Sep 25, 2020
RepositoryC++
dtrajko/MoravaEngine

C++ 2D/3D graphics engine and scene editor for Vulkan 1.4, OpenGL and DirectX 11, on Windows and Linux. Physically based rendering, global illumination, ray-traced reflections and ambient occlusion, a path tracer for reference. A playground for real-time rendering techniques.

311
Oct 27, 2026
RepositoryC#
icsharpcode/ILSpy

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!

26.8k
Oct 26, 2026
RepositoryC#
Unity-Technologies/ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

19.8k
Oct 27, 2026
RepositoryC#
Perfare/AssetStudio

AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.

15.6k
Dec 8, 2022
RepositoryC#
CoplayDev/unity-mcp

Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.

15.5k
Oct 19, 2026
RepositoryC#
Cysharp/UniTask

Provides an efficient allocation free async/await integration for Unity.

11.3k
Oct 6, 2026
RepositoryC#
egametang/ET

Unity3D Client And C# Server Framework

10.0k
Aug 26, 2026