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.
IndexSuggestions & BugsSoftware Bugs › Capture+OpenGL size problem
Page Index Toggle Pages: 1
Capture+OpenGL size problem (Read 1681 times)
Capture+OpenGL size problem
Apr 19th, 2005, 4:47pm
 
When using the Capture API in conjunction with the OpenGL renderer, if the capture resolution is smaller than the window resolution, the image drawn is broken up.

ie (this is a snipped, not the full sketch),

Code:

int capX = 160;
int capY = 120;
int winX = 320;
int winY = 240;

void setup() {
size(winX, winY, OPENGL);
framerate(15);
video = new Capture(this, "", capX, capY, 15);
}

void draw()
{
image(video, 0, 0, winX, winY);
}



/Andrew
Re: Capture+OpenGL size problem
Reply #1 - Apr 19th, 2005, 4:59pm
 
Hrm -- never mind.

My issue appeared to be elsewhere, somehow interrelated with loadPixels()/updatePixels() and doing direct pixel edits.

Ignore/delete this post as you see fit.

Thanks,

/Andrew
Re: Capture+OpenGL size problem
Reply #2 - Apr 19th, 2005, 7:32pm
 
k, closing topic.
Page Index Toggle Pages: 1