Showing png files on fullscreen on a projector + Transitions, displaying multiple pictures
Hello community,
this is the first time I am working with MAX.
I use it combined with an Arduino with Lightsensors.
The different light sensors on the Arduino should trigger different images.
I already figured out how to trigger different images in a fpic area depending on the values the light sensors send.
But I really struggle to get the images on an external window (something like jit.window) and on another screen.
How can I create a fullscreen window on a second screen in which I can load a lot of different images?
It would be great if I could assign different positions and scalings to every picture.
Thank you all in advance.
Drag the jit.window to the 2nd screen / projector and press the Escape key to toggle fullscreen mode.
Thank you Pedros! Works perfectly.
Additional question:
I have 5 different pictures. It depends on the values from the LDR which pictures are shown. By now I just solved this with if statements. (value range 700-750 shows picture 1, 750-800 picture 2, ...) Is there a way to add some transitions or effects when the pictures are changing?
I tried a fade in fade out but the every time the light sensor sends new date (200ms) the effect starts again from the beginning.
I need the fast refresh rate of the light sensor because people should be able to interact fast with it.
Edit:
Two more questions: right now I give every picture a static space where it will be displayed. So I can only display a certain amount of pictures because I am not able to overlap them. Also I see the "reserved spaces" for the other pictures as black boxes. How could I change it to only seeing the last triggered picture and nothing else?
Second question:
Right now I only can load pictures through the "read" command and the file browser. Is there a way to determine the pictures I want to load before? I tried messages like "pic test1.png" but it did not load the file. (path is correct)
Jan, two advices:
1- If you post your patch attempt here (select all, Edit/Copy Compressed in Max), there's a higher probability of someone being able to understand and help.
2- You can see which messages a certain object is supposed to receive by right-clicking on it and choosing Help or Reference, or by right-clicking at its input.
Now to your questions:
1- You can't "add" transitions like you do in a Powerpoint presentation, you can certainly program them (crossfades, wipes, scale, etc)
2- We must see a patch
3- You can configure the jit.world object to have a black background instead of the current grey (jit.world main @erase_color 0. 0. 0. 1.). Now, if you really want to see just one picture at a time, I would use a single jit.gl.videoplane and everytime I send a new picture, I would also send a new size/position.
4- The proper message would be "read test1.png".
Max is a great programming environment but, to feel comfortable with it, you need to invest some time. Read the initial tutorials, and the ones that are important to your use case, consult the help files of the objects you're using, unblock them and copy/paste portions to your own patch, see videos on YouTube, and, of course, ask for advice here in the forums. Good luck and welcome to this community!
Thank you again!
Everything you suggested worked for me.
I know that it takes some time to learn a new tool. And by now Max is really overwhelming for me. I already invested some time but my problem is, that a lot of times I needed hours of searching / googling to find the right solutions. But I will definitely keep reading the documentary / watch tutorials etc.
I added my patch. Some explanation: It is an interactive project about fake/hoax news. There are some print outs of fake news with light sensors under the papers. The audience can shine a light on the different papers to reveal additional information on a projector to try to find the truth somewhere.
There is one LDR under every print out article. The LDRs are connected to an Arduino.
By now everything is working as intended. I can move the light around to trigger different images on my projector. I am now trying to make it more interesting by adding effects / transitions etc.
Your [patcher lightcheck] outputs a true/false message (0/1) but you have that connected to a button. The button outputs a bang with ANY input. I think you want to trigger it only when the message is true [sel 1]. On the other hand, if the false state is not being used, why not change the if condition inside [if $i1 == $i2 == $i3 then bang] ?
Yes that is exactly what I tried to do there. It worked now, thank you!