Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > Requests > Looking for Sinus-Formulas.
2003-04-24 09:45
Testicle
Account closed

Registered: Sep 2002
Posts: 131
Looking for Sinus-Formulas.

hi, can anyone help me? i'm looking for different formulas to calculate sinus-tables.

for example, which math-formulas produce the different sin-tables in wix-bouncer?

are there any "collections" of these formulas, or can i peek at some basic-code from sinus-creator-programms (if yes, which ones?)?


thanks in advance,
daniel.
2003-04-24 15:37
chatGPZ

Registered: Dec 2001
Posts: 11386
those "bouncers" are usually all based around the same formulae....

f(x) = offset+(sin(x)*range)

where x is in the range from 0 to 2*pi

checkout some physics books from your time at school... section "basic mechanics". there you can see how the more advanced stuff, like real looking "bounce" or "jump" is done there... (this is not sinus stuff actually) also how more complex waves are generated by combining several of the above simple formulas.
2003-04-24 19:36
WVL

Registered: Mar 2002
Posts: 902
real bouncers are made from parabola. y = a*t^2 + b*t + c. c being the starting point at t=0, b is the initial speed and a is acceleration.

good luck (you have to turn the speed _b_ around when a ball hits the floor or sumthing)

Werner
2003-04-25 12:51
chatGPZ

Registered: Dec 2001
Posts: 11386
wvl: yes ofcoz :=) thats why i suggested the physics book... calculating the curve a ball takes when thrown through the air must be one of the most common practices there :=))
2003-04-25 17:26
White Flame

Registered: Sep 2002
Posts: 136
Actually, most bouncers are done iteratively:

y = y + dy
dy = dy - gravity

with a check for y<0
2003-04-25 20:16
WVL

Registered: Mar 2002
Posts: 902
yes, ofcourse you iterate :) but that's just simplyfing the calculations and doesn't give you insight in how the movement 'looks' like.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
zscs
TheRyk/MYD!
LKP/CFN
kbs/Pht/Lxt
Lazycow
Mike
t0m3000/hf^boom!^ibx
Case/Padua
St0rmfr0nt/Quantum
MWR/Visdom
Chesoner/House Designs
katon/Lepsi De
The Syndrom/TIA/Pret..
Youth
Alakran_64
Guests online: 135
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.092 sec.