View Single Post
Old 17th July 2004, 17:03   #212
TomyLobo
Major Dude
 
TomyLobo's Avatar
 
Join Date: Feb 2004
Location: Germany
Posts: 580
starfield? megabuf() ! ^^
some framework for that:
[code]
frame:
pn=0;

point:
ix=megabuf(pn);
iy=megabuf(pn+1);
iz=megabuf(pn+2);

//to do: move the particles towards viewer
//to do: if(particles behind viewer) {put particles far away at a random position on a "spawn plane" or better yet in a "spawn cuboid"}

assign(megabuf(pn),ix);
assign(megabuf(pn+1,iy);
assign(megabuf(pn+2,iz);
pn=pn+3;

//to do: 3D transformation
//to do: color coding

If you can't say something nice, say something surrealistic.
TomyLobo is offline   Reply With Quote