Jump to content


Photo

In Silico -- Mechanical Systems Simulations


  • Please log in to reply
20 replies to this topic

#1 KC LC

KC LC

    Ex-Administrator

  • Retired Staff
  • 5309 posts

Posted 09 February 2009 - 06:33 PM

Here's my entry for Chronic's simulation & sports competition.

In Silico

It comprises six mechanical simulations: double pendulum, ball on spring, unicycle, Newton's Cradle, pendulum on spring, and gyroscope.

All the calculations and renderings were performed using only GML and d3d transformations. No dlls or external models were used. Everything is rendered in real-time by integrating the equations of motion (except for the cradle and gyro, which are animations). This motion is described by the second-order differential equations.

The integration is done numerically using a Taylor approximation, and is updated at 1800 Hz. The 3D display is updated at 60 Hz, so every 30th frame is displayed. This gives the illusion of reality, while keeping the integration from becoming unstable.

GYROSCOPE
Posted Image

DOUBLE PENDULUM
Posted Image

UNICYCLE
Posted Image

Additional Screenshots:
BALL on SPRING
PENDULUM on SPRING
NEWTON'S CRADLE

DOWNLOAD
In Silico
-- 1.3 MB Zip file, containing GM 7 executable.
-- Runs in 800x600 window, with full-screen option.
-- Does not change resolution.
  • 0

#2 Yourself

Yourself

    The Ultimate Pronoun

  • Retired Staff
  • 7341 posts
  • Version:Unknown

Posted 09 February 2009 - 06:57 PM

The transfer function for your unicycle balance controller sucks. It's unstable. Get your poles back in the left half plane.
  • 1

#3 makerofthegames

makerofthegames

    TV's busboy

  • GMC Member
  • 7292 posts
  • Version:GM:Studio

Posted 09 February 2009 - 07:02 PM

I'm glad more than one person can win.
  • 0

#4 Games

Games

    GMC Member

  • Banned Users
  • 2968 posts

Posted 10 February 2009 - 12:14 AM

This is incredible.

The only bug I found was when a ball (especially the Ball on Spring example) goes below the floor, it looks visually unappealing. Just bounce the ball off of the floor's z, or lower the floor so this doesn't occur.

Not that you would know the solution, I wouldn't dare say such a thing, just that you didn't know this problem existed! :rolleyes:

Love ya Kasey, and so far, you have my vote.

#5 overboy

overboy

    Andrew Brophy

  • GMC Member
  • 665 posts
  • Version:GM8

Posted 10 February 2009 - 12:43 AM

Pretty cool!
I'd vote for this too.

-Andrew.
  • 0

#6 tamper2

tamper2

    GMC Member

  • New Member
  • 369 posts

Posted 10 February 2009 - 10:08 AM

Wow, this is awesome! :snitch:
This is a really cool way to show physical stuff ::lmao::
It's fun to watch, and makes science easier to understand :rolleyes:
Very good simulation!
I give it 5/5

Tamper :unsure:
  • 0

#7 acrog2

acrog2

    average user

  • GMC Member
  • 1118 posts

Posted 11 February 2009 - 02:31 AM

The physics look good, but the controls were awkward and hard to use. I couldn't get some of the ball's to move well, or at all. The graphics are nice, but you need to work on the user input.

-acrog2
  • 0

#8 Diptoman

Diptoman

    GMC Member

  • GMC Member
  • 1739 posts
  • Version:GM8

Posted 11 February 2009 - 06:45 AM

The physcis are pretty good. But there's nothing much to do in the game(?) really, except the unicycle balancing thingy...
And as Games mentioned, the ball going below the floor looked kind of weird.
Overall, decent.
  • 0

#9 daman123125

daman123125

    AZN Game Programmer

  • GMC Member
  • 1955 posts
  • Version:GM8

Posted 12 February 2009 - 05:16 AM

This is an awesome simulation! I liked the unicycle and the double pendulum, but they were all pretty fun.
It's just in the weak spring one the ball goes through the ground. You could make it bounce off of the ground when it hits it, or something.
Overall 4.5/5.
Good luck in the contest! :lol:
  • 0

#10 KC LC

KC LC

    Ex-Administrator

  • Retired Staff
  • 5309 posts

Posted 25 February 2009 - 10:33 AM

Thanks for the nice comments everyone. :whistle: I appreciate them.

@Games: Good catch. I'll certainly change the floor in the "springy ball" simulation, if I ever decide to use this in a game or anything.

Mainly, I just made this for the fun of it. I enjoy playing with these toys, so I thought it'd be fun to simulate them. But it definitely expanded my 3D "toolbox". I also learned a lot about numerical solutions and stability, so that was good too.
  • 0

#11 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 14 March 2009 - 02:12 AM

This is really nice, but I'm thinking it would have been more fun to make, than to play.

5/5

~DD
  • 0

#12 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 23 March 2009 - 11:27 PM

all I can say is, another welldone program by Kc!
  • 0

#13 KC LC

KC LC

    Ex-Administrator

  • Retired Staff
  • 5309 posts

Posted 24 March 2009 - 10:51 PM

I'm thinking it would have been more fun to make, than to play

Well, that's right. I didn't intend it to be a game, so there's nothing to "play". Just a physics demo using GM's 3D capability.

I get tired of novice programmers saying GM can't handle 3D, or that it's too slow. So this was my answer to them.
But mostly, it was just fun to make. :)
  • 0

#14 deformed thought

deformed thought

    GMC Member

  • GMC Member
  • 104 posts
  • Version:GM7

Posted 22 April 2009 - 06:39 AM

The transfer function for your unicycle balance controller sucks.

...

I don't care if you're a global moderator, or that your extensions rock(which they do),but don't criticize.

Edited by deformed thought, 22 April 2009 - 06:40 AM.

  • 0

#15 makerofthegames

makerofthegames

    TV's busboy

  • GMC Member
  • 7292 posts
  • Version:GM:Studio

Posted 25 April 2009 - 03:43 AM

but don't criticize.

Why?
  • 0

#16 KC LC

KC LC

    Ex-Administrator

  • Retired Staff
  • 5309 posts

Posted 25 April 2009 - 08:27 PM

deformed may be confused by the tone of Yourself's comment. But it's OK because we always talk to each other that way. Besides, Yourself is right: the controller IS unstable. :GM7: It's a simple FULL ON / FULL OFF controller based on angle. There's no account given to rate. Hardly qualifies as a controller at all.

I could do better... but its only purpose is to keep the unicycle erect long enough for the player to take over. Nothing more.

Either way... I'll take any attention I can get. Criticism or praise. It's all the same to me, as long as they spell my name right. ;)
  • 1

#17 giga970

giga970

    GMC Member

  • GMC Member
  • 457 posts
  • Version:GM:Studio

Posted 03 May 2009 - 01:32 AM

You're so cool KC. I'm gonna have loads of fun just looking at that gyroscope. Mine is someplace else, and I lack a Newton's Cradle. This is totally awesome.

Though the unicycle is impossible to control...

Edited by giga970, 03 May 2009 - 01:40 AM.

  • 0

#18 the sivart

the sivart

    GMC Member

  • GMC Member
  • 145 posts
  • Version:GM:Studio

Posted 03 May 2009 - 04:23 PM

wow thats amazing
  • 0

#19 gblax123

gblax123

    GMC Member

  • GMC Member
  • 155 posts

Posted 17 July 2009 - 06:24 PM

This is really nice work :)

Shows the true power of GM!
  • 0

#20 Recreate

Recreate

    Furry

  • GMC Member
  • 2928 posts
  • Version:GM8

Posted 09 August 2009 - 01:50 AM

as long as they spell my name right. :)

I don't see how anyone could misspell your name...i have never seen it neither...
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users