// selfSetup is called when the visual system is first instantiated
// This will be called during a "loading" screen, so any big images or
// geometry should be loaded here
void CloudsVisualSystemFlocking::selfSetup()
{    
    debugGridSize = 4096;
    ps = new ofxBoidSystem();
    pointSize = 5.0;
    
    redColor = 1.0;
    greenColor = 0.0;
    blueColor = 0.0;
    bUpdateVel = true;
    bUpdateAcc = true;
    bUpdatePos = true;

    resolution = 72;
    rows = resolution;
    cols = resolution;
    
    ofDisableArbTex();
    ofLoadImage(glow, getVisualSystemDataPath()+"images/glow.png");
    spriteSize = glow.getWidth();
    cout << spriteSize << endl;
    ofEnableArbTex();
    
    loadShaders();
    setupFbos();
    setupVbo();
}
Esempio n. 2
0
void HodginDidItApp::setup()
{
	setupIO();
	setupCiCamera();
	setupGraphics();
	setupShaders();
	setupFbos();
}