# Mesh distortion

Post your own tutorials, guides and demos.

### » Thu Aug 28, 2008 2:17 am

More fun with polar coordinates!
Scirra Founder
B
414
S
245
G
92
Posts: 25,205
Reputation: 200,351

### » Thu Aug 28, 2008 10:00 am

Yay! Polar cordinates. Should have remembered! Thanks, Ashley.

With polar coordinates, making these was easy:
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

### » Thu Aug 28, 2008 10:02 am

Question: Can these mesh distortion effects placed on any surface or are these sprites-only? And do they use GPU or CPU?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

### » Thu Aug 28, 2008 11:57 am

Its sprite only for now, and the maths is done by the CPU and it works out the vertices and sends them to the GPU.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

### » Thu Aug 28, 2008 4:11 pm

Hey! I got this idea from that Aquaria trailer and Arimas post about bones! I used a bezier as a "spine" for the mesh. I think that this effect is very useful for, trees waving in wind, tentacles, springs and such. What do you think?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

### » Thu Aug 28, 2008 4:30 pm

Heres what happens if you give the particles a physics movement, then apply springs between the particles, and then render a mesh to where those particles are

http://www.fileshack.us/get_file.php?id ... quares.zip

And thanks everyone for the examples so far! I'll see what I can do. Bone movement....hmmmm....
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

### » Thu Aug 28, 2008 4:37 pm

Wow! That looks crazy awesome. Would the soft-bodies work with other shapes, or just squares?
Moderator
B
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

### » Thu Aug 28, 2008 4:48 pm

Drasa: beautiful! Great mesh!

David: disgustingly brilliant
Scirra Founder
B
414
S
245
G
92
Posts: 25,205
Reputation: 200,351

### » Thu Aug 28, 2008 4:49 pm

AAARGH DDDD

I laughed my head off when I saw your meat squares! They are great X). I can't wait to make some myself. And of course, spined tentacles too ;D.

Maybe Scirra's next physics tech demo is going to be named "slaughterhouse.cap"...
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

### » Thu Aug 28, 2008 7:19 pm

Drasa - Awesome! Any chance of a way to set how many control points there are?

David - Wow! Are springs currently implemented somewhere, or are they in the next version?
Moderator
B
96
S
34
G
33
Posts: 3,007
Reputation: 27,921

PreviousNext