3 registered members (AndrewAMD, VoroneTZ, dpn),
1,346
guests, and 10
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
The Tornado
#116061
03/08/07 20:03
03/08/07 20:03
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
Here we go. A very hard thing that I start here. You can see it in the topic subject, I want to create a tornado. I want it to be realistic, fast(no low fps), and moveable. It could do random movements (with a limit of distance), and would die after some seconds / minutes . Here's a video of a realistic one, pretty amazing (thanks to people who gave me the link) Video on YouTube Anyway. It would be nice if anyone could give his idea on how to make a good looking tornado. But For what? For my storm chasing game, Fujita5. You can check out this post: HereThanks in advance. Mark
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: The Tornado
[Re: Scorpion]
#116064
03/09/07 06:49
03/09/07 06:49
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
I don't understand the radius thing... Can bones be good for a tornado? Oh, anyway I have Extra so ... nevermind. Thanks scorpion and demigod. Any other ideas?
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: The Tornado
[Re: Marky Mark]
#116065
03/09/07 11:54
03/09/07 11:54
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
1 passable, invisible entity, move it around randomly, and give it the action tornado Code:
action tornado_sprite() { var distance; my.facing = on; while(my.skill3 == 0) { wait(1); } while(1) { distance + = 1; my.skill2 + = my.skill1 * time; you = ptr_for_handle(my.skill3); my.x = sin(my.skill2)*distance + you.x; my.y = cos(my.skill2)*distance + you.y; my.z += 1*time; my.roll + = my.skill1*time; wait(1); } }
action tornado() { my.passable = on; my.invisible = on; while(1) { //move me here... you = ent_create(sprite_tga,my.x,tornado_sprite); you.skill1 = random(10)+2; you.skill2 = random(360); you.scale_x = random(2)+1; you.scale_y = you.scale_x; you.skill3 = handle(my); wait(1); } }
every second, the entity creates sprites, which rotate around it... No idea if that works. Off course, if you want to use physics just like they do in that movie, you'll need to either programm fake physics yourself or get pro^^... Looks awesome though, that movie. I'd love to play a game like that Hope I was of any help...
Last edited by Germanunkol; 03/09/07 16:09.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: The Tornado
[Re: Germanunkol]
#116066
03/09/07 12:13
03/09/07 12:13
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
Serious User
|
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
yeah, i thought about something like that, but now it is a line s that is straigt to the sky, you should make the center to center=center+20*sin(my.z*5) or something...
Last edited by Scorpion; 03/09/07 12:14.
|
|
|
Re: The Tornado
[Re: Scorpion]
#116067
03/09/07 12:16
03/09/07 12:16
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Uh, good to know it works, at least sort of, sorry, I didn't test it. try just changing this line: distance + = .1;
to
distance + = 2; ? I'll edit it in my previous post... just fiddle around with the "2"...:)
Micha
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: The Tornado
[Re: Germanunkol]
#116068
03/09/07 12:59
03/09/07 12:59
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
Serious User
|
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
no, i didnt test it but ill do now... edit: workin on the tornado at time...
Last edited by Scorpion; 03/09/07 13:52.
|
|
|
Re: The Tornado
[Re: Scorpion]
#116069
03/09/07 14:40
03/09/07 14:40
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Hey, not bad. Not bad at all. I'd like to see it in action though.
Just add a few [large] dust particles around it that move slower, and you'll have a pretty professional tornado...
xXxGuitar511 - Programmer
|
|
|
Re: The Tornado
[Re: xXxGuitar511]
#116070
03/09/07 15:30
03/09/07 15:30
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
Yeah man it looks pretty good ! The rotating sprites (or particles?) could be faster in the center and slower around it.
You made a good job, it will surely be usefull very soon.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
|