Quantcast
Channel: beginners - openFrameworks
Viewing all 4929 articles
Browse latest View live

Using Typograhpy on OF


Hello all! Beginner here. To play visuals according to a music track

$
0
0

@abey wrote:

Hi I'm a graphic designer, completely new to Openframeworks. Just started off with basics like loading images and playing video and all. I would like to create something which can create visuals according to a given track or sound from a mic. Is it too early to start off something like this? I thought rather than just going through all the tutorials, why not do a project so that it makes the learning more interesting. Please guide me on this. Thanks in advance!

Posts: 2

Participants: 2

Read full topic

ofxCvImage remap for image warping

$
0
0

@ZaellixA wrote:

Hello everyone,

I am quite new in programming, openframeworks and computer vision altogether, so I hope someone could provide some help.

I am trying to do some image morphing in order to create a sequence of transition-frames between two images. For reasons of simplicity I decided to work with optical flow calculation in order to calculate some way to find how the two images have to be warped and after that interpolate the colors of their pixels to get the intermediate frame (or use alpha blending or whatever...).

So now the question is... Does ofxCVImage remap() could help somehow? Does it actually warp an image, and if yes how exactly does it do so? What are the arguments that I have to pass in order to make it work properly?

I hope the question does make sense and I am not really out of time and space with all this stuff. Anyway, I hope to hear from someone.

All the best,

Achilles.

Posts: 1

Participants: 1

Read full topic

QtCreator - ofxCv

$
0
0

@spinzero wrote:

Hi!

I try to compile opencv example-background in OF-9.7,
but QtCreator can't find ofxCv header:

`ofxCv/Tracker.h: No such file or directory`
`ofxCv/Utilities.h: No such file or directory`

I've tryed to add paths in .qbs file:

of.includePaths: [ '/usr/local/OF-9.7/addons/ofcCv'
,'/usr/local/OF-9.7/addons/ofcCv/libs'
,'/usr/local/OF-9.7/addons/ofcCv/libs/include'
,'/usr/local/OF-9.7/addons/ofcCv/libs/src'
,'/usr/local/OF-9.7/addons/ofcCv/src']

..then, it ask another header:

ofxCv/Wrappers.h: No such file or directory

Does the ProjectGenerator could have link problems ?

Posts: 1

Participants: 1

Read full topic

Can’t get OF samples compiled linux debian

$
0
0

@Juan wrote:

i install the of_v0.9.7_linux64_release on linux debian.
install the install_dependencies.sh script successfully.
compile ./compileOF.sh -j3 successfully as well.

but i can't compile any example:
I'm trying to compile 3DPrimitivesExample and the empty example but i get this make error:

/home/yoo/Develop/of_v0.9.7_linux64_release/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp:8:21: fatal error: RtAudio.h: No such file or directory
#include "RtAudio.h"
^
compilation terminated.

very frustrated. I don't know what to do more...
Any Ideas?
Thanks in Advance!!!

Posts: 1

Participants: 1

Read full topic

Video Player Stutter When Changing Source

$
0
0

@organnoise wrote:

I am trying to sequence a series of videos randomly.

I have created an array of video players and essentially I only render one of the videos at a time in the draw loop.

This is super close to doing what I want, but at certain times when the video switches there is visually noticable hiccup of frames. It tends to get worse the longer I run the code.

The script uses the ofxHAPAVPlayer so I can play HAP videos.

The code isn't very long so I'm sharing a link to the project here:

PROJECT

Thank you for your time

Posts: 1

Participants: 1

Read full topic

How to HTTP POST image to URL?

$
0
0

@fooness wrote:

Dear openFrameworkers,

is there a native way in openFrameworks how to just send an image to some URL via HTTP POST?

The URL for sure plus the port need to be specified.

If possible I would not like to use Poco or something, but if there’s no native way …

Thank you very much!

Posts: 2

Participants: 2

Read full topic

Music sequencer BPM slightly off

$
0
0

@AndreasRef wrote:

Hi

I’m attempting to include a simple sequencer that plays back audio samples in OpenFrameworks in a project.

I have successfully gotten ofxSequencer and the 09-step-sequencer example from https://github.com/ofws/ofwMaxim to play back sounds, and they both work great except for one small thing:

None of them seem to be completely in BPM-sync if I test them against a metronome inside Ableton Live, and they booth appear (at least to my untrained ear) to start sounding “loose/untight” the more samples I playback at once.

Has anybody experienced anything similar when trying to make a music sequencer?

Any hints / tips for alternatives / etc much appreciated!

Cheers
Andreas

Posts: 1

Participants: 1

Read full topic


Nesting meshes within a container

$
0
0

@asabanapal wrote:

Hi
I'm looking for pointers on how best to build a 3D 'scene' of various meshes which attach to parents/children and can therefore be controlled by transforming the parent etc.

I thought this was possible using the ofNode class but I can't figure how to add mesh data to an existing node. Is it possible? Could anyone point me in the right direction or towards a relevant doc for how to build complex 3D scenes in oF please?

Thanks!

Posts: 6

Participants: 2

Read full topic

Error compiling OF-master branch on Linux Mint 18 64-bit

$
0
0

@jarednielsen wrote:

Attempting to install the master branch from Github. No errors after installing dependencies, but I get a string of fatal errors and the message "there has been a problem compiling Debug OF library" after running ./compileOF.sh -j3

logname: no login name
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0
with PKG_CONFIG_LIBDIR=
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
Compiling /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofTexture.cpp
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
g++ -g3 -DDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/app -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/video -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/events -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/types -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/math -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/sound -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/3d -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/communication -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/graphics  -MMD -MP -MF /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofTexture.d -MT/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofTexture.o -o /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofTexture.o -c /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofTexture.cpp
Compiling /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofMaterial.cpp
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
g++ -g3 -DDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/app -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/video -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/events -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/types -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/math -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/sound -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/3d -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/communication -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/graphics  -MMD -MP -MF /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofMaterial.d -MT/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofMaterial.o -o /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofMaterial.o -c /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofMaterial.cpp
Compiling /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofVboMesh.cpp
find: '/home/jarednielsen/openFrameworks-master/libs/*/include': No such file or directory
g++ -g3 -DDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/app -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/video -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/events -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/types -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/math -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/sound -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/3d -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/communication -I/home/jarednielsen/openFrameworks-master/libs/openFrameworks/graphics  -MMD -MP -MF /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVboMesh.d -MT/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVboMesh.o -o /home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVboMesh.o -c /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofVboMesh.cpp
In file included from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/types/ofRectangle.h:4:0,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofTexture.h:3,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofTexture.cpp:1:
/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils/ofConstants.h:72:23: fatal error: glm/glm.hpp: No such file or directory
compilation terminated.
makefileCommon/compile.core.mk:238: recipe for target '/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofTexture.o' failed
make[1]: *** [/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofTexture.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/math/ofMath.h:3:0,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/types/ofColor.h:5,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofMaterial.h:2,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofMaterial.cpp:1:
/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils/ofConstants.h:72:23: fatal error: glm/glm.hpp: No such file or directory
compilation terminated.
makefileCommon/compile.core.mk:238: recipe for target '/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofMaterial.o' failed
make[1]: *** [/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofMaterial.o] Error 1
In file included from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofGLUtils.h:11:0,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/3d/ofMesh.h:7,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofVboMesh.h:3,
                 from /home/jarednielsen/openFrameworks-master/libs/openFrameworks/gl/ofVboMesh.cpp:1:
/home/jarednielsen/openFrameworks-master/libs/openFrameworks/utils/ofConstants.h:72:23: fatal error: glm/glm.hpp: No such file or directory
compilation terminated.
makefileCommon/compile.core.mk:238: recipe for target '/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVboMesh.o' failed
make[1]: *** [/home/jarednielsen/openFrameworks-master/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVboMesh.o] Error 1
makefileCommon/compile.core.mk:212: recipe for target 'Debug' failed
make: *** [Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

Help?

Posts: 1

Participants: 1

Read full topic

Adjusting width of sine wave?

$
0
0

@Awareness wrote:

I want to create a sine wave which moves horizontally from the screen's most left to most right position , how can I do this? I draw an "X" character on the screen which moves horizontally on the screen in a sine wave movement style(I did it by the help of online OfBook's Experimental Game Development section) but I couldn't understand how I can adjust it so that it moves horizontally from the screen's most left position to most right position,then from most right position to most left position in a sine wave pattern(and in a repeating pattern), how can I do that?

Posts: 1

Participants: 1

Read full topic

Remove initial stroke of ofPath?

$
0
0

@cuinjune wrote:

Hi, I would like to draw a donut shape that can toggle between filled and unfilled.

I could make the filled donut shape using ofPath but if I unfill the shape, and set the stroke width, a line appears and I would like to remove this line if possible.

Here's my code and the resulting image below.

ofPath circle;
circle.setStrokeWidth(2);
circle.setFilled(false);
circle.circle(ofGetWidth()/2, ofGetHeight()/2, 100);
circle.circle(ofGetWidth()/2, ofGetHeight()/2, 120);

circle.draw();

Thank you in advance.

Posts: 1

Participants: 1

Read full topic

Why this go-through shader draw inverted image?

$
0
0

@yangyangcv wrote:

i use the following code to make a go-through shader. i thought it will do nothing but show a full-screen image. but the result is a bottom-up image. could anybody help me to figure out why?

ofApp.h

#pragma once

#include "ofMain.h"

class ofApp : public ofBaseApp{

	public:
		void setup();
		void update();
		void draw();

		void keyPressed(int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void mouseEntered(int x, int y);
		void mouseExited(int x, int y);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);

		ofImage img_;
		ofShader shader_;
};

ofApp.cpp

#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
	ofBackground(0);
	ofSetFrameRate(30);

	if (!img_.load("2.jpg"))
		std::cout << "fail to load 2.jpg" << std::endl;
	shader_.load("shader");
}

//--------------------------------------------------------------
void ofApp::update(){

}

//--------------------------------------------------------------
void ofApp::draw(){
	ofSetColor(255);
	shader_.begin();
	img_.draw(0, 0, ofGetWidth(),ofGetHeight());

	shader_.end();
}

//--------------------------------------------------------------
void ofApp::keyPressed(int key){
}

//--------------------------------------------------------------
void ofApp::keyReleased(int key){
}

//--------------------------------------------------------------
void ofApp::mouseMoved(int x, int y ){
}

//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mouseEntered(int x, int y){

}

//--------------------------------------------------------------
void ofApp::mouseExited(int x, int y){

}

//--------------------------------------------------------------
void ofApp::windowResized(int w, int h){

}

//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){

}

//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){

}

shader.vert

#version 150

uniform mat4 modelViewProjectionMatrix;
in vec4 position;

void main()
{
	gl_Position = modelViewProjectionMatrix * position;
}

shader.frag

#version 150

uniform sampler2DRect tex0;
out vec4 outputColor;

void main()
{
    outputColor = texture(tex0, gl_FragCoord.xy);
}

Posts: 1

Participants: 1

Read full topic

How to place video in a moving primitive

$
0
0

@mehrbano_khattak wrote:

include "ofApp.h"

//--------------------------------------------------------------
void ofApp::setup() {
ofSetBackgroundColor(0);
ofSetFrameRate(60);
//time = 0;
vidGrabber.setDeviceID(0);
vidGrabber.setDesiredFrameRate(60);
vidGrabber.initGrabber(500,500);
}
//--------------------------------------------------------------
void ofApp::update() {
locX++;
locY++;
vidGrabber.update();
}
//--------------------------------------------------------------
void ofApp::draw() {
for (int x = 0; x < 10; x++) {
line (locX + x * ofGetWidth());
locX = locX % ofGetWidth();
}
}
void ofApp::line(float x) {
ofPushMatrix();
ofTranslate(x, ofGetHeight() / 2);
ofSetColor(255);
ofSetLineWidth(20);
//it should come here somewhere ... but how
float len = sin (ofMap (x, 0, ofGetWidth(), 0, PI)) * 20;
ofDrawLine(0, -len, 0, len);
ofPopMatrix();
}

Posts: 1

Participants: 1

Read full topic

How to make a circle vector

$
0
0

@jadie_p1 wrote:

I would like to know how to make a circle grid, or rather a vector of circles. I know how to do a nested for loop to create a grid of cirles in the x and y axis, but that is because they are both equal to each other, but if i wanted to draw small circles in a vector, How would I do this? I need one circle to be at the top, followed by 2 circles either side and 2 at the bottom (side by side)

example of what I would like


thanks

Jade

Posts: 2

Participants: 2

Read full topic


oF 0.9.7 msys2 (Windows 10) example build failed

$
0
0

@php0614 wrote:

hello all,

I've been trying to use oF 0.9.7 msys2/Qt creator version in my windows machine, however example(of3dPrimitives) build shows this error,


make[2]: *** [makefileCommon/compile.core.mk:241: /c/Works_S/openFrameworks/of_v 0.9.7_msys2_release/libs/openFrameworksCompiled/lib/msys2/obj/Release/libs/openF rameworks/3d/of3dPrimitives.o] error 1
make[1]: *** [makefileCommon/compile.core.mk:205: Release] error 2
..............................................


it looks like the compile is failed so there's no .exe file generated. I followed the setup guide very carefully. I updated msys2/mingw, installed all oF dependencies, also compiled oF using mingw32. I think I did everything in the setup guide.

and I can see there is 'of3dPrimitives.o' in the directory
{oFRoot}/libs/openFrameworksCompiled/lib/msys2/obj/Release/libs/openFrameworks/3d/
but in the error message it looks like the compiler cannot find it.

anyone Please?

Posts: 1

Participants: 1

Read full topic

Vector iterator not decrementable

$
0
0

@digitalColeman wrote:

I thought I was being smart by switching over to newer style vector iterator for loops but now that I am porting my code to windows from OSX (where it ran perfectly) I am getting the error "Vector Iterator not Decrementable" and the sketch fails to run.

I have read some of the related posts and they all seem to be slightly different use cases. I liked this style of for loop because it allowed me to use reference to the instance easily. I guess I either need to know if there is a solution or if I need to switch back to a regular for loop.

for(std::vector<car>::iterator it = cars.begin() ; it != cars.end(); ++it) {
    (*it).wander();
    (*it).arrive();
    (*it).update(maxSpd, alphaTagetAng);
    trail.setVertex((*it).leadVert, (*it).location);
    if(frame%3==0){
        trail.addVertex((*it).location);
        col = ofColor(ofRandom(100,200),ofRandom(100,200), ofRandom(100,200), 40);
        col = ofColor(col.r*tint.x,col.g*tint.y, col.b*tint.z, col.a*1.0 );
        trail.addColor(col);
        (*it).leadVert = trail.getNumVertices()-1;
    }
    if(trail.getNumVertices()>2500) {
        trail.removeVertex(0);
        trail.removeColor(0);
    }
    if (!(*it).life) {
        //ofRemove(cars, kill);
        cars.erase(it); //<---------------Problem
        //playMe = true;
        it--;
    }
}

Posts: 4

Participants: 2

Read full topic

ofxMaxim – audio output fails when applying low-pass or high-pass filter

$
0
0

@dcb wrote:

Hey everyone.

I'm grappling with an error that happens when I apply a low-pass or high-pass filter with resonance in ofxMaxim. At a certain 'threshold' the sounds simply cuts off and can not be recovered. While it is still possible to use other filter methods, the method that fails once does not yield any output after the 'threshold' is surpassed once.

To be more precise, the error happens in the audioOut() method here:

sample = m_sample.play();

if (m_param_enable_resonance) {
    // the error happens in this block
    sample = m_filter_lp.lores(sample, m_param_lpr_cutoff, m_param_lpr_resonance);
    sample = m_filter_hp.hires(sample, m_param_hpr_cutoff, m_param_hpr_resonance);
} else {
    sample = m_filter_lp.lopass(sample, m_param_lp_cutoff);
    sample = m_filter_hp.hipass(sample, m_param_hp_cutoff);
}

The frequency cutoff variables m_param_lpr_cutoff and m_param_hpr_cutoff are of type ofParameter<double> with a range between 10.0 and 44100.0 (the sample rate). These values I took from the source code of the maximilian filter function.

//awesome. cuttof is freq in hz. res is between 1 and whatever. Watch out!
double maxiFilter::lores(double input, double cutoff1, double resonance) {
	cutoff=cutoff1;
	if (cutoff<10) cutoff=10;
	if (cutoff>(maxiSettings::sampleRate)) cutoff=(maxiSettings::sampleRate);
	if (resonance<1.) resonance = 1.;
	//...
}

In the case of the value for m_param_lpr_cutoff my sound fails around 10000 (Hz). I like the comment Watch out!, but the question now is, what should I watch out for? :wink:

The code for my example can e found here: https://github.com/davidbeermann/ofxMaxim-examples/tree/master/LowHighPassFiltering

Thanks.
David

Posts: 1

Participants: 1

Read full topic

Main.h not found

$
0
0

@alaska wrote:

I've downloaded a bunch of projects off Github and placed them in the myApps folder as one normally should but I keep getting an error that main.h is not found.
I even tried making new projects and replacing the src files but that didn't work!
P.s I am using Xcode

Posts: 2

Participants: 2

Read full topic

ofSetDataPathRoot does not apply from IDE

$
0
0

@Jordi wrote:

Hello all,

I'm running VS2015 and when i set the path to data folder it works when double clicking the app but not when running from the IDE. Is this the expected behavior?

ofSetDataPathRoot("../data/");

my folder structure is:

app/
    bin/
        data/
        Win32/
        x64/

I need this because some .dlls (like freeimage and freetype) have same names but seem to conflict in different platforms.

Any tips appreciated! thanks!

Posts: 3

Participants: 2

Read full topic

Viewing all 4929 articles
Browse latest View live