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.
IndexProcessing DevelopmentLibraries,  Tool Development › fullscreen api, here u go!
Pages: 1 2 3 4
fullscreen api, here u go! (Read 39279 times)
fullscreen api, here u go!
Jun 13th, 2006, 5:52pm
 
hey everybody!


i'm using processing mostly for standalone apps, so i need fullscreen support pretty often. i wrote a pde file that you can drop in your sketch folder and you'll have wonderfull fullscreen support.

this is how it works:
void setup(){
 setFullScreen( true );                       // get fullscreen exclusive mode
 setResolution( 640, 480 );               // change resolution to 640, 480
 createFullScreenKeyBindings();       // let ctrl+f switch between window/fullscreen mode
}

Download it here:
http://www.superduper.org/processing/fullscreen_api/



comments welcome, hansi.
Re: fullscreen api, here u go!
Reply #1 - Jun 14th, 2006, 1:28am
 
wow.. this is really sweet .. if only it would work!..

i can't view anything in fullscreen.. your code opens up a 640x480 fullscreen window, with cursor.. but no action from draw()

and i can press escape to exit, but ctrl + f doesn't work..

when i commented out setFullscreen(true) and changed the key to handle just f, and pressed it, it switched to fullscreen mode, but i couldn't get out of it without opening up task manager (in 640x480) and close java..

something i guess you can plunder with a bit Wink

i'm on winxp, firefox, and latest java

best
seltar
Re: fullscreen api, here u go!
Reply #2 - Jun 15th, 2006, 12:42pm
 
allright, hadn't tested on windows. i packaged it nicer, check it out here http://www.superduper.org/processing/fullscreen_api/


hansi.
Re: fullscreen api, here u go!
Reply #3 - Jun 15th, 2006, 5:18pm
 
unfortunately, not working..

I don't get any errors either.. which doesn't quite make sense to me after looking over your code..

My graphics card is a NVIDIA GeForce 6600 GT.

hope you can get this sorted.. or maybe somebody else has got an idea?
Re: fullscreen api, here u go!
Reply #4 - Jun 15th, 2006, 6:30pm
 
hey thanks!

i really appreciate your help cause i don't really have access to a windows pc here.

i created a debug version (http://www.superduper.org/processing/fullscreen_api/fullscreen_demo_debug.zip). it would be really sweet if you can just launch it and post me the output of the console..


cheers, hansi.
Re: fullscreen api, here u go!
Reply #5 - Jun 16th, 2006, 7:22am
 
No problem! Glad to help, especially on this great project

Code:

preparing fullscreen frame
Trying to enter fullscreen mode...
Sketch not yet started, delaying fullscreen mode
Setting resolution of display to
default resolution is now: 640x480
not in fullscreen mode, can't change resolution
create shortcut keys ctrl+f / apple+f
[waitForInitThread] waiting until frame is created...
[waitForInitThread] waiting until frame is created...
[waitForInitThread] calling fullscreen thingie
Trying to enter fullscreen mode...
Setting fullscreen window
Setting resolution
Setting resolution of display to
looking for available screen resolutions...
mode: 640x480 @60Hz, 8 bit...fine
mode: 640x480 @60Hz, 16 bit...fine
mode: 640x480 @60Hz, 32 bit...fine
mode: 320x200 @75Hz, 8 bit...no
mode: 320x240 @60Hz, 8 bit...no
mode: 320x240 @70Hz, 8 bit...no
mode: 320x240 @72Hz, 8 bit...no
mode: 320x240 @75Hz, 8 bit...no
mode: 400x300 @60Hz, 8 bit...no
mode: 400x300 @70Hz, 8 bit...no
mode: 400x300 @72Hz, 8 bit...no
mode: 400x300 @75Hz, 8 bit...no
mode: 480x360 @60Hz, 8 bit...no
mode: 480x360 @70Hz, 8 bit...no
mode: 480x360 @72Hz, 8 bit...no
mode: 480x360 @75Hz, 8 bit...no
mode: 512x384 @60Hz, 8 bit...no
mode: 512x384 @70Hz, 8 bit...no
mode: 512x384 @72Hz, 8 bit...no
mode: 512x384 @75Hz, 8 bit...no
mode: 640x400 @60Hz, 8 bit...no
mode: 640x400 @70Hz, 8 bit...no
mode: 640x400 @72Hz, 8 bit...no
mode: 640x400 @75Hz, 8 bit...no
mode: 320x200 @60Hz, 8 bit...no
mode: 640x480 @70Hz, 8 bit...fine
mode: 640x480 @72Hz, 8 bit...fine
mode: 640x480 @75Hz, 8 bit...fine
mode: 640x480 @85Hz, 8 bit...fine
mode: 720x480 @60Hz, 8 bit...no
mode: 720x576 @60Hz, 8 bit...no
mode: 800x600 @60Hz, 8 bit...no
mode: 800x600 @70Hz, 8 bit...no
mode: 800x600 @72Hz, 8 bit...no
mode: 800x600 @75Hz, 8 bit...no
mode: 800x600 @85Hz, 8 bit...no
mode: 848x480 @60Hz, 8 bit...no
mode: 848x480 @70Hz, 8 bit...no
mode: 848x480 @72Hz, 8 bit...no
mode: 848x480 @75Hz, 8 bit...no
mode: 848x480 @85Hz, 8 bit...no
mode: 960x600 @60Hz, 8 bit...no
mode: 960x600 @70Hz, 8 bit...no
mode: 960x600 @72Hz, 8 bit...no
mode: 960x600 @75Hz, 8 bit...no
mode: 960x600 @85Hz, 8 bit...no
mode: 1024x768 @60Hz, 8 bit...no
mode: 1024x768 @70Hz, 8 bit...no
mode: 1024x768 @72Hz, 8 bit...no
mode: 1024x768 @75Hz, 8 bit...no
mode: 1024x768 @85Hz, 8 bit...no
mode: 1088x612 @60Hz, 8 bit...no
mode: 1088x612 @70Hz, 8 bit...no
mode: 1088x612 @72Hz, 8 bit...no
mode: 1088x612 @75Hz, 8 bit...no
mode: 1088x612 @85Hz, 8 bit...no
mode: 1152x864 @60Hz, 8 bit...no
mode: 1152x864 @70Hz, 8 bit...no
mode: 1152x864 @72Hz, 8 bit...no
mode: 1152x864 @75Hz, 8 bit...no
mode: 1280x720 @60Hz, 8 bit...no
mode: 1280x720 @70Hz, 8 bit...no
mode: 1280x720 @72Hz, 8 bit...no
mode: 1280x720 @75Hz, 8 bit...no
mode: 1280x768 @60Hz, 8 bit...no
mode: 1280x768 @70Hz, 8 bit...no
mode: 1280x768 @72Hz, 8 bit...no
mode: 1280x768 @75Hz, 8 bit...no
mode: 1280x800 @60Hz, 8 bit...no
mode: 1280x800 @70Hz, 8 bit...no
mode: 1280x800 @72Hz, 8 bit...no
mode: 1280x800 @75Hz, 8 bit...no
mode: 1280x960 @60Hz, 8 bit...no
mode: 1280x960 @70Hz, 8 bit...no
mode: 1280x960 @72Hz, 8 bit...no
mode: 1280x960 @75Hz, 8 bit...no
mode: 1280x1024 @60Hz, 8 bit...no
mode: 1280x1024 @70Hz, 8 bit...no
mode: 1280x1024 @72Hz, 8 bit...no
mode: 1280x1024 @75Hz, 8 bit...no
Re: fullscreen api, here u go!
Reply #6 - Jun 16th, 2006, 7:22am
 
Code:

mode: 320x200 @60Hz, 32 bit...no
mode: 320x200 @70Hz, 32 bit...no
mode: 320x200 @72Hz, 32 bit...no
mode: 320x200 @75Hz, 32 bit...no
mode: 320x240 @60Hz, 32 bit...no
mode: 320x240 @70Hz, 32 bit...no
mode: 320x240 @72Hz, 32 bit...no
mode: 320x240 @75Hz, 32 bit...no
mode: 400x300 @60Hz, 32 bit...no
mode: 400x300 @70Hz, 32 bit...no
mode: 400x300 @72Hz, 32 bit...no
mode: 400x300 @75Hz, 32 bit...no
mode: 480x360 @60Hz, 32 bit...no
mode: 480x360 @70Hz, 32 bit...no
mode: 480x360 @72Hz, 32 bit...no
mode: 480x360 @75Hz, 32 bit...no
mode: 512x384 @60Hz, 32 bit...no
mode: 512x384 @70Hz, 32 bit...no
mode: 512x384 @72Hz, 32 bit...no
mode: 512x384 @75Hz, 32 bit...no
mode: 640x400 @60Hz, 32 bit...no
mode: 640x400 @70Hz, 32 bit...no
mode: 640x400 @72Hz, 32 bit...no
mode: 640x400 @75Hz, 32 bit...no
mode: 320x200 @72Hz, 8 bit...no
mode: 640x480 @70Hz, 32 bit...fine
mode: 640x480 @72Hz, 32 bit...fine
mode: 640x480 @75Hz, 32 bit...fine
mode: 640x480 @85Hz, 32 bit...fine
mode: 720x480 @60Hz, 32 bit...no
mode: 720x576 @60Hz, 32 bit...no
mode: 800x600 @60Hz, 32 bit...no
mode: 800x600 @70Hz, 32 bit...no
mode: 800x600 @72Hz, 32 bit...no
mode: 800x600 @75Hz, 32 bit...no
mode: 800x600 @85Hz, 32 bit...no
mode: 848x480 @60Hz, 32 bit...no
mode: 848x480 @70Hz, 32 bit...no
mode: 848x480 @72Hz, 32 bit...no
mode: 848x480 @75Hz, 32 bit...no
mode: 848x480 @85Hz, 32 bit...no
mode: 960x600 @60Hz, 32 bit...no
mode: 960x600 @70Hz, 32 bit...no
mode: 960x600 @72Hz, 32 bit...no
mode: 960x600 @75Hz, 32 bit...no
mode: 960x600 @85Hz, 32 bit...no
mode: 1024x768 @60Hz, 32 bit...no
mode: 1024x768 @70Hz, 32 bit...no
mode: 1024x768 @72Hz, 32 bit...no
mode: 1024x768 @75Hz, 32 bit...no
mode: 1024x768 @85Hz, 32 bit...no
mode: 1088x612 @60Hz, 32 bit...no
mode: 1088x612 @70Hz, 32 bit...no
mode: 1088x612 @72Hz, 32 bit...no
mode: 1088x612 @75Hz, 32 bit...no
mode: 1088x612 @85Hz, 32 bit...no
mode: 1152x864 @60Hz, 32 bit...no
mode: 1152x864 @70Hz, 32 bit...no
mode: 1152x864 @72Hz, 32 bit...no
mode: 1152x864 @75Hz, 32 bit...no
mode: 1280x720 @60Hz, 32 bit...no
mode: 1280x720 @70Hz, 32 bit...no
mode: 1280x720 @72Hz, 32 bit...no
mode: 1280x720 @75Hz, 32 bit...no
mode: 1280x768 @60Hz, 32 bit...no
mode: 1280x768 @70Hz, 32 bit...no
mode: 1280x768 @72Hz, 32 bit...no
mode: 1280x768 @75Hz, 32 bit...no
mode: 1280x800 @60Hz, 32 bit...no
mode: 1280x800 @70Hz, 32 bit...no
mode: 1280x800 @72Hz, 32 bit...no
mode: 1280x800 @75Hz, 32 bit...no
mode: 1280x960 @60Hz, 32 bit...no
mode: 1280x960 @70Hz, 32 bit...no
mode: 1280x960 @72Hz, 32 bit...no
mode: 1280x960 @75Hz, 32 bit...no
mode: 1280x1024 @60Hz, 32 bit...no
mode: 1280x1024 @70Hz, 32 bit...no
mode: 1280x1024 @72Hz, 32 bit...no
mode: 1280x1024 @75Hz, 32 bit...no
mode: 800x600 @56Hz, 8 bit...no
mode: 800x600 @56Hz, 16 bit...no
mode: 800x600 @56Hz, 32 bit...no
selected mode: 640x480 @85Hz, 32 bit centering sketch on frame


-seltar
Re: fullscreen api, here u go!
Reply #7 - Jun 16th, 2006, 10:13am
 
hm, that does exactly what it should. i guess it could be a bug when the sketch is taken from the frame and put in the fullscreen window.

could you try to take this line away from the setup function:
setFullScreen( true );

and then press ctrl+f to manually enter fullscreen mode. i think that should work!



hm, i'm really curious by this, hopefully i'll have a windows pc to test by myself soon!
Re: fullscreen api, here u go!
Reply #8 - Sep 22nd, 2006, 1:06am
 
Hi hansi,

i am using a macBook pro and youre script work fantastic. Thanks for that. But I got a question, is it possible to use the fullscreenmode with OPENGL?

greatings,
steffen
Re: fullscreen api, here u go!
Reply #9 - Feb 6th, 2007, 8:11am
 
Hello everyone, little bit outdated, but I have still probs with this nice application.  

Btw, I've registered exactly the same problems like seltar with older GeForce2 MX. With setting the "setFullScreen(false);"  then go on with ctrl+f seems working pretty well. Under win/XP.

But I have another prob., which I can't solve at all. I'm using opengl renderer each time I want to go to the fullscreen mode (because of my old machine). And all of fonts displayed in fs mode tuns to ugly small rectangles. I've found that the same bug happens when the program displaying PImiage(s) in fs - looks like it's caused by the same crap. At first I thought its all about some driver mistake, but no matter which one is used. I have no idea how to fix this, if any one has.. pls help me.
                             
Re: fullscreen api, here u go!
Reply #10 - Feb 6th, 2007, 5:54pm
 
Hi Kof-

Your font problem sounds similar to one that I ran into when generating PDF files on the Mac.  Have a look at this bug and see if any of the suggestions there help for you:

 http://dev.processing.org/bugs/show_bug.cgi?id=407

The problem listed there is specific to Java 1.5 on the Mac, but your symptoms sound very similar so maybe the workaround would help you too.

-Matt
Re: fullscreen api, here u go!
Reply #11 - Feb 6th, 2007, 11:44pm
 
blank rectangles in opengl means that your card doesn't have enough texture memory to store the fonts or images, or that there's some other problem with binding textures (i.e. a driver problem or the bit depth of the screen is too high, etc)

rectangles in pdf documents, on the other hand, mean that you haven't read the pdf reference closely. Wink
Re: fullscreen api, here u go!
Reply #12 - Feb 7th, 2007, 11:37am
 
Thanks fry, it seems problem was solved. Problem wasn't around memory. 64 megs of graphical mem are enough to draw even quite big images, or to hold a whole font inside. Problem lays on the bithdepth.. using 32-bit looks making probs while fs-ing the applications for my lovely poor card. By lowering the screen-depth to 16-bit I've maneged to fix a whole problem.. Thanks a lot, Kof
Re: fullscreen api, here u go!
Reply #13 - Feb 7th, 2007, 4:14pm
 
Quote:
rectangles in pdf documents, on the other hand, mean that you haven't read the pdf reference closely.


Guilty as charged.  Smiley

Sorry if I led you astray, Kof!
Re: fullscreen api, here u go!
Reply #14 - Aug 1st, 2007, 7:38am
 
after quite a bit of time theres an update that (hopefully) fixes the opengl problem:
http://www.superduper.org/processing/fullscreen_api/

it still needs more testing on windows platform, so test reports are welcome!
Pages: 1 2 3 4