Keystone/mapping similar addon
@Ian_Scott wrote: Hey All Just Wondering if anyone knows of an addon that can achieve the same results as the processing Keystone library? - I know there is mapping addons available but the cursor...
View ArticleWhere to delete class objects instantiated with the new operator in ofApp.cpp?
@p1r4t3b0y wrote: Hi, If I instantiate class objects inside ofApp.cpp, using the new operator - which allocates them in heap memory - , where do I need to delete them, if they remain valid until the...
View ArticleofxUST — How to get multiple scan lines of an object as single blob?
@holykaw wrote: ofxust-screenshot1026×800 13 KB I am currently using ofxUST to interface with Hokuyo UST-10LX. This lidar model has 270° coverage with 0.25° resolution. I am wondering since an object...
View ArticleofxNetwork error and tips for sending an image between two laptops?
@juss wrote: Hi, I am trying to send FBO pixels from my app to another OF app in my second laptop. As the first approach I am testing this sender app from Mastering openFrameworks: Creative Coding...
View ArticleFree and highly relevant beginners C++ and graphics course (video)
@jackp wrote: I did the usual thing of diving into something new (OpenFrameworks in this case) knowing very little about something critical (C++ in this case!). I’m not new to coding, but I’ve never...
View ArticleHow does Z parameter of ofTranslate work?
@Sleepful wrote: looking at ofTranslate there is a z paramenter, how does it affect drawing? I was expecting it to draw things bigger or smaller if they are “closer” or “father” away, when drawing 2d...
View ArticleTo make the motion of a waveform with a circle
@jewel wrote: I’d like to make a circle. But the circle is moving too fast. How can we solve this? #include "ofApp.h" //-------------------------------------------------------------- void...
View ArticleCompiling an OF 0.9.8 project on Windows 10
@txmod wrote: Hi all, I’ve been using OF for years on MacOS, but now I want to compile an existing project on Windows 10. I haven’t used Windows for a long, so please can you recommend the best way....
View ArticleEditing Vertices in a Mesh/Sphere
@makakken wrote: float deformFreq = 10; float deform = 3; float rad = 5; ofMesh vertices = sphere.getMesh(); for(int i = 0; i > vertices.getNumVertices(); i++) { glm::vec3 v = vertices0[i]; v =...
View ArticleUsing ofTranslate with fbo.draw()
@kaspar.wtf wrote: hi ! completely new here but something has been buggin me for a few hours, I must be missing something but I can never get my fbo to take the whole screen space when I translate...
View ArticleDifferent textures on an ofBoxPrimitive?
@Craig_Horsley wrote: I have six textures in my data folder, and I want to apply a different one to each face of an ofBoxPrimitive instance, how would I go about doing this? Is there a function that...
View ArticleRotating Squares on the grid
@Arza_Sajid wrote: Hey guys, I have created a 2d grid of squares 5x5 cube2066×1366 57.4 KB I am trying to rotate the squares individually, the code i have so far is ofSeedRandom(0);...
View ArticleUsing mouseX variable in custom class
@kaspar.wtf wrote: hi, each time I call the mouseX or mouseY variables inside a custom created class I get an undeclared identifier error. I think I have added the right includes at the top of my...
View ArticleRotating a 3D sphere, problem with Y axis
@juss wrote: Hi! I am beginner with 3D in OF and have tried to solve a rotation problem, the answer is probably something simple! I have a 3D primitive sphere that rotates to left and right based on...
View ArticleOfshader set uniform once instead of each frame
@luffy8naruto wrote: Hi, I am trying to implement a worley noise using ofshader. My ofDraw() code looks like this: ofSetBackgroundColor(0, 0, 0); z += 1; if (z > 400) z = 0; shader.begin();...
View ArticleUse of auto and atomic in threadExample
@TimChi wrote: Hi, I’m working thru the threadExample; its my first time with ofThread. I noticed that all of the local variables in threadedFunction() are auto, and that atomic is included in the...
View ArticleIncluding shader functions inside shader
@kaspar.wtf wrote: I have a noise shader function that I’d like to include in my main vertex and fragment shader. I learnt that glsl doesnt have a file system comprehension, meaning i have to handle...
View ArticleRotate a mesh around a point
@fresla wrote: I am rotating meshes with a 4x4 matrix I manipulate with a GUI, here is my manipulation code: from my .h file: ofParameterGroup params; ofParameter <bool> drawOn; ofParameter...
View ArticleSave screenshot using FBO but background always transparent?
@lethalrush wrote: Hi, I am trying to save a screenshot to disk using an FBO but the background is always transparent. I’m sure I’m missing something simple. Here is the code. (Note that I want to...
View ArticleInfinite Horizontal Scrolling Using FBOs
@michael21 wrote: Hey all! I am trying to get a functionality where I can draw paths on a constantly scrolling background. Currently, I am drawing to an FBO, then drawing the FBO at a constantly...
View Article