import processing.opengl.*; import java.nio.*; import javax.media.opengl.*; GL gl; float[] xyz; float[] rgb; FloatBuffer f; FloatBuffer c; void setup() { size(1024,768,OPENGL); xyz=new float[3*200000]; rgb=new float[xyz.length/3*4]; Random r=new Random(); for(int i=0;i<20000;i++) { xyz[i*3]=(float)r.nextGaussian()*60.0; xyz[i*3+1]=(float)r.nextGaussian()*4; xyz[i*3+2]=(float)r.nextGaussian()*60.0; int j=i*3; float v=sqrt(xyz[j]*xyz[j]+xyz[j+1]*xyz[j+1]+xyz[j+2]*xyz[j+2]); rgb[i*4]=random(0.2,1); rgb[i*4+1]=random(0.2,0.6); rgb[i*4+2]=random(0.2,1); rgb[i*4+3]=0.075; } for(int i=20000;i