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

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 Article


Image may be NSFW.
Clik here to view.

ofRotate() 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 Article


Can 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 Article

4Universe 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 Article

Framerate 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 Article


CLI 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 Article

Comparing 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 Article

High 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 Article


How 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 Article


Confused 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 Article

Sampling 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 Article

Update 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 Article

Difference 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 Article


Image may be NSFW.
Clik here to view.

Setting 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 Article

ofVideoPlayer 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 Article


Kinect 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 Article

Image may be NSFW.
Clik here to view.

Recursively 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 Article


Resetting 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 Article

ofVideoPlayer 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 Article

ofxGeoJSON 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
Browsing all 4929 articles
Browse latest View live