Split screen in 4 (Processing 3.3.6 - Windows + Kinect v2)


#1

Hi! I’m new in the Processing world, really new.
I was looking on the web to find a way to split the screen in 4 parts, but i can’t find a code that helps me do this. Now i am using (or try to ahah) the 3.3.6 Processing version. Could some one help me?
I would use the 4 part for display the same video, taken by a kinect v2.
Sorry for my bad english, if something it’s confuse, I can try to explane my self better. Thank you :slight_smile:


#2

You can use the following:

image(img, 0, 0, width/2, height/2);
image(img, width/2, 0, width/2, height/2);
image(img, 0, height/2, width/2, height/2);
image(img, width/2, height/2, width/2, height/2);

#3

I tried and it says “img cannot be resolved to a variable”. Maybe I am doing something wrong :frowning:
Could you be more specific, please?


#4

It is because it supposes that you have a PImage variable called img in which you are storing the current frame of you kinect.


#5

Oh, ok! Thank you! :slight_smile:


#6

Check this post: https://forum.processing.org/two/discussion/21990/get-depth-value-for-each-pixel#latest

Kf


#7

Hi! I have another question. Could I split the screen in 4 coves, instead of 4 square? Like I said before, in every coves should be seen the image take from the kinect (the same image, replicate 4 time).
Thanks a lot for your time.