• Stars
    star
    284
  • Rank 145,616 (Top 3 %)
  • Language
    C#
  • License
    The Unlicense
  • Created over 6 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

A prototyped framework for deforming meshes in the editor and at runtime in Unity. Not in development anymore, but it's still pretty awesome!

Heads Up!

I've written a new version from scratch! It's objectively better and you should totally check it out! Here's a little teaser.

Teaser

Deform

Deform is a framework for deforming meshes in the editor and at runtime that comes with a component based deformation system build on top. If you don't want to make your own deformers, it comes with many standard ones you'd find in 3D modeling packages.

IMPORTANT

  1. If you are using this in a pre-existing project, you need to go to Edit/Project Settings/Player/ and set the Scripting Runtime Version (under the Other Settings dropdown) to 4.6.
  2. Right now this project is not suitable for professional development. Don't use it on large projects unless you are happy with the feature-set at the time of downloading/cloning it. If you aren't using version control DO NOT update to new versions of this system without backing up your project. Stuff you've made will break 99% of the time because I'm doing large/sweeping changes almost every time I push.

How it works

  1. Find a game object (with a mesh filter or skinned mesh renderer) in your scene.
  2. Add any deformer component.
  3. That's it. Your mesh is deformed. Tutorial 1

Tutorials

Features

  • Runs in edit and play mode
  • Multithreaded (optional)
  • Meshes can be saved
  • Deformers can be stacked and reordered
  • Works with skinned meshes (kinda)
  • Easily Extendable

Built-in Deformers

  • Bend
  • Color Mask
  • Curve
  • Cylindrify
  • Noise (Value, Perlin, Simplex, Cellular, Cubic)
  • Pivot To Bounds
  • Pivot To Center
  • Ripple
  • Scale Along Axis
  • Scale Along Normal
  • Sine
  • Skew
  • Spherify
  • Squash and Stretch
  • Taper
  • Texture Mask
  • Transform
  • Twist
  • Wave

Releases

FAQ

I don't want all the fluff. What can I safely remove?

  • You can delete everything except for the Code and Plugins folder.

How do I make my own deformer?

  1. Make a script that uses the Deform namespace
  2. Inherit from the 'DeformerComponent' class.
  3. Override the 'Modify' method.
  4. Make changes to the mesh data and return it.
  5. Drag your script onto any object with a MeshFilter or SkinnedMeshRenderer.
  6. Mission complete.

What is the MeshData struct?

  • It holds the positions and normals (as well as some other stuff) of a mesh.

Why am I getting the error, xxx can only be called from the main thread?

  • Unity locks access to most things from other threads. You are probably accessing something like a Transform component from inside the Modify method, which runs on another thread when UpdateMode is set to UpdateAsync. I recommend overriding the virtual method, PreModify, and caching anything you need that is inaccessable from another thread. PreModify is called on the main thread right before any deformations calculations are run.

Why am I getting the error, xxx asynchronous functions cannot be used because it is not part of the C# 4.0 language specification?

  • You need to go to Edit/Project Settings/Player/ and set the Scripting Runtime Version (under the Other Settings dropdown) to 4.6.

Help



1 2 3

More Repositories

1

Deform

A fully-featured deformer system for Unity that lets you stack effects to animate models in real-time
C#
3,105
star
2

Grapple-Effect

An example of a simple grapple effect in Unity
C#
264
star
3

Piranha

A very simple tool to make rigidbodies swarm a mesh in Unity.
C#
246
star
4

ExtendedTransformEditor

A clutterless custom Transform editor for Unity
C#
127
star
5

SimpleSquashAndStretchMovement2D

In Unity
C#
100
star
6

MeshModifiers

Don't use this - use Deform instead! Its way better!
C#
48
star
7

Coroutween

A 💩 tweening library for Unity
C#
43
star
8

JobSystemRaymarching

Raymarching in Unity using the job system
C#
36
star
9

PerlinField

Creates a grid of objects and moves them up and down via perlin noise.
C#
30
star
10

noisevis

i wanted to more easily visualize what the various noise functions do in the Mathematics.noise class
C#
30
star
11

Cloner-Prototype

A quick attempt at recreating the cloner functionality from Cinema 4D in Unity
C#
29
star
12

Sinemation

First pass at completely procedurally animating a humanoid.
C#
27
star
13

SimpleFlowfield

A first pass at a flowfield
C#
26
star
14

EditorGenerator

A tool that generates custom editors in Unity
C#
22
star
15

ExtrudedGameOfLife

Conways Game of Life but each frame is stacked on top of the previous one. Made in Unity
C#
22
star
16

Sketch

Processing-like API for Unity. Built on top of the Shapes vector graphics library
C#
21
star
17

VertexPointCloud

Renders instanced meshes on each vertice of another mesh. Can move along normal, scale etc
ShaderLab
18
star
18

ShapesDoodles

Sketches done with the Shapes library
C#
17
star
19

EndlessShooter

C#
15
star
20

Comment

Add comments to the inspector via a Comment attribute or component
C#
12
star
21

EasyIsosurface

Made this a long time ago and figured I'd throw it on the hub. It's not extremely fast and the base mesh generation is from a tutorial but I got it to work in the editor and added support for generic extensions which I tested by adding noise and splines.
C#
11
star
22

asterboids

Simple space shooter with boid-like enemies. Made with Odin + Raylib
Odin
10
star
23

CellularAutomata3D

Quick cellular automata implementation that isn't optimized in any way whatsoever and was made in an hour.
C#
4
star
24

ld51

C#
3
star
25

With

Adds "With" extension methods to Unity value types to make composing new values easy.
C#
2
star
26

keenanwoodall.com

HTML
1
star