openframeworks

OpenGL ES, OpenFrameworks, Cinder and IOS creative development

只谈情不闲聊 提交于 2019-12-04 09:17:54
问题 I'm in the middle of a difficult choice. I'd like to learn a language that can help me create application with a strong artistic/creative/graphic component and use it for commercial projects for my customers. My first choice was OpenGL ES, i think of it as the "Standard" way to go through. But, in the meanwhile, i discovered this site : http://www.creativeapplications.net/ where i found many cool apps for ios, for most built using OpenFramewors and Cinder. My question is: why choose this 2

Unable to resolve template based identifier “get”. Netbeans 8.1

感情迁移 提交于 2019-12-04 01:56:34
问题 My problem is: I am receiving warning which is presented in the topic of a post. It is really flustrating. The autocomplete does not work with the code, beside which the warning occurs. The standard is set to C++14 . For instance: Boxes[2].get()->setPosition(Boxes[2].get()->getPosition() + v1); It gives me a warning and when I try to write another Boxes[2]. the autocomplete does not work. The declaration of an object: <shared_ptr<ofxBox2dRect>> Boxes; I tried to solve my problem using these

Getting coordinates for glFrustum

家住魔仙堡 提交于 2019-12-03 16:28:50
I just started reading about OpenGL topics, specifically about Viewing for my current needs. I am trying to understand glFrustum for a perspective projection of objects that I have drawn on the screen and as I understand glFrustum would make the farther objects smaller than the nearer objects. I am using openFrameworks here for drawing objects such as Image / Box etc. and here's a short example of what I am trying to do: openFrameworks draw method draw() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0, 1.0, -1.0, 1.0, 3.0, 500.0); glMatrixMode(GL_MODELVIEW); sceneImage.draw(0,0

OpenGL ES, OpenFrameworks, Cinder and IOS creative development

流过昼夜 提交于 2019-12-03 01:42:36
I'm in the middle of a difficult choice. I'd like to learn a language that can help me create application with a strong artistic/creative/graphic component and use it for commercial projects for my customers. My first choice was OpenGL ES, i think of it as the "Standard" way to go through. But, in the meanwhile, i discovered this site : http://www.creativeapplications.net/ where i found many cool apps for ios, for most built using OpenFramewors and Cinder . My question is: why choose this 2 "wrapper" instead of OpenGL? I need to understand benefits and disadvantages. I'm not sure that using

openFrameworks vs Processing

青春壹個敷衍的年華 提交于 2019-12-02 15:07:55
I have been reading a lot about openFrameworks and Processing, But still can't make the distinction other than one is in C++ and the other in Java. Can someone tell me which is for what exactly? George Profenza You are correct, one is C++ and the other is Java, and those differences apply to these frameworks, so it's up to your preferences/project scope to decide which one is best for you. With Processing : You get a minimal IDE, but can easily use Eclipse or other Java IDEs. You get memory management (garbage collection) You can publish applets online(via Java Applet or 'slimmed down'

How to calculate the distance between ofColors in openframeworks

馋奶兔 提交于 2019-12-02 09:00:21
What I was thinking to do is to convert ofColor to l*a*b color space and measure the euclidean distance. But I don't know how should I do it in openframeworks? George Profenza I'm not very experienced with c++ but I ported this snippet over: //ported from http://cookbooks.adobe.com/post_Useful_color_equations__RGB_to_LAB_converter-14227.html struct Color{ float R,G,B,X,Y,Z,L,a,b; }; #define REF_X 95.047; // Observer= 2°, Illuminant= D65 #define REF_Y 100.000; #define REF_Z 108.883; Color rgb2xyz(int R,int G,int B){ float r = R / 255.0; float g = G / 255.0; float b = B / 255.0; if (r > 0.04045)

Intermittent crash in recordingCallback() on app launch

一世执手 提交于 2019-12-01 14:42:27
My iOS app (using openFrameworks) crashes 30-40% of the time on launch on this line: if(soundInputPtr!=NULL) soundInputPtr->audioIn(tempBuffer, ioData->mBuffers[i].mDataByteSize/2, 1); which is inside the larger function in ofxiPhoneSoundStream.m static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { I am doing audio setup with ofSoundStreamSetup(0, 1, this, 44100, 256, 4); in setup() . In the simulator this crash happens 100% of the time. Any idea (a)

Unable to resolve template based identifier “get”. Netbeans 8.1

拟墨画扇 提交于 2019-12-01 11:21:06
My problem is: I am receiving warning which is presented in the topic of a post. It is really flustrating. The autocomplete does not work with the code, beside which the warning occurs. The standard is set to C++14 . For instance: Boxes[2].get()->setPosition(Boxes[2].get()->getPosition() + v1); It gives me a warning and when I try to write another Boxes[2]. the autocomplete does not work. The declaration of an object: <shared_ptr<ofxBox2dRect>> Boxes; I tried to solve my problem using these links: Unable to resolve identifier on netbeans “Unable to resolve identifier” , although build is

Unresolved external symbols in Visual Studio 2010

两盒软妹~` 提交于 2019-12-01 05:21:23
I am coming from Xcode, trying to compile a project in Visual Studio 2010, and I get the following errors: 2>ofxCLeye.obj : error LNK2019: unresolved external symbol "struct _GUID __cdecl CLEyeGetCameraUUID(int)" (?CLEyeGetCameraUUID@@YA?AU_GUID@@H@Z) referenced in function "public: static int __cdecl ofxCLeye::listDevices(void)" (?listDevices@ofxCLeye@@SAHXZ) 2>ofxCLeye.obj : error LNK2019: unresolved external symbol "int __cdecl CLEyeGetCameraCount(void)" (?CLEyeGetCameraCount@@YAHXZ) referenced in function "public: static int __cdecl ofxCLeye::listDevices(void)" (?listDevices@ofxCLeye@

Unresolved external symbols in Visual Studio 2010

本小妞迷上赌 提交于 2019-12-01 02:58:41
问题 I am coming from Xcode, trying to compile a project in Visual Studio 2010, and I get the following errors: 2>ofxCLeye.obj : error LNK2019: unresolved external symbol "struct _GUID __cdecl CLEyeGetCameraUUID(int)" (?CLEyeGetCameraUUID@@YA?AU_GUID@@H@Z) referenced in function "public: static int __cdecl ofxCLeye::listDevices(void)" (?listDevices@ofxCLeye@@SAHXZ) 2>ofxCLeye.obj : error LNK2019: unresolved external symbol "int __cdecl CLEyeGetCameraCount(void)" (?CLEyeGetCameraCount@@YAHXZ)