Jump to content


Photo

In Silico -- Mechanical Systems Simulations


  • Please log in to reply
22 replies to this topic

#1 KC LC

KC LC

    Ex-Administrator

  • GMC Elder
  • 5309 posts

Posted 09 February 2009 - 06:47 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.
  • 2
Geometricks 3D Rendering Demo / In Silico 3D Kinematics Simulation
Warped Space 3D Gravity Simulation / Surface Explorer Animated Surface Demo
Oscilloscope Animated Lissajous Figures

Featured Games at YoYo: Drop in the Bucket, Tut's Test(3rd place competition winner)

Older games at: Flying Banjo Games

#2 Yourself

Yourself

    The Ultimate Pronoun

  • GMC Elder
  • 7352 posts
  • Version:Unknown

Posted 09 February 2009 - 07:11 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

    My last custom title

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

Posted 09 February 2009 - 07:16 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:28 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.
Click to visit Toydaker.com
For Sale: 3 Editables, 40 dollars (demo on site above). Click to purchase.

#5 Andrew Brophy

Andrew Brophy

    Andrew Brophy

  • GMC Member
  • 668 posts
  • Version:None

Posted 10 February 2009 - 12:57 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:22 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:45 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
  • 1906 posts
  • Version:GM:Studio

Posted 11 February 2009 - 06:59 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
  • 1957 posts
  • Version:GM8

Posted 12 February 2009 - 05:30 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
Posted ImagePosted Image
Posted ImagePosted Image

Tuts/Examples: Ultimate Weapon Arsenal(AI included) | Wall-Jumping | Plasma Pistol/Rifle Overheating System | Cash Register Example | Two Objects In One View
PM me if one or more of my posted examples have a broken link.

#10 KC LC

KC LC

    Ex-Administrator

  • GMC Elder
  • 5309 posts

Posted 25 February 2009 - 10:47 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
Geometricks 3D Rendering Demo / In Silico 3D Kinematics Simulation
Warped Space 3D Gravity Simulation / Surface Explorer Animated Surface Demo
Oscilloscope Animated Lissajous Figures

Featured Games at YoYo: Drop in the Bucket, Tut's Test(3rd place competition winner)

Older games at: Flying Banjo Games

#11 Desert Dog

Desert Dog

    GMC Member

  • GMC Elder
  • 6409 posts
  • Version:Unknown

Posted 14 March 2009 - 02:26 AM

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

5/5

~DD
  • 0
HTML5 games for mobile:
HexDogs Bugz Burn! Captain George Golfing Block Memory

Games for Androids
*NEW* Word Dog - Published by Dangerous_Dave


Code: General Array Functions - GM-S friendly. sorting, shuffling. Includes a quicksort.
Use the quicksort to sort ds_lists 10-18 times faster than ds_list_sort()!

#12 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 23 March 2009 - 11:41 PM

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

#13 KC LC

KC LC

    Ex-Administrator

  • GMC Elder
  • 5309 posts

Posted 24 March 2009 - 11:05 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
Geometricks 3D Rendering Demo / In Silico 3D Kinematics Simulation
Warped Space 3D Gravity Simulation / Surface Explorer Animated Surface Demo
Oscilloscope Animated Lissajous Figures

Featured Games at YoYo: Drop in the Bucket, Tut's Test(3rd place competition winner)

Older games at: Flying Banjo Games

#14 deformed thought

deformed thought

    GMC Member

  • GMC Member
  • 133 posts
  • Version:GM7

Posted 22 April 2009 - 06:53 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:54 AM.

  • 0

#15 makerofthegames

makerofthegames

    My last custom title

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

Posted 25 April 2009 - 03:57 AM

but don't criticize.

Why?
  • 0

#16 KC LC

KC LC

    Ex-Administrator

  • GMC Elder
  • 5309 posts

Posted 25 April 2009 - 08:41 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
Geometricks 3D Rendering Demo / In Silico 3D Kinematics Simulation
Warped Space 3D Gravity Simulation / Surface Explorer Animated Surface Demo
Oscilloscope Animated Lissajous Figures

Featured Games at YoYo: Drop in the Bucket, Tut's Test(3rd place competition winner)

Older games at: Flying Banjo Games

#17 giga970

giga970

    GMC Member

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

Posted 03 May 2009 - 01:46 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:54 AM.

  • 0

| Website - http://afrodynamics.net/ | Twitter - @afrodynamics |

| My Ludum Dare 24 Entry | GameMaker Video Tutorials | Aegis (HTML5 game on Kongregate) |

| Kongregate API Extension - Use Kongregate's API in your HTML5 Games |


#18 the sivart

the sivart

    GMC Member

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

Posted 03 May 2009 - 04:37 PM

wow thats amazing
  • 0

I am "The Sivart" and I like to make tutorials on youtube >> Posted Image << I am "The Sivart" and I like to make tutorials on youtube


#19 gblax123

gblax123

    GMC Member

  • GMC Member
  • 155 posts

Posted 17 July 2009 - 06:38 PM

This is really nice work :)

Shows the true power of GM!
  • 0

Using arrays and other variables, implement Smart Keys into your game to allow players to customize controls! Just change a few scripts and events!

<< Ask me for any scripts I could make for you! PM me!

#20 Recreate

Recreate

    Furry

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

Posted 09 August 2009 - 02:04 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

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#21 jakman4242

jakman4242

    Vertical Shmup Junkie

  • New Member
  • 3222 posts

Posted 09 August 2009 - 07:02 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...


KC LC?

Casey Elcey?



About the program~ This is great fun to mess around with, good job. :)

Edited by jakman4242, 09 August 2009 - 07:02 AM.

  • 0
-- My blog. --

#22 cookieboy

cookieboy

    Seabass (The Human)

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

Posted 22 February 2015 - 09:11 AM

Not a single person up-voted the author for this great work? I guess I will.


  • 0

Vnc5NxB.jpg

Support a fellow GMC member? <3

http://store.steampo...com//app/357650


#23 Fragment

Fragment

    GMC Member

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

Posted 25 February 2015 - 01:07 PM

IIRC upvote never existed when this was made, your post was a necro, as is mine. However, you raise a good point and I feel obliged to upvote.


  • 0

bannergmmentors5.png