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.

Program Announcements / Cloth Simulation

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Jan 2005 04:15 Edited at: 6th Jan 2005 04:51
I got bored last night and felt like learning something. Read a chapter in the calc book, that was boring. So I read a chapter from the physics book, and came out with this.

Flag Demo
http://www.angelfire.com/80s/phaelax/cloth_simulation.htm

Demo is 1.5mb, download it from that page. There's also a screenshot on that page.

"eureka" - Archimedes
French gui
20
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 6th Jan 2005 05:42
Awesome!!! I wish you'll be bored permanently because each time you're bored you give us some great pieces of coding. . Any chance to see the source code?

Sorry for my English...
Mx5 kris
20
Years of Service
User Offline
Joined: 9th Oct 2004
Location:
Posted: 6th Jan 2005 08:36
that would rock! that is going into an rts game if so


3d meets 2d
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 6th Jan 2005 08:51
Fantastic
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 6th Jan 2005 13:48
does it use the cloth physics pack thing ??

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 6th Jan 2005 17:18
Phaelax, nice work.

How did you do it?
I would guess you went something along the lines of;
You 'pin' two verticies of the mesh into one spot, you then have a 'direction' for wind, which effects each triangle differently depending on it's orientation to the wind, its omega rotation, its size, and the 'pull' on it by adjoining trianlges.
You then use this calculated change to rotate/reposition verts..?

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 6th Jan 2005 17:39
That looks a lot like one of the final few chapters from "Physics For Game Developers". .... Still very cool though. I haven't actually read any of that book since I bought it (while on holiday in NY).


If I can't eat it, drink it , **** it or fire it, I'm not interested
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jan 2005 08:05
good eye adr.
it uses springs and dampers. mesh was created with memblocks just like I used for making matrices. Used Dmitrys plugin for the vertex manipulating

"eureka" - Archimedes
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 7th Jan 2005 09:17 Edited at: 7th Jan 2005 09:20
omg! this is awesome Phaelax. I'm downloading it now

#edit: WOW! This is really nice! Do you mind sharing the code with us?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Jan 2005 17:12
I forgot to mention, A and Z change the wind speed and spacebar releases the flag from the pole.

"eureka" - Archimedes
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 10th Jan 2005 22:58
ditto

Quote: "Do you mind sharing the code with us?"
^^


hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 12th Jan 2005 02:47
May I add... That Is One ELASTIC Flag... It could expand to more than 3 times its original size.



Cool demo by the way!

Login to post a reply

Server time is: 2024-11-22 08:38:39
Your offset time is: 2024-11-22 08:38:39