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.
IndexProgramming Questions & HelpIntegration › Color Box (wii infrared) content
Page Index Toggle Pages: 1
Color Box (wii infrared) content (Read 1540 times)
Color Box (wii infrared) content
Feb 10th, 2010, 3:31am
 
I'm creating a 10'x10' box for a festival with projection on all four sides. Some of the content is in flash and some is in processing. I need to build a container for the different content pieces in ... HTML? I was having trouble getting everything full screen and it seemed to kind of slow things down if I switched between flash and processing.

samples of the content:
flash: colorisrelative.com/RichMedia/matrix_2.swf
processing: gabemott.com/RichMedia/processing/

Here's the other important factor- everything thus far must be controlled with mouseovers. I'm using Johnny Lee's Wii remote hack to control everything with infrared LEDs. so basically the user is controlling the colors by waving around an infrared LED.

I may have to sort out some other button (bluetooth something) and that has nothing to do with this.

But my question would be:
what is the best framework/container to use for my interface so i can seemlessly move from one content piece to the next and maintain  full screen?
(-i don't know how to make processing applet full screen for starters)

Please advise if I am in the wrong forum
Re: Color Box (wii infrared) content
Reply #1 - Feb 10th, 2010, 5:44am
 
      private void fullscreen() {
      GraphicsEnvironment e = GraphicsEnvironment
      .getLocalGraphicsEnvironment();
      GraphicsDevice d[] = e.getScreenDevices();
      int width = d[0].getDisplayMode().getWidth();
      int height = d[0].getDisplayMode().getHeight();
      size(width, height);
      }
     
      public void init() {
      if (frame != null) {
      frame.removeNotify();// make the frame not displayable
      frame.setResizable(false);
      frame.setUndecorated(true);
      println("frame is at " + frame.getLocation());
      frame.addNotify();
      }
      super.init();
      }

public void setup() {
           this.fullscreen();
           }

This is modified open source code that someone else wrote on a website somewhere that i have been playing around with. I should make the application go to full screen on your primary display.
Re: Color Box (wii infrared) content
Reply #2 - Feb 16th, 2010, 4:07pm
 
Thanks Zakski.

The primary issue I am having is NEXT. how to let users get to the next screen-- in the currrent state of content, a mouseover in the upper left gets us to the next set of content.
i'd love for this to be a button-- not a digital button- a real button that you press with your finger, maybe it blue tooth talk to the computer...

http://acolorbox.com/2010content/10.html

photos of a color box here:
http://acolorbox.com/blog
Re: Color Box (wii infrared) content
Reply #3 - Mar 17th, 2010, 8:49am
 

An easy way to integrate physical buttons & knobs is using an Arduino micro-controller. You can talk to it in processing with a serial connection over USB and just have it report which buttons are pressed or not pressed. Another cool thing is that you can easily hook up several LED's for feedback on the button pad itself.

Otherwise, if you don't feel like tinkering with electronics, these make cool plug and play input devices:
http://www.griffintechnology.com/products/powermate

Jack
Page Index Toggle Pages: 1