home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
MUCH
/
MSG01.MSA
/
ARTICLES_SINCOS.DOC
< prev
next >
Wrap
Text File
|
1993-05-31
|
1KB
|
38 lines
INTERESTING WAVE PATTERNS
In a lot of demos, you notice things like sinus dots, or flying
sprites. These all follow interesting patterns, don't they? The
professionals already know how to do these, but just for those of you
who want to know, there is a small program on the disk which does a
sinus dot demo for you.
Each time you want to write a sprite path routine, you always start
wondering which combinations of SIN and COS produce the best effects.
Well, here are some of my favourites:
=sin(rad(T*3))*cos(rad(t*2))+sin(rad(T*2)*cos(rad(T)))*80
=sin(rad(T*2))*cos(rad(T))+sin(rad(T*2)*cos(rad(T*3)))*80
=(sin(rad(T*3))*cos(rad(T*2)))*80
=90*sin(rad(A*T))*cos(rad(B*T))+100 (A,B,C from 1-31)
=90*sin(rad(A*T))*sin(rad(C*T))+100
Try: A=5, B=1, C=1
A=31, B=27, C=23
A=5, B=9, C=6
A=10, B=60, C=20
X=100+(sin(T/A))*140 (A,B from 1-76)
Y=50+(cos(T/B))*85
Try: A=55, B=11
A=51, B=23
A=14, B=15
A=62, B=14
I hope these patterns help to provide you with some more interesting
waves for distorters, dots, sprites, or whatever...
Article: BLACK EAGLE 1/6/93