Quantcast
Channel: openFrameworks - Latest posts
Browsing all 40524 articles
Browse latest View live
↧

Scaling down a texture for use in shader

Thanks. I would up hacking my way out in the shader with something like the following: vec2 pos = gl_FragCoord.xy * vec2(textureWidth/fboWidth, textureHeight/fboHeight); I then just looked up the...

View Article


Best way to draw an array of objects

poly.arc(0, 0, radius, radius, 0, 360); for(int i=0; i<poly.getVertices().size(); i++){ mesh.addVertex(poly[i]); mesh.addVertex(poly[i+1]); mesh.addVertex(ofVec3f(0,0)); } Something i just...

View Article


Multiple usb audio outputs on Raspberry Pi 2

Hey, wondering if you got any further with this. Like you I have been able to get multichannel working on Mac but wondering how practical it is to port to RPi. Rob

View Article

Sharing variables between classes

Hi guys, Firstly, I am an oF noob and have been having a hell of a time to pass variables from one class to another. I am trying to pass values from ClassTwo to ClassOne using a pointer. My structure...

View Article

Multiple usb audio outputs on Raspberry Pi 2

Hey Rob, I didn't manage to make it work on the RPi2, but it was just an experiment so I didn't spend a lot of time on it. However it seems to be doable with a little research and some sound server...

View Article


Multiple usb audio outputs on Raspberry Pi 2

Also I think it was with oF 0.8.4. Maybe with the new 0.9.0 version things have changed.

View Article

'Slice' 3D Object using near & far clipping & view result other other angle

For future reference I've achieved what I needed by using user-defined clip planes ofApp.h #pragma once #include "ofMain.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void...

View Article

How to rotate and translate a ofxBullet body?

Hi, I am trying to understand how to rotate some boxes I am creating from default "vertical position". Can I create the boxes on the rotation position I like? Or must I make the rotation after the...

View Article


Best way to draw an array of objects

yes, the solution i posted only goes to size()-1 for that reason. by default in gcc and clang accessing a vector with [] doesn't do bound checks for performance reasons. in visual studio it only does...

View Article


Can Any one tell me why ofImage call update two times?

//----------------------------------------------------------templateofImage_& ofImage_::operator=(const ofImage_& mom) { if(&mom==this) return *this; clone(mom); update(); #if...

View Article

Best way to draw an array of objects

interesting to know ! Indeed, i tried this one and it throws the error poly.getVertices.at(i); Now doesn't the mesh lacks a vertex when using size()-1 ?

View Article

Best way to draw an array of objects

i've sent a fix so this is checked at least in debug mode: https://github.com/openframeworks/openFrameworks/pull/4365 and no since later in the for loop, you are doing; mesh.addVertex(poly[i+1]); so...

View Article

Wich kinect is best for Openframeworks?

Hi there ! Im looking to buy my self a kinect for start coding with it. The doubt that I have is wich Kinect should I buy? Does a normal xbox 360 Kinect work for Windows,mac and linux? Do I have to...

View Article


I think here may be a mistake?ofPath default value:UseShapeColor

In ofGLRenderer//----------------------------------------------------------//Resets openGL parameters back to OF defaultsvoid ofGLRenderer::setupGraphicDefaults(){...

View Article

How to rotate and translate a ofxBullet body?

You can pass in the quaternion like you are doing to the create function. It might be easier to use an ofNode, do you rotations on that since there are some convenience functions like tilt, pan and...

View Article


Can Any one tell me why ofImage call update two times?

I think second update is nouse....

View Article

Wich kinect is best for Openframeworks?

Hello, I am really interested in having some feedback also. I am only using old kinects which seems to be the most supported for creative coding such with openFrameworks, Processing or Max / Pd I know...

View Article


I think here may be a mistake?ofPath default value:UseShapeColor

but if "true" also has problems,so i do like this where i draw something: ofGetCurrentRenderer()->getPath().setUseShapeColor(true);//////here set,not change ofGLRenderer...

View Article

How to rotate and translate a ofxBullet body?

I have been working on the orientation issues. Bullet handles quaternions different than OF. I am working on a dev branch to be ready for OF 009. I added a convenience function that will work with...

View Article

How to make a soundboard be multichannel using FMOD?

Well , i think is correct to make a new topic asking this exactly. I been serching now for over a week how to play differents sounds from different exits in my soundboard. Ill tryed...

View Article
Browsing all 40524 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>