Old 24th January 2006, 11:43   #1
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
Khaos 3D Codes for AVS - (Lazy revisions, updates)

Khaos 3D Codes v1.0.1.1 v1.0.1.2 - (Latest Update, lazy revision).
7:14 PM 24-01-2006
By: Jay a.k.a. JaVS - http://gman78.deviantART.com/
http://www.geocities.com/jay_avs_64/

___________________________________________________________

i. Additional codes:
Init: t=gettime(0) - default steps or maybeh moves (without beats detection).
Frame: reg01=sin(mx) ; reg02=sin(my) ; reg03=sin(mz);
reg04=cos(mx) ; reg05=cos(my) ; reg06=cos(mz); - using 'reg' for multiple
uses in a same combining codes.

Frame: asp=w/h - resize the object (while fullscreen), aspect ratio (width / height). Nanti aku update lagi..
Frame: index=0 - allow megabuf.
Pixel: x1=xb+reg02 ; y1=yb ; z1=zb+reg05 - create a random movement of x-axis
and z-axis. Update akan datang yg lebey baru..

Init: pi2=$pi*2 - 'pi' multiply by 2 or so on (change by ur own)..
Pixel: cull=-2*z3+3 ; red=cull ; green=cull ; blue=cull; - fade at the back of objects to
black. (-2 means the density of black & +3 control the amounts received)


ii. Beat responses:
Still workin' for next updates.. sbab aku kena wat keje skola byk..

iii. Camera Issues:
Point: iz=1/(z3+(objs+reg04)) - allow camera to zooming into the object depends on
beat responses.

Point: skip=below(iz,0) - skip particles behind the camera while zooming (disable wraping).
Point: xb=r*sin(4*i*10)*sin(n*i*$pi);
yb=sin((i-0.5)*(i*r+1.3));
zb=r*cos(4*i*10)*sin(n*i*$pi);
x1=xb ; y1=yb ; z1=zb; - using xb, yb, zb for drawing. x1, y1, z1 set the position of drawing.
Point: x2=x1*reg03-y1*reg06 ; y2=x1*reg06+y1*reg03;
z2=x2*reg05+z1*reg02 ; x3=x2*reg02-z1*reg05;
y3=y2*reg01-z2*reg04 ; z3=y2*reg04+z2 *reg01;
- latest revision of matrices calculation to smoothing nice 3D movements.

iv. megabuf(index)
Init: index=-1; loop(n,exec2(assign(index,index+1),assign(megabuf(index),
rand(150)/50-1.5))) - set up for megabuf e.g: megabuf(index+1) - set in point like this;
(index=index+1);

Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Old 24th January 2006, 11:47   #2
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
Kalu korang nak wat multiple texer II tapi nak bior sumer ikut texer II (movements) yg pertama, korang ble wat camni; Texer II yg nak diset untuk mengikut texer II pertama haruslah buang sumer kod dalam kotak frame dan paste ni :

code:
/* Aspect Ratio & MISC */
asp=w/h ; index=0;



kalau korang nak tambah efek kat kotak frame Texer II yang kedua pon ble tapi tak ble letak kod yang guna subject yg berkaitan dengan kod ni:

code:
// Movement Set
mx=mx+xrt; my=my+yrt ; mz=mz+zrt;
xt1=xt1+xr1 ; yt1=yt1+yr1;
zoom=zoom+bm;reg05=cos(zoom);

/* SIN & COS */
reg01=sin(mx) ; reg02=sin(my) ; reg03=sin(mz);
reg04=cos(mx) ; reg05=cos(my) ; reg06=cos(mz);


Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Old 29th January 2006, 14:18   #3
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
an example of codes I've made,

Init=
// Lot of Stars
objs=.2; szx=.5; szy=.5; n=h*5;
index=-1; loop(n,exec2(assign(index,index+1),assign(megabuf(index),rand(150)/50-1.5)));
t=gettime(0);

Frame=
// Keyboard Controlled
mx=mx+xrt1+ctrl-sft; my=my+yrt1+ctrl-sft; mz=mz+zrt1+ctrl-sft;
xrt1=if(sin(xrt1),xrt,0.003); yrt1=if(sin(yrt1),yrt,0.003); zrt1=if(sin(zrt1),zrt,0.003);
ctrl=if(getkbmouse(17),0.037,0); sft=if(getkbmouse(5),0.037,0);
xt1=xt1+xr1; yt1=yt1+yr1;

/* SIN & COS */
reg01=sin(MX); reg02=sin(MY); reg03=sin(MZ);
reg04=cos(MX); reg05=cos(MY); reg06=cos(MZ);

/* Aspect Ratio & MISC */
asp=w/h; index=0;

Beat=
// New Rotation Speeds
xrt=(rand(50)/1300)-0.03;
yrt=(rand(50)/1300)-0.03;
zrt=(rand(50)/1300)-0.03;

xr1=(rand(60)/500)-0.05;
yr1=(rand(60)/500)-0.05;

Point=
// Draw Objects
xb=megabuf(index);
yb=megabuf(index+1);
zb=megabuf(index+3);
index=index+1;

reg11=cos(xt1); reg12=cos(yt1);

/* Position Set */
x1=xb; y1=yb; z1=zb;

/* 3D Movements */
x2=x1*reg03-y1*reg06; y2=x1*reg06+y1*reg03;
z2=x2*reg05+z1*reg02; x3=x2*reg02-z1*reg05;
y3=y2*reg01-z2*reg04; z3=y2*reg04+z2 *reg01;

/* 2D Conversion */
iz=1/(z3+(objs+REG04));
x=x3*iz; y=y3*iz*asp;
sizex=iz*szx; sizey=iz*szy;

// Skip Behind Camera
skip=below(iz,0);

Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Old 30th January 2006, 01:19   #4
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
A Demo

33 FPS, best resolution @ 256×198

A demo from my latest v1.0.1.2 - Any comments are welcome.

Still build in alienated way, the first texer is the master scope.

iz=1/(z2+objs+if(reg05,+.2+reg05,0)); - zooming in a new principle.
Attached Files
File Type: zip javs - 03 - wireframed chair.zip (1.9 KB, 664 views)

Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Old 3rd February 2006, 06:22   #5
knight_wolves05
Senior Member
 
knight_wolves05's Avatar
 
Join Date: Feb 2006
Location: 3 ߟt
Posts: 108
Send a message via Yahoo to knight_wolves05
Uh, demo tadi tu memang extraordinary!

memang eshollllll...

dan yg penting esholllll...
knight_wolves05 is offline   Reply With Quote
Old 3rd February 2006, 06:24   #6
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
mekasih bot aku yg baek... wat mase ni ko bwh jagaan aku, :P

Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Old 3rd February 2006, 06:46   #7
knight_wolves05
Senior Member
 
knight_wolves05's Avatar
 
Join Date: Feb 2006
Location: 3 ߟt
Posts: 108
Send a message via Yahoo to knight_wolves05
sesama, keje kita ni memang best!!

macam the evil twin la plak..

jgn risau boss! everything is under control.

sector clear..
knight_wolves05 is offline   Reply With Quote
Old 27th February 2006, 09:15   #8
digitalend
Senior Member
 
digitalend's Avatar
 
Join Date: Feb 2006
Location: ieslave.exe
Posts: 167
ahmad fat bitch
digitalend is offline   Reply With Quote
Old 7th March 2006, 08:49   #9
2DudeZ
Member
 
2DudeZ's Avatar
 
Join Date: Mar 2006
Location: wHe®e u tHink im Fr0m?
Posts: 52
demo tu memang essholl!
2DudeZ is offline   Reply With Quote
Old 7th March 2006, 10:23   #10
JaVS_v2.5
Forum King
 
JaVS_v2.5's Avatar
 
Join Date: May 2005
Location: Seremban 2, Malaysia
Posts: 2,717
Send a message via Yahoo to JaVS_v2.5
Quote:
Originally posted by 2DudeZ
demo tu memang essholl!
Ko dah download ke? Thank you for your support, eshol~

Last played [offline]: Lamb of God - Nippon
-- JaVS :: h i p o t e s i s
JaVS_v2.5 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > International Connection > International Connection

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