• Stars
    star
    142
  • Rank 250,280 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Loop subdivision surface algorithm implementation in Unity.

unity-subdivision-surface

Loop subdivision surface algorithm implementation in Unity.

Heads

From left to right, original mesh, subdivided 1 time, subdivided 2times model.

Cubes

Loop subdivision surface

Loop subdivision surface is an approximating subdivision scheme developed by Charles Loop in 1987 for triangular meshes. wikipedia

SubdivMorph

SubdivMorph

SubdivMorph demo morph vertices between original and subdivided.

Usage

var filter = GetComponent<MeshFilter>();

// Require a mesh to weld (require to remove duplicated vertices)
var welded = SubdivisionSurface.Weld(filter.mesh, float.Epsilon, filter.mesh.bounds.size.x);

var mesh = SubdivisionSurface.Subdivide(
  welded,   // a welded mesh
  2,        // subdivision count
  false     // a result mesh is welded or not
);
filter.sharedMesh = mesh;

See demo scenes for details.

Compatibility

tested on Unity 2017.0.3, windows10 (GTX 1060).

Sources

More Repositories

1

unity-voxel

Mesh voxelization for Unity.
C#
1,336
star
2

unity-triangulation2D

Ruppert's Delaunay Refinement Algorithm in Unity
C#
551
star
3

unity-teddy

Teddy algorithm implementation in Unity.
C#
450
star
4

unity-procedural-tree

Procedural tree builder for Unity
C#
395
star
5

unity-volume-rendering

Volume rendering by object space raymarching for Unity
C#
385
star
6

CellularGrowth

GPU-based cellular growth simulation in Unity. 🧠
C#
262
star
7

unity-verlet-simulator

Simple verlet integration simulator for Unity.
C#
252
star
8

unity-procedural-flower

Procedural flower generator for Unity.
C#
221
star
9

unity-mesh-smoothing

Mesh smoothing algorithm for Unity.
C#
168
star
10

THREE.Fire

Ray tracing based procedural volumetric fire for three.js
JavaScript
131
star
11

unity-transform-control

Transform controller in Game View for Unity.
C#
116
star
12

unity-path-finding

Shortest path finding with Dijkstra's algorithm for Unity.
C#
115
star
13

Dendrite

GPU-based dendrite patterns generator with a space colonization algorithm in Unity.
C#
114
star
14

THREE.Tree

a Tree geometry generator for three.js.
JavaScript
109
star
15

unity-optical-flow

A simple optical flow implementation by fragment shader for Unity.
HLSL
108
star
16

UNN

GPU-based neural network implementation in Unity.
C#
108
star
17

unity-mesh-builder

Primitive mesh builder for Unity.
C#
106
star
18

unity-volume-sampler

Mesh volume sampler with voxelizer & 3D poisson disk sampling for Unity.
C#
104
star
19

PointCloudExplorer

PointCloudExplorer is an experimental project using point cloud data on Unity.
C#
102
star
20

unity-gpu-particle-system

GPU Particle System for Unity (require DirectX environment)
C#
96
star
21

unity-photo-particle-system

GPU Particle System (using Vertex Texture Fetch techniques) with Texture2DArray for Unity.
C#
88
star
22

unity-procedural-skinned-animator

Procedural skinned mesh animation 🐍 for Unity.
C#
80
star
23

ShibuyaCrowd

a webgl experiment that uses Shibuya city 3D models
JavaScript
73
star
24

unity-mesh-slicing

View-aligned mesh slicing for Unity.
C#
73
star
25

unity-intersections

3D intersection algorithm collections for Unity.
C#
71
star
26

unity-cellular-automaton-based-ink-simulation

2D Cellular automaton based ink simulation for Unity.
C#
70
star
27

WebVJ

a webgl experiment that uses web page structures as part of its visual effects
JavaScript
68
star
28

unity-lut-generator

LookUpTable generator for Unity.
C#
60
star
29

unity-procedural-volumetric-fire

Unity implementation of Real-time procedural volumetric fire.
C#
58
star
30

unity-lbm-fluid-simulation

Lattice Boltzmann Method (LBM) fluid simulation for Unity.
GLSL
57
star
31

EvolvingVirtualCreatures

Karl Sims, Evolving Virtual Creatures by Unity.
C#
55
star
32

unity-mask-bloom

Mask by alpha channel bloom effect for Unity.
GLSL
53
star
33

mattatz.github.io

WebGL and Unity sketches.
JavaScript
53
star
34

unity-tubular

Tubular mesh (tube shape along a curve without torsion) builder for Unity.
C#
48
star
35

unity-immediate-color-picker

Color picker for Unity in immediate GUI mode
C#
41
star
36

Fit

Irregular bin packing library by JavaScript
JavaScript
34
star
37

unity-lbm-ink-simulation

Lattice Boltzmann Method (LBM) ink simulation for Unity.
GLSL
33
star
38

THREE.Watercolor

Watercolor effects for three.js.
JavaScript
30
star
39

THREE.BloomBlendPass

Bloom blend effect for three.js.
JavaScript
30
star
40

FastVoxelTraversalTest

Fast Voxel Traversal testing in Unity.
C#
28
star
41

ShibuyaSelfieCrowd

Crowds with Instagram selfies in Shibuya.
C#
25
star
42

THREE.Cloud

Ray tracing based cloud object for three.js.
JavaScript
24
star
43

Channel18

VJ set at CHANNEL#18 with Unity.
C#
22
star
44

unity-mrt-example

Multiple render targets without camera object for Unity.
C#
21
star
45

ofxGPUMarchingCubes

GPU marching cubes implementation for openFrameworks using a compute shader.
C++
18
star
46

FeedbackRendering3DTest

Feedback rendering with Texture3D testing in Unity.
C#
18
star
47

GPUMatrixMultiplicationTest

GPU matrix multiplication in Unity.
C#
17
star
48

DifferentialGeometryStudy

Study of differential geometry with Rust + WebGL
Rust
16
star
49

InteractiveCoding

Sketches for interactive coding group.
HLSL
13
star
50

unity-sketchbook

Sketching utility like Processing for Unity.
C#
12
star
51

unity-cuboid-line

Convert a line topology to a cuboid mesh with Geometry shader for Unity.
HLSL
11
star
52

bevy_points

Point mesh plugin for Bevy
Rust
11
star
53

processing-verttexgen

Vertex Texture Generator for Processing
Processing
8
star
54

unity-packing-clip

Screen clipping and packing clipped area for Unity.
C#
8
star
55

wgpu-wasm-test

a small sample of using wasm-pack to run wgpu with webgl backend.
Rust
7
star
56

bevy_normal_material

Simple normal material plugin for Bevy
Rust
6
star
57

ForceTouchOSC

Force touch trackpad (for Mac OSX 10.10.3 or later) OSC sender
Objective-C
6
star
58

GLSLMapper

C#
5
star
59

threejs-template

My three.js template.
JavaScript
2
star
60

curvo

Rust
2
star
61

FitServer

Fit implementation for Node.js
JavaScript
1
star