/** *****************RECURSIVEDOG PROJECT_PROCESSING MODULE01******************* * * Module01::one_second_before * * Builded on Processing 0123 Beta * * copyleft 2007 by Emanuele Mazza aka n3m3da.at.recursivedog.org * *****************RECURSIVEDOG PROJECT_PROCESSING MODULE01******************* * **************************************************************************** ****************************www.recursivedog.org**************************** * */ float randomBox = random(33,99); float alphaStroke = random(66.0,100.0); float alphaFill = random(13.0,100.0); float rX = random(PI*2); float rY = random(PI*2); float rZ = random(PI*2); float tX = random(0.0,550.0); float tY = random(0.0,300.0); float tZ = random(0.0,-400.0); float boxX = random(100.0,1000.0); float boxY = random(100.0,1000.0); float boxZ = random(100.0,1000.0); float velocity = 0.0; float gravity = 0.682572; // text elements PFont font; // background_element PImage b; void setup() { size(550,300,P3D); font = loadFont("04b21-8.vlw"); textFont(font,8); } void draw() { b = loadImage("bg01.jpg"); background(b); float fov = PI/3.0; float cameraZ = (height/2.0) / tan(PI * fov / 360.0); perspective(fov,float(width)/float(height),cameraZ/10.0,cameraZ*(10.0-velocity)); // -------------Gravity Control------------------------------------------- velocity += gravity; boxX -= velocity; boxY -= velocity; boxZ -= velocity; if(boxX <= 2){ boxX = 0; } if(boxY <= 2){ boxY = 0; } if(boxZ <= 2){ boxZ = 0; } // ---------END-Gravity Control------------------------------------------- // -------------Text graphics--------------------------------------------- pushMatrix(); fill(255,255,255,random(33,250)); text(" RD.MODULE01::ONE_SECOND_BEFORE "+" ",50,260); fill(197,186,5,random(33,250)); text(" RD.MODULE01::ONE_SECOND_BEFORE "+" ",55,263); fill(38,53,247,random(33,250)); text(" RD.MODULE01::ONE_SECOND_BEFORE "+" ",59,266); popMatrix(); // ---------END Text graphics--------------------------------------------- // -------------Random Generated Structure-------------------------------- rotateX(radians(velocity/5)); rotateY(radians(velocity/3)); ambientLight(102, 102, 102); lightSpecular(204, 204, 204); directionalLight(102, 102, 102, 0, 0, -1); specular(255, 255, 255); emissive(11, 26, 51); shininess(1.0); for(int i=0;i