Latest Multiple Monitors Advice
in
Integration and Hardware
•
2 months ago
Hi, I'm looking to get a sketch running on 3, then 6 monitors, hopefully just using extended desktop for 6.
I'm using Processing 2.0.1
Looking at three ways:
1. Present mode
If I aim to get 3 working in extended desktop with Present mode, things look simple:
Running a sketch across multiple displays
If you want Present to to use multiple monitors set your size() command to specify the full width and height of the available displays. This can be tricky because multiple displays are often different sizes, or their positions have negative values. There isn't a good way for us to implement this automatically, because there are an infinite number of ways that it can go wrong (which would lead to a similarly infinite stream of bug reports).
If you want Present to to use multiple monitors set your size() command to specify the full width and height of the available displays. This can be tricky because multiple displays are often different sizes, or their positions have negative values. There isn't a good way for us to implement this automatically, because there are an infinite number of ways that it can go wrong (which would lead to a similarly infinite stream of bug reports).
but maybe not :)......
I tried this with two, with no luck. It seems to default to the one selected in preferences with no joy.
2. PGraphics, PFrames
The other options seem to be more code, either PGraphics buffers or PFrames;
https://forum.processing.org/topic/present-full-screen-mode-stretched-across-multiple-screens
1) One Large Frame
- Create a canvas sized to the width/height of all three screens (eg. 3840 x 720)
- Create three separate PGraphics buffers of the same size as one screen (eg 1280x720)
- Position them at 0, 0 / 1280, 0 / 2560, 0 respectively
- Draw into them as needed...
2) Three Small Frames
- Declare a secondApplet/thirdApplet and two new PFrame's globally at the start of your sketch
- Assuming you have just two screens:
I'd rather avoid mode code, as it is getting complicated.
Or perhaps
3. Most Pixels Ever.....
Seeing as I would love to keep this simple and I have limited functionality (no mouse locations, just keypresses and text displays on 6 screens, is there a latest, simplest way to get Present working in multiple screens that people have achieved? or a very basic alternative other than the above?
Thanks for looking
1