Random sized star
@Nuro wrote: How would I get started making the size of this star (taken from the documentation) random? //Draws a star ofSetPolyMode(OF_POLY_WINDING_NONZERO); ofBeginShape(); ofVertex(400,135);...
View ArticleofRotate() question
@cuinjune wrote: Hi, I don't understand why ofRotate(45, 0, 0, 0); rotates the object around the x-axis.Here's my test code. void ofApp::draw(){ ofSetColor(ofColor::red); ofTranslate(100, 100);...
View ArticleCan the same install of OF be used for Desktop and Android?
@hamoid wrote: Hi! So far I have built Desktop apps, but I would like to target Android too. I followed https://github.com/openframeworks/openFrameworks/blob/master/docs/android_studio.md without much...
View Article4Universe artnet control using ofxArtnet
@kangttto wrote: Good morningI am trying to control the led using 4universe artnet.Addon is https://github.com/hiroyuki/ofxArtnetIs in use. the problem is I manually set up artnet's ip on the Mac's...
View ArticleFramerate vs drawing speed
@robotPatrol wrote: is there a way to control the speed at which the screen draws that is not related to the framerate at which a program runs or related to refreshing the screen by resetting the...
View ArticleCLI graphical application
@Antharia_Jack wrote: Hi there! I would like to create kind of a simple graphical application with a command line interface, inspired by this. Do you know how can i integrate a 'prompt' inside a OF...
View ArticleComparing ofTexture, ofPixels, ofImage on iOS: how to get pixels from texture?
@Autofasurer wrote: Hi all, I keep on bumping into a problem when wanting to compare two images: 1 loaded into ofImage, the other being part of the screen; let's see if I can make it clear what I want...
View ArticleHigh resolution setting on Linux?
@cuinjune wrote: Hi, I could successfully port my Mac OF app to Ubuntu today.But it didn't look as good as it was in Mac. For example, when I draw a circle on Ubuntu I could clearly notice aliasing...
View ArticleHow to write $HOME path in make file?
@cuinjune wrote: Hi, I'm trying to add include path in config.make for my Linux app. It works when I write full path like PROJECT_CFLAGS = -I/home/cuinjune/myLib/src But I wonder if I can replace...
View ArticleConfused about window types
@clem wrote: Is it necessary to include GLFWWindow in main.cpp or is that the default?When should I choose one window type over another? Posts: 2 Participants: 2 Read full topic
View ArticleSampling two textures at random fails for point sprites
@ilmenite wrote: I'm trying to render two different textures, say, a star and a snowflake, to random points (point spites, where gl_PointSize is 20 - set in my vertex shader). What I expect is simple:...
View ArticleUpdate children of ofNode
@vollstock wrote: Is ofNode only meant for 3D manipulation?If I want to build a hierarchy of objects that will need an update method, how do I call it?From what I see, ofNodes children are stored in a...
View ArticleDifference between OF_MATRIX_PROJECTION and GL_PROJECTION?
@clem wrote: What's the difference between these? ofMatrixMode(OF_MATRIX_PROJECTION); and ofMatrixMode(GL_PROJECTION); and glMatrixMode(GL_PROJECTION); Posts: 2 Participants: 2 Read full topic
View ArticleSetting indices to VBO: Can't seem to make it work
@ayruos wrote: Hi! So I'm trying to make a simple square using two GL_TRIANGLES using four vertices and can't seem to make it work. This is what I'm ending up with: Screen Shot 2017-08-10 at 12.47.10...
View ArticleofVideoPlayer when looping - performance loss
@dimitre wrote: Hello I've recently noticed ofVideoPlayer slows down a bit when reaches the end of duration and start playing again.I suppose it is maybe loading the videofile again, but not sure. Any...
View ArticleKinect implementation
@Louisa wrote: Hi all. I managed to connect XBox Kinect ONE to OF, and now looking for libraries and working examples that can achieve something like this: or Has anyone done anything similar? I don't...
View ArticleRecursively add vertices to polyline?
@oseph wrote: Hi everyone! I'm working on a function that fills out a poly line with points. It compares PointA and PointB in a polyline, and if the distance between the two points is greater than X,...
View ArticleResetting ofApp while program is still running
@robotPatrol wrote: hi, it may be a false memory, but i remember somewhere (maybe from processing?) that it is not good practice to call setup() from within a program. i have multiple interfaces that...
View ArticleofVideoPlayer setFrame question
@jlyjn wrote: howdy, i'm having some trouble with setFrame. in one instance it works fine but in another it does not- the video jumps to the frame but then does not continue playing. what am i doing...
View ArticleofxGeoJSON problem parsing json files
@marcorexo wrote: Openframeworks has an ofxGeoJSON addon for importing and rendering json files. However, I can't get the addon to visualise files other than the one in the addon directory. I have a...
View Article