We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've got a project that uses the webcam of my laptop, but the output window is really small. I've tried to use a bigger resolution, but that still only makes it a little bigger. I want it to be full screen, is there a function I could use to get that? I'm fine with it being a small resolution, I just want to scale the output to fit the width of my screen. I've tried using size(displayWidth, displayHeight); in the setup{} but then I get the error message that the resolution 1920x1080 is not supported by the selected output device. Does anyone have an idea for how to fix this?
Answers
Try this
But try to run the sketch with Sketch -> Present.
From here.
Ok I put in displayWidth and -Height again, and tried to run it with Sketch -> Present, but then nothing happens apart from my screen going grey, and if I try to do anything, java crashes.. is there anything else I might need to put in?
Using this:
and the regular run-button, I managed to get my window fullscreen, but half of the window is now empty, as opposed to the whole video being bigger; also, the video is now repeated three times, which I'm also not sure why it's doing that.. any ideas?
How about this 1?: >-)
Another similar 1: :(|)
Both of those codes just created a bigger output window for me, but not a fullscreen one. I was kind of hoping that there was some kind of
resize()
function, I don't mind the resolution being really bad, I just need it to be fullscreen.I found this bit of code on here
which creates a fullscreen window, but leaves a thick grey boarder around my video, which I'm not sure why it's doing that..
So this doesn't work for you?
I tried out your code on its own, and it worked fine, (thankyou!!) but then I tried to fit it into my code, and the screen just went black (because of the background I'm assuming), so I think I've made a mistake somewhere.. maybe to do with the layering of the background/capture? But I'm not sure how write it.. Before, I had everything in the event() function in my draw() function, but I've split that bit up, like in your code. What else do I need to do?