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 & HelpPrograms › video projection not using present mode
Page Index Toggle Pages: 1
video projection not using present mode? (Read 449 times)
video projection not using present mode?
Jan 30th, 2009, 2:23pm
 
hello,

first of all, I'm sorry if it's not the right topic here.
second, I'm sorry if it's a bad(?) question, but I couldn't find the answer on my own by googling...

the question is:
how to project p5 sketch while not using full screen (presentation) mode?
is it possible?
or, if it's not possible, how to remove that "stop" from the present mode?

I try to do a little presentation of processing generates sound in supercollider, but I need to see supercollider console on my screen, but surely, I do not want to show people my osx desktop with full of applications but only processing visuals. that is a problem.
I have only one laptop (a macbook pro with 10.5) but probably I can have two beamers. I do not have any external video devices.

I want to know at least if it's possible or not at all.
mt presentation is next thursday, I really need help...

thank you very much.
Re: video projection not using present mode?
Reply #1 - Jan 30th, 2009, 4:24pm
 
hi milc,
if you use OPENGL you can size your sketch with your screen dimensions, quit the java gray frame and location the sketch in the coordinates that you want.

example with OPENGL:

Quote:
import processing.opengl.*;

void setup() {
  background(0);
  size(1024, 768,OPENGL);
  frame.setLocation(100,100); 
  //frame.setLocation(1280,768)/ /you can put in the other screen
}

void draw() {
  stroke(random(255));
  strokeWeight(15);
  float posy = random(height);
  line(0, posy, width,posy);
}

public void init() {
  setBackground(Color.black); 
  frame.removeNotify();
  frame.setUndecorated(true);
  frame.addNotify();
  super.init();
}



P2D or P3D mode:
Quote:
void setup() {
  background(0);
  size(1024, 768);

}

void draw() {
    frame.setLocation(100,100); 
 //frame.setLocation(1280,768)/ /you can put in the other screen
  stroke(random(255));
  strokeWeight(15);
  float posy = random(height);
  line(0, posy, width,posy);
}

public void init() {
  setBackground(Color.black); 
  frame.removeNotify();
  frame.setUndecorated(true);
  frame.addNotify();
  super.init();
}



using screen.width, screen.height

Quote:
void setup() {
  background(0);
  size(screen.width, screen.height);
  frame.setLocation(0,0); 

}

void draw() {
  stroke(random(255));
  strokeWeight(15);
  float posy = random(height);
  line(0, posy, width,posy);
}

public void init() {
  setBackground(Color.black); 
  frame.removeNotify();
  frame.setUndecorated(true);
  frame.addNotify();
  super.init();
}




best Regards
alba
Re: video projection not using present mode?
Reply #2 - Jan 30th, 2009, 4:45pm
 
thank you very much, alba!
it seems to be a good solution to have nice full screen using screen.width... method.
but then, there comes another problem...I have this menu bar on the top of the screen, that shows apple logo and Processing applet menu...I don't remember if this thing go away when projecting, I don't have beamer for now...

maybe I can deal with this when I'll have my beamers?
do you think using beamer as a second screen is possible?
so that I can simply give another coordinate to my sketch,
and have my supercollider console on my laptop screen?

anyway, thanks again, and I'll post something when I'll do my test with beamers next week...
Re: video projection not using present mode?
Reply #3 - Jan 30th, 2009, 4:49pm
 
with this function

Code:

public void init() {
setBackground(Color.black);
frame.removeNotify();
frame.setUndecorated(true);
frame.addNotify();
super.init();
}


your bar dissapear! test it!

"do you think using beamer as a second screen is possible? "

you can locate your sketch wherever you want, only change de coordinates in frame.setLocation(posx,posy)

Smiley
Re: video projection not using present mode?
Reply #4 - Jan 30th, 2009, 5:02pm
 
I really don't know why but I've tested several times with the function but the menu bar, (that shows apple logo and sketch_30,jan, I'm not referring to that widow menu bar with close,expand buttons but apple system menu bar with application specific menu. ) is still there! I assume that .removeNotify and .setUndecorated have something to do with it, but it doesn't even give any error message. I have osx 10.5.5 running with latest java install and latest processing release.

actually, as I do not have beamer right now, I don't know if I have different location in the projection. All I've did before with the beamer was to project what I see on my laptop screen. but if it's possible as you're very positive, then i think it's perfect.

thank you thousand times for this help!
Page Index Toggle Pages: 1