Home

Awesome

unity-vectorfield

<img src="Documents/vectorheat.jpeg"/>

Unity-vectorfield is a vector field library, consisting of vector field generators on mesh and operators for them. It allows you to quick implementation of vector field algorithms on Unity, which is instantly applicable to game programming, media art creation, or physical simulation.

Features

This library is for designing various vector fields based on Halfedge structure and Discrete exterior calculus. Beware some of the original algorithms referred to here support some geometric representations, point cloud or voxel grid, but this library only supports triangulated closed surface with any genesis (meaning closed meshes with holes like torus. surface with boundaries will be supported soon). The main solvers are below, [] showing the reference number.

Miscellaneous includes curvature calculation, vector field generator by solving Poisson equation on mesh, basis finder for harmonic component, basis finder for homology group, ribbon drawer, etc.

Installation

For installation, put the following address to UnitPackageManager.
https://github.com/komietty/unity-vectorfield.git?path=/Packages/VectorField

To check the samples under Assets/Samples, just clone this repo and run (tested on mac intel, apple silicon, and windows). Below are the images you will see in the samples.

<div display="flex"> <img src="Documents/p4.png" width="412"/> <img src="Documents/p2.png" width="412"/> <img src="Documents/p5.png" width="412"/> <img src="Documents/p1.png" width="412"/> <img src="Documents/p3.png" width="412"/> <img src="Documents/p6.png" width="412"/> </div>

References