We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Featuring "Storm" on a color box
Page Index Toggle Pages: 1
Featuring "Storm" on a color box (Read 2280 times)
Featuring "Storm" on a color box
Jun 8th, 2010, 4:23pm
 
I'm off to Alchemeyez a festival on Hawaii (Alex Grey, Vinosa, other artists) and am bringing A Color Box -- immersive room, projected on all four walls from the outside, controlled by a bionic Barbie and a Wii remote control.

I've got the content I've built in processing  ( http://www.youtube.com/watch?v=_64lraMh8UU  ) ... and want to feature a few other artists. Some of the art will be geared for chromadepth 3d glasses.

I found STORM CLOUD by Owaun Scantlebury and am having trouble resizing it to 798 x 598 .... any help there is appreciated:
http://openprocessing.org/visuals/?visualID=6527

And any other submissions are welcome. Sorry it's such a late request... I leave Wednesday for the festival...

More on the COLOR BOX:
http://acolorbox.com
A Color Box goes beyond just creating an immersive box that makes learning color relationships fun, but endeavors to improve the experience of vision-- so that people who experience that box see more color and see color better in their everyday lives.

Picture this: At night at a distance, a cube is changing colors. Upon closer examination, you walk up to the cube and find a small opening. You enter the cube and find the control of the color is dependent on your actions. Every wall is full of color and light. You interact with shapes that reveal how color relationships are luminous. The content of A Color Box is intended to further the understanding of how color interactions become visually stunning.
Re: Featuring "Storm" on a color box
Reply #1 - Jun 8th, 2010, 5:46pm
 
I added an image and scaled it every loop
Update
Here is the link to it on openprocessing
http://www.openprocessing.org/visuals/?visualID=10304


Thanks, I am glad my sketch can help. If you need any more submissions, you are most welcome to any you find fitting for your project.

Code:

//Modified for gabecolors for his Alchemeyez festival
//Colour box
//Original code by Owaun Scantlebury
//Code updated by Owaun Scantlebury
 //798 x 598
 
 int hf=255,wf=255,iff;
float df=0,ef=0,rf=.01,zf,nf;
int X,Y;
PImage water;
PGraphics water2;
 PImage bbg;
 PImage _span;
void setup(){
size(798,568,P3D);  
bbg = new PImage(wf,hf);
water = new PImage (wf,hf);
water2 = createGraphics (wf,hf,P3D);
_span = createImage(wf,hf,ARGB);
water.loadPixels();
loadPixels();
}
void draw(){
 makebg(true,false);
if (mousePressed){
background(bbg);
}
else
{
background(0);
}

df-=(mouseY-hf/2f)/hf/2f;//137
ef+=(mouseX-wf/2f)/wf/2f;//120
water2.loadPixels();
water2.beginDraw();
for(iff=0;iff<wf*hf;iff++){
zf=iff/wf; // use  '/' for horizontal or '%' for vertical  
X=int(iff%wf/zf*hf);
Y=int(hf/2+noise(iff%wf*rf+ef,iff*rf/wf+df)*99/zf*hf);

color c=Y+(get(X,Y)>>8&iff);

   if (!mousePressed){
   
//image(bbg,0,0);
//water.pixels[iff]=color(c-mouseY,c-mouseX,c*iff)+bbg.pixels[iff];  
// water.pixels[iff]=color(c-mouseY,c-mouseX,c*iff)+bbg.get(X,Y);  
water.pixels[iff]=blendColor(color(c-mouseY,c-mouseX,c*iff),bbg.pixels[iff],SUBTRACT);  

  }  

  if (mousePressed){
   
set(X,Y,color(c-mouseY,c-mouseX,c*iff));
  }
}

water2.endDraw();
water2.updatePixels();
water.pixels = water2.pixels;
water.updatePixels();
if (!mousePressed){
 // image(water,0,0);
   _span = createImage(wf,hf,ARGB);
   arraycopy(water.pixels,_span.pixels);
   _span.resize(width,height);
   image(_span,0,0);
 
 
}

}


void keyPressed(){
  if (key =='h'){
  colorMode(HSB,350);  
  }
   
 
   
 if (key == 'r'){
  colorMode(RGB,350);  
 }
}

int cpass=0;
void makebg(Boolean animate, Boolean invert){

 water.loadPixels();
 color colx = 0;
for(int y=0;y<hf;y++){
   for(int x=0;x<wf;x++){
 int pos=y*wf+x;
 color col = water.pixels[pos] ;//
  colx = color(hf-y,x,y-x);
 if (animate){
  //colx = color(height-y,X,cpass+y);
 // colx = color(height-y,x,cpass-X);
  colx = color(mouseY-y,x,cpass+y);
 }

 
 float rr= red(colx);
 float bb= blue(colx);
 float gg= green(colx);
 
   rr = colx >> 16 & 0xff;
 gg = colx >> 8 & 0xff;
 bb = colx  & 0xff;
//  for(int i=0;i<4;i++){
//    dis =dist(p[i].xpos,p[i].ypos,x,y)/2;
//    rr += cc[0]/dis-gain;
//    gg += cc[1]/dis-gain;
//    bb += cc[2]/dis-gain;
//  }
 if (!invert)    {  bbg.pixels[pos]=color(rr,gg,bb);}
   if (invert)   {   bbg.pixels[pos]=-color(rr,gg,bb);}
   }
   bbg.updatePixels();
//    if (!online){
   arraycopy(bbg.pixels,water.pixels);
//    }
 }
 if (animate){
   cpass++;
 }
if (cpass>4000){
cpass=0;  
}

}

Re: Featuring "Storm" on a color box
Reply #2 - Jun 9th, 2010, 3:04am
 
This is terrific. Thanks again Owaun. I'm including this among about 8 pieces I'm showing on the color box.

I'm having some issues with my NEXT function (in HTML not processing-- just giving the context). Because it's all running with the Wii infrared camera, I am only tracking Mouse location. For some reason the mouseover for NEXT isn't getting triggered when Storm is running. It works for most of the other processing pages, though not all the time.

Here's a test setup-- but keep in mind it's designed for projectors at 800x600 full screen. (And nothing is cited, this is a test stage)
http://www.acolorbox.com/2010content_Alchemeyez/storm/15.html

Anyway, the solution I'm working with now is to enable mouseclicks with the Wiimote-- but that ran into a problem with STORM. The wiimote oversimulates clicks.

How do we turn off any mouseclick functionality within STORM?

Sorry long explanation to get to simple question. It will work best of mouseclick does nothing. I tried to comment out mouseclick but it messed everything up.

P.S. still seems like the most of the affect occurs in the upper left part of the screen.
Page Index Toggle Pages: 1