Hello,
I suspect I’m overlooking something simple, but when I use loadURL to create a Surface, I consistently get back an incomplete / corrupt image. I should note that this same behavior also occurs in the flickrTest sample project (cinder 0.9.0, Win10, VS2013).
relevant code:
gl::TextureRef tex;
void cameraTest1App::setup()
{
Surface feed1(1920,1072,false);
ImageSource::Options options;
options.throwOnFirstException(true);
feed1 = loadImage(loadUrl("http://10.0.0.15/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=(anyters)&user=admin&password=xxxx"), options, "jpg");
tex = gl::Texture::create(feed1);
}
what am I missing?