Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Elastic Simulation DBPro

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 27th Sep 2003 01:03 Edited at: 27th Sep 2003 04:10
You may have seen other versions of this, it's not an original idea, I copied a Javascript version, although just the idea, the code is all mine.

Basically it is a string of elastic with beads attached. You can bounce it around the screen. Try changing the constants, in small steps though.



Version 2


Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Sedate Solution
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location:
Posted: 27th Sep 2003 01:08
Very nice demonstration of maths you have there.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 27th Sep 2003 04:10
New better version, where you can fix the beads in place above.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Sep 2003 11:44
thats very cool!


Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 27th Sep 2003 18:09
I liked playing around with that. Maybe you should make it so one of the beads moves to a random area on the screen, and make it a screen saver. That'd be neat.


Dark Basic Pro has arived! I can feel the power!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 27th Sep 2003 21:00 Edited at: 27th Sep 2003 21:02
Here is a cool combination of settings. Just replace the current settings with these. You will need a fastish computer to process all the 100 beads at 60fps...



Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 27th Sep 2003 23:35
Heh, I could run 500 beads at a decent speed (30 FPS)


Dark Basic Pro has arived! I can feel the power!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 28th Sep 2003 13:21
Yeah, I said fairly , I still get over 20fps with 1000 beads, although it's kind of pointless.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 28th Sep 2003 16:54
I only got about 14 with 1000, funny watching them squirm around on the bottom of the screen


Dark Basic Pro has arived! I can feel the power!
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 29th Sep 2003 22:00
That is a really good physique demonstration!
Looks really realistic.

God is real, unless declared integer.
LForet
20
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 20th Oct 2003 20:26
Great demo...Thanks...
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Oct 2003 07:49
woh, thats neat!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Oct 2003 13:42
nice... you know if you combined this with a box collision and added it to mesh you could have a nice ragdoll physics system on your hands

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 28th Oct 2003 15:43
Yeah, I could try that Raven, just need to get a bit more used to memblocks in dbpro.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM

Login to post a reply

Server time is: 2024-05-02 14:57:35
Your offset time is: 2024-05-02 14:57:35