Open JBSCode opened 9 years ago
Hi JBSCode,
I noticed that the examples did not work either. However, I was not able to fix it so easily as you did.
I searched the project in xcode and did not find anything such as: tex.loadData( getPixels(), getWidth(), getHeight(), GL_RGB);
Nor did I find the file ofxMacamPs3Eye.mm
I am a complete newb at xcode and OpenFrameworks but have prior coding experience in Processing and others. How did you know to change that?
Is it normal for a project to have 100's of warnings when you compile?
Is there anyway a working version could be uploaded to this project?
Thanks for your help
@Sensebellum, I've received compilation errors and had to rename some source files from .mm to .m, after that, as OP said:
In ofxMacamPs3Eye::update() of ofxMacamPs3Eye.mm replace tex.loadData( getPixels(), getWidth(), getHeight(), GL_RGB); with tex.loadData( getPixelsRef() );
And everything will work just fine.
Try using search in your xcode project if you can't find necessary method.
I had the same problem too. JBS Solution works. Thanks.
Hey. The links of the ofxMacam addon are broken in all examples. Just deleting the reference and dragging the src folder back in to xcode worked.
In ofxMacamPs3Eye::update() of ofxMacamPs3Eye.mm I replaced tex.loadData( getPixels(), getWidth(), getHeight(), GL_RGB); with tex.loadData( getPixelsRef() );
I am using xcode 0.8.4