New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ofVideoGrabber with bUseTexture = false does not update #4811
Comments
this sounds like a bug, even if there's no texture, the pixels are updated and the grabber should return true on isNewFrame. sounds like an easy fix, just moving out of that if wheerever the flag is set to true |
in the hopes of helping here is a bit more info. while in headless mode:
while NOT in headless mode |
yes, if you are in headless mode you can't use opengl at all and any call to an opengl command, like creating a texture will crash the app since there's no opengl context. you should use setUseTexture(false) in that case |
i did try that with setUseTexture(false) before and after setup. here what crashes in headless mode
|
yes that's true you need to call setup(w,h,false) otherwise it'll try to create a texture in setup and crash too |
@antimodular is this fixed now with #5134? |
yes. |
Thanks @stephanschulz ! |
i'm on OS X 10.10 with OF 0.9.0 and Xcode 6.4
will trying to make a headless app via ofAppNoWindow i noticed when setting up ofVideoGrabber like so:
vidGrabber.isFrameNew() always returns 0.
looking in to void ofVideoGrabber::update() need bUseTexture to be true otherwise nothing happens.
is it even possible to use the camera image with bUseTexture = false?
thx
The text was updated successfully, but these errors were encountered: