KonVas_DarkMatter/Scouting/BEER_DarkMatter_viz2/BEER_DarkMatter_viz2.pde
import netP5.*;
import oscP5.*;
OscP5 osc;
OscProperties oscProps;


//declarations for particles;
IntDict userToEvent = new IntDict();
IntDict eventNumDict = new IntDict();
int nextEventIndex = 0;
Event[] events = new Event[1200];
IntDict userVizMode = new IntDict();

//temp
//int eventNum = 1552065906;
//int numJets = 8;


//declarations for texts;
ArrayList<CodeDisplay> codes = new ArrayList<CodeDisplay>();
int maxNumOfCodes = 120;
int nextIDc = 0;


void setup() {
  size(960, 540, P3D);
  //fullScreen(P3D,2);
  smooth(8);

  oscProps = new OscProperties();
  oscProps.setListeningPort(12000);
  oscProps.setDatagramSize(64000);
  osc = new OscP5(this, oscProps);
}

void draw() {

  
  background(255);
  textSize(14);
  text(frameRate, 50,50);
  
  //camera(cos(frameCount*0.001) * -716, 0, sin(frameCount*0.001)*613, width/2.08, height/2.00, 0, 0, 1, 0);
  //camera(cos(frameCount*0.01*0.4)*(width/2)+width/2, height/2.0, (height/2.00) / tan(PI*46.7 / 180.0), width/2.00, height/2.00, 0, 0, 1, 0);
  //camera(width/2.0, height/2.0, (height/2.0) / tan(PI*30.0 / 180.0), width/2.0, height/2.0, 0, 0, 1, 0);
  translate(width/2.00, height/2.00, -200);

  lights();
  //directionalLight(150, 150, 150, 0, 300, -500);
  //ambientLight(51, 102, 126);

  fill(120, 255);

  for (int i = 0; i < codes.size(); i++) {
    codes.get(i).display();
  }

    //pushMatrix();
    //rotateX(frameCount * 0.01);
    //rotateY(frameCount * 0.014);
    //rotateZ(frameCount * 0.03);
  for (int i = 0; i < nextEventIndex; i++) {
    if (!events[i].isDead) {
      events[i].run();
    }
  }
    //popMatrix();
  
  //println(frameRate);
}