openframeworks

problem saving openGL FBO larger than window

Hello, I'm rendering into an OpenGL offscreen framebuffer object and like to save it as an image. Note that the FBO is larger than the display size. I can render into the offscreen buffer and use it as texture, which works. I can "scroll" this larger texture through the display using an offset, which makes me confident, that I render in...

How to change window orientation of iPhone in openframeworks??

as in title ...

Is There A .Net Library for Artistic Coding like Processing or OpenFrameworks?

I really like the work that's done with processing (http://processing.org) but I'm more exposed to the .Net world and would like to stay there. Is there a library or sub-language within .Net that is very focused on being easy to use for artists? Processing and OpenFrameworks excel because it's so easy to create animations and other visu...

how can I fix xcode compiling everything all the time ?

Hi, I've started to use XCode and it seems to work, well, most of it. The annoying thing is it compiles all the source files, even those that didn't change, each and every time. I'm getting the grips with openframeworks and I waste time compiling the openframeworks source files every time although they don't change. Here are my IDE a...

How to orbit around the Z-axis in 3D

Hello folks, I'm primarily a Flash AS3 dev, but I'm jumping into openframeworks and having trouble using 3D (these examples are in AS) In 2D you can simulate an object orbiting a point by using Math.Sin() and Math.cos(), like so function update(event:Event):void { dot.x = xCenter + Math.cos(angle*Math.PI/180) * range; dot.y = y...

any example of ofVideoPlayer on iPhone?

Hello community! Anyone knows any example of ofVideoPlayer working on iPhone?? Thanks!!! ...

what does openframe works mean(ofFill(),ofRec()...etc) any similar function can i find in opencv

what does openframe works mean(ofFill(),ofRec()...etc) any similar function can i find in opencv ...

Vector.erase(Iterator) causes bad memory access

Hi, I am trying to do a Z-Index reordering of videoObjects stored in a vector. The plan is to identify the videoObject which is going to be put on the first position of the vector, erase it and then insert it at the first position. Unfortunately the erase() function always causes bad memory access. Here is my code: testApp.h: vector...

Bitwise operators and converting an int to 2 bytes and back again.

first time user, Hi guys! So hopefully someone can help.. My background is php so entering the word of lowend stuff like, char is bytes, which are bits.. which is binary values.. etc is taking some time to get the hang of ;) What im trying to do here is sent some values from an Ardunio board to openFrameWorks (both are c++). What this...

openFrameworks (C++): Blur, Glow and other classic effects

Hi guys, I was doing some simple openframeworks (C++ based) tests drawing different shapes and I was wondering how to apply filters like blur, glow... I come from an AS3 background where this is a piece of cake. I know it won't be that easy but I'd like to find some kind of lead. I've read some people is using ofxShader but I can't fi...

How to track Finger tip in OpenCV or OpenFrameworks ?

I want to develop a program which uses the webcam to track finger tips. When tracked, the finger tip will be like an index and I will be able to get its positions even if it is moved around. If anyone has any advice for me. Thanks in advance. ...

OpenFrameworks/POCO Events not being listened?

Hello all, I'm having some problems with OpenFrameworks Event system, which is based on POCO's. I'm registering an event with ofNotifyEvent(ofEvent event) and definining the event listener with ofAddListener(ofEvent event,ListenerClass instance, ListenerMethod method) The class I'm registering as listener is never called when ofNotify...

openFrameworks Visual Studio Setup Tutorial?

I've been trying to get oF examples to compile with Visual Studio, but I'm either missing a link or something.. Is there a tutorial on how to setup oF with Visual Studio 2010 (or 2008 - or any version)? If not, can someone provide step-by-step directions on setting up oF with Visual Studio? (Unfortunately, the oF website doesn't provid...

Making 3d Models Transparent in OpenGl and OpenFrameworks

I'm using c++ OpenFrameworks and ofx3dModelLoader to load in 3ds models that I've already created. This is working great. However I would like to smoothly transition models visually as the enter the frustum's back plane. I have fog working but would really like to fade the models in from transparency. Is there any way to do this eithe...

Implementing a Fixed Coordinate system in OpenGL

The simple version of my project is rotating a sphere based on user input. However my rotations get weird after multiple rotations in certain situations due to openGL's local coordinate system. What I really need is to rotate based on a world/fixed coordinate system. Such that when I rotate the sphere once its rotation axes are not rota...

sprintf, commas and dots in C(++) (and localization?)

I am working in a project using openframeworks and I've been having some problems lately when writing XMLs. I've traced down the problem to a sprintf: It seems that under certain conditions an sprintf call may write commas instead of dots on float numbers (e.g. "2,56" instead of "2.56"). In my locale the floating numbers are represented...

How to implement thumb and fore finger interface

Hi all, I am developing a simple multi touch table using only a projector and a web cam. I found out that i could use this Thumb and fore finger interface technique. but i don't have any clue of how to implement it. i think it can be implemented with OpenCV or OpenFrameworks and use with CCV. can anybody help me ? Thanks, ...