Author Topic: Physics!  (Read 2107 times)

PeachClamNine

  • Chubby
  • ***
  • Posts: 173
  • Karma: +42/-5
  • Lightweight
    • View Profile
Physics!
« on: September 10, 2016, 06:35:00 PM »
Basically I want an interactive version of http://idle-animal.tumblr.com/post/110709325796/one-last-project-featuring-the-work-of

With a rise of easy access to physics engines, I'm thinking about what sort of techniques we can use to simulate such things.

pirateGuy

  • Obese
  • *****
  • Posts: 511
  • Karma: +18/-0
  • Nom
    • View Profile
Re: Physics!
« Reply #1 on: September 10, 2016, 08:34:48 PM »
If I remember correctly, Kilif was working on some physics tools at one point or another (I loosely remember some .gifs of wobbling connected vertices?). I imagine soft-body physics is pretty hard to do well, but he'd be the one to ask if I'm remembering right.

kilif

  • Professional Procrastinator
  • Administrator
  • Fat
  • *****
  • Posts: 377
  • Karma: +115/-5
    • View Profile
Re: Physics!
« Reply #2 on: September 10, 2016, 09:48:36 PM »
That is correct, I was working on that. The thing about soft body physics is that implementing a simple soft body is pretty straight forward with a basic understanding of how to implement springs. If you're alright with the simulation being less than accurate, then you could make something like what is being shown here with relative ease, even one with advanced 2D graphics. Extending it to 3D should further be straight forward, though more computationally complex as you can imagine.

The problem comes into making it dynamic. What, specifically, I was working on was a system that allowed for fat to be gained and a physical simulation of how that would look and interact with outside forces at any weight. The goal was that by making such a system, I wouldn't need to guess on how a given person would look each step of the way as they gained weight, but rather the simulation would figure that out.

This introduces a swath of new problems, the biggest being soft body collisions, which is a considerably more difficult problem than just implement spring physics. Ultimately, I got discouraged working on that and dropped it, since the computational complexity of it would cause most computers to chug along.

That being said, with some work adding textures, the simple spring physics I implemented would allow for a (less accurate, granted) simulation similar to what is shown here in that picture.
I'll finish something one of these days!

gamerjohn1991

  • Chubby
  • ***
  • Posts: 136
  • Karma: +12/-37
  • Nintendo Gamer/WG Fan
    • View Profile
Re: Physics!
« Reply #3 on: November 07, 2016, 02:48:12 AM »
Doom-the-Wolf has recently added jiggle physics to his Interactive Flash games.

akhara

  • Developer
  • Emaciated
  • *****
  • Posts: 9
  • Karma: +2/-0
  • Lightweight
    • View Profile
Re: Physics!
« Reply #4 on: November 07, 2016, 02:17:54 PM »
I was playing with dynamic meshes in Unity this summer and got this simple wobble demo working

https://dl.dropboxusercontent.com/u/73367616/wobble/video_2016-11-07_17-23-26.mov

rectangle mesh + elastic forces and simple math to calculate the dynamics

sumo64

  • Emaciated
  • *
  • Posts: 38
  • Karma: +1/-5
  • Derpy
    • View Profile
  • Patreon: Im flattered but no...
Re: Physics!
« Reply #5 on: April 10, 2017, 02:42:17 AM »
im probably gonna get shit for this since i know nothing about coding but isn't there an unreal engine that can be used? (https://www.unrealengine.com/what-is-unreal-engine-4)
I'm weird.

PeachClamNine

  • Chubby
  • ***
  • Posts: 173
  • Karma: +42/-5
  • Lightweight
    • View Profile
Re: Physics!
« Reply #6 on: April 10, 2017, 09:27:24 PM »
im probably gonna get shit for this since i know nothing about coding but isn't there an unreal engine that can be used? (https://www.unrealengine.com/what-is-unreal-engine-4)

You could, but why would you?

akhara

  • Developer
  • Emaciated
  • *****
  • Posts: 9
  • Karma: +2/-0
  • Lightweight
    • View Profile
Re: Physics!
« Reply #7 on: November 07, 2017, 12:30:39 PM »
I was playing around Verlet integrator and got this jiggling simulation:
https://twitter.com/teh_akhara/status/927873632214405120 (video in tweet)

Maybe will port into Unity3d soon

PeachClamNine

  • Chubby
  • ***
  • Posts: 173
  • Karma: +42/-5
  • Lightweight
    • View Profile
Re: Physics!
« Reply #8 on: November 07, 2017, 11:16:37 PM »
So it turns out someone smarter than I did a softbody shader. It's pree neat! I'm gonna see about using this in an upcoming project.

Grotlover2

  • Developer
  • Emaciated
  • *****
  • Posts: 34
  • Karma: +14/-0
  • Lightweight
    • View Profile
Re: Physics!
« Reply #9 on: November 07, 2017, 11:44:59 PM »
I can personally vouch for VertExmotion. I have been playing with it a bit and it works really well and comes with some good examples.