• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    C#
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

Unity3D GPU Sculpt & Morph

ShaderGum

Unity3D GPU Sculpt & Morph.

3D models and textures by Tipatat Chennavasin

It is 3D scan of wax figures from Madame Tussauds in Hollywood, Ca
Bruce Lee by tipatat is licensed under CC Attribution
Marylin Monroe by tipatat is licensed under CC Attribution
Tipatat's models on Skecthfab

Description

This is a Unity3D project with a set of scripts and shaders that manipulate vertex positions with textures and filters.
Vertices from the mesh is listed and stored in a texture.
A shader is processing position as a color: red, green and blue become x, y and z.
A frame buffer is used to create persistence, to store a virtual space.
The mesh uses a shader that gives the vertex positions from the generated texture.

Experiment

This project was a good challenge to learn about processing float textures:
How to map a vertex index to a texture coordinates.
How to retrieve position from a texture.
How to change the stored position with an image filter.

With these features, you can imagine wonderful things, like animating blend shapes with textures.
This article on Gamasutra by Tequila Works about this subject is great read, and is basically what gave me ideas.
The key to store in a texture a float value that is beyond the color space (0..1) is the texture format.
In Unity3D you have to create a ARGBFloat render texture.

Examples of applications

(Not in the current project, because too hacky lines of code)

Blending textures to animate smoothly vertices.

Implementation of Blender3D modeling soft selection trackball.

Texture of vertex positions

Raw texture.

Same but with absolute digits.

Little elves moving color pigment to pixel places.

(the green flash feels natural but it is because of gif compression)

Leon - 30 / 06 / 2017 - GNU GPL 3 - Bisous

More Repositories

1

CurveModifier

Implementation of the curve modifier from Blender to Unity3D
C#
358
star
2

PointCloudExporter

C#
183
star
3

SIGExam

Correction of a Shader Exam
ShaderLab
106
star
4

Workshop

GLSL
64
star
5

OpticalFlowExample

Processing
41
star
6

CookieEngine

WebGL Demotool
JavaScript
29
star
7

CoursGlitchArt

C#
19
star
8

DragAndGlitch

JavaScript
16
star
9

GLASSSchool

Unity3D shader workshop for GLASS summer school
C#
15
star
10

Voxel

WebGL
JavaScript
14
star
11

GPU

JavaScript
13
star
12

TimeDisplacement

Time Displacement effect with Unity3D
JavaScript
9
star
13

godot-particles

GPU particles example in Godot engine
8
star
14

NaturallyUndead

First demo made with love for Evoke 2016
JavaScript
8
star
15

Hatch

WebGL demo for Revision 2019
JavaScript
7
star
16

CoursSIG2017

Class Resources
HLSL
5
star
17

DingDong

C#
4
star
18

WJ

Tool for VJing in WebGL
C#
4
star
19

Choupichoup

JavaScript
3
star
20

TalkingHeads

Game for Ludum Dare 31
JavaScript
3
star
21

RaymarchingSketches

Raymarching shader sketches in GLSL
GLSL
3
star
22

UnityVJ

GLSL
3
star
23

WinterJamBisous

C#
3
star
24

LightPath

C#
3
star
25

leon196.github.io

My website
HTML
2
star
26

Revision-2020-WebGL

2
star
27

Smoothie

4k demo for Evoke 2018
JavaScript
2
star
28

TouchDesignerSketches

2
star
29

Shapeshift

JavaScript
2
star
30

CellularAutomatown

Project for the game jam bio and the city : https://itch.io/jam/biodesign-and-the-city
GLSL
2
star
31

RaymarchingUnityBase

HLSL
2
star
32

CookiePartyInvitro

2
star
33

ThreeSeconds

A game inspired by the comic from Marc Antoine Matthieu
GLSL
2
star
34

TheSaltPlease

JavaScript
2
star
35

WorkshopSIG

WorkshopSIG
ShaderLab
2
star
36

MystJamGame

Game for Myst Jam (http://itch.io/jam/myst-jam)
C#
1
star
37

MeliMelo

JavaScript
1
star
38

demo-regl

JavaScript
1
star
39

Mortel

WebGL demo
JavaScript
1
star
40

Geometry

JavaScript
1
star
41

PuzzleProtein

A game
JavaScript
1
star
42

GIFJamMapping

C#
1
star
43

workshop-esgi-2020-06-30

C#
1
star
44

Parmesan

4k demo for Revision 2019
JavaScript
1
star
45

workshop-esgi-2020-03-24

ShaderLab
1
star
46

ZooMachines2016

C#
1
star
47

OhoShaders

C
1
star
48

WebGLWorkshop

JavaScript
1
star
49

workshop-esgi-2020-05-25

C#
1
star
50

Boupiboup

Boupiboup
C#
1
star