Old 18th September 2003, 12:14   #1
Zevensoft
Major Dude
 
Zevensoft's Avatar
 
Join Date: Apr 2002
Location: Ballarat, Australia
Posts: 529
Quick Contest

Zevensoft Media Network in conjuction Zevensoft Interactive present the:
Sonic 2 Contest

What you have to do, is design a "level" for sonic to run through. How you do this, is by making a 'Vector Equation'. Example:

R(t) = tx + sin(t*pi*10)y
Will make a sine wave level for sonic to run/jump/roll through.

The basic way it works, is it specifies where the ground is at time 't', which means you can make it loop if you want, however you'll have to provide a derivative for rotating sonic in that case.

The best 3 will be included into the Sonic 2 preset, which will be released 2 weeks from now. Contest closes in 1 week.

1 | 2 | 3 | 4 | 3W | 4WW

Last edited by Zevensoft; 18th September 2003 at 12:35.
Zevensoft is offline   Reply With Quote
Old 18th September 2003, 12:30   #2
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Sorry, would love to, if i would understand any of that.

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 18th September 2003, 12:36   #3
Zevensoft
Major Dude
 
Zevensoft's Avatar
 
Join Date: Apr 2002
Location: Ballarat, Australia
Posts: 529
Attached is an example.
Attached Files
File Type: zip vectorequation.zip (289 Bytes, 93 views)

1 | 2 | 3 | 4 | 3W | 4WW
Zevensoft is offline   Reply With Quote
Old 18th September 2003, 12:44   #4
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Which is apprently done with avs2.7pre-release
Well i doubt i could do much out of it anyway. Sorry to waste your time.

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 18th September 2003, 13:22   #5
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
And it has to have loops in it.
anubis2003 is offline   Reply With Quote
Old 18th September 2003, 13:28   #6
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
I do not have the coding skills to do that for you. Sorry mate

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 18th September 2003, 16:09   #7
[Ishan]
Major Dude
 
[Ishan]'s Avatar
 
Join Date: Mar 2003
Location: India
Posts: 1,156
Send a message via Yahoo to [Ishan]
me neither.:| altho i understand the equation but i'm too lazy and on top of that a n00b.


Amateur AVS'er. All over again.

Last AVS Pack :
Resurgence

[Ishan] is offline   Reply With Quote
Old 18th September 2003, 23:21   #8
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
i'd do it if I had the time :/
when I end up with some I'll try it out - then can I use it for the (never ending quest of) tff4?

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 24th September 2003, 15:03   #9
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
you mean parametric? thats what that type of equation is called... and you can do beziers with it, so if you want a really cool static level you could make a huge 5000 control point bezier or something.

EDIT: I'll cook something up anyway. But I might not get round to it.

EDIT2: Why do you need a derivative to rotate sonic? why not calculate it roughly from the previous position and the current position. There are better ways to approximate implict derivatives but this is easy and works really well.

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Old 25th September 2003, 04:43   #10
Zevensoft
Major Dude
 
Zevensoft's Avatar
 
Join Date: Apr 2002
Location: Ballarat, Australia
Posts: 529
I suppose, I could just use atan2 to calculate the angle, but the main purpose of the dy/dx was for velocity reasons.

1 | 2 | 3 | 4 | 3W | 4WW
Zevensoft is offline   Reply With Quote
Old 25th September 2003, 10:04   #11
sidd
Major Dude
 
sidd's Avatar
 
Join Date: May 2003
Location: Australia
Posts: 1,353
by 'velocity reasons' i assume you mean that sonic will slow down (or actually remain the same speed) when going up and down hills...er..... i mean he wont just go at a static speed along the x axis.. er... his speed will be affected by hills :S bleh.. i cant describe... i wish i had the math-vocab of a true avser.


anyways.. why do i get the feeling that this 'contest' is just a lame excuse for you not to make your own terrain

.. hmm ive messed around abit.. i cant find a good way of creating true flats and slants, only curvs.... any suggests anyone?

[edit]
btw, no need for atan2-age, looksee unicycle thing: angle=(pos-oldpos)*pi or somthing ther'bouts

btw2, you guys seen the new edit post scheme?.. you can now delete post and even threads!!! w00t!
[/edit]
sidd is offline   Reply With Quote
Old 26th September 2003, 08:22   #12
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
sidd: R(t)= atx + bty should be a straight line for different values of a and b.

zeven: can't you use (dy/dt)÷(dx/dt) = dy/dx and calculate dy/dt and dx/dt by simply dividing the difference in x or y per frame by whatever you increment t by every frame? Just an idea, I'm at work so I can't test it out. Though i think its not good enough for what you want to do with it.

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump