`ofTrueTypeFont.stringWidth(str)` returns `-Inf`
@mrmsdbdl wrote: I’m trying to get the width of each word when I draw a sentence using a monotype font. So, I declared a ofTrueTypeFont, and load the font I want, then I use the stringWidth("Hello")...
View ArticleRectangular Button
@kgit wrote: Hi, I am wondering what the simplest way to create rectangular buttons is. I tried making a new rectangle using ofRect but would like to make it clickable. Any suggestions? Posts: 2...
View ArticleofGetTimestampString() ----> get only the time
@Luisa_12345 wrote: Hello! I am trying to reproduce the drawing below and I am using the function: ofGetTimestampString(); I would like to get only the time without the date, but I don’t understand...
View ArticleIssues compiling ofxCv under linux on OF_10.1
@cyrstem wrote: trying to compile the examples i get this issue home/jacos/OF/libs/glm/include/glm/detail/type_vec4.hpp:19:9: note: ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int,...
View ArticleNeed help with mouse stuff
@Coal wrote: I recently started using OF and I’m starting to get a grasp of the basics. I’m currently working on a project and I want to have images act as buttons. is this possible? If so, how do I...
View ArticleofxGui setup, need help setting up a static ui
@BooolZay wrote: Hi, Im trying to implement a simple ui using the ofxPanel but not sure how to/if its possible to add spacing between the widgets and is it possible to disable the panel movement as...
View ArticlePoco Linking issue in Android only
@mativa wrote: Hi. I am using Poco::DateTime and Poco::Timespan in Openframeworks for osx as well as ios with no problems by adding #include “Poco/DateTime.h” #include “Poco/Timespan.h” using...
View ArticleUsing the ofCore events methods
@sahil_sashi wrote: what values can the (int button) variable argument in of mouse events take and what do those values pertain to? Posts: 1 Participants: 1 Read full topic
View ArticleVectors Error (AddVertices)
@Anamit117 wrote: I’m quite new to openFrameworks and am trying to get some older OF code running and I don’t understand why it won’t run. The area in which the code has the error and the error has...
View ArticlemacOS mojave, second and third window issue
@dimitre wrote: Hello, I’ve been using a code to open second and third window and it is reliable before Mojave. Now on Mojave it seems to open windows in an arbitrary order each time I run the...
View ArticleGet Y rotation angle of a camera
@pxt wrote: Hello! i need to represent in a 2D context the rotation around Y of a camera. Im using ofNode to make the rotations camera.rollDeg(rotationTemp.y); then i used camera.getHeadingDeg(); to...
View ArticleOfxButton in ofxGUI
@sahil_Sashi1 wrote: I am not sure how to use the ofxButton class. Setting up listeners and drawing them? How will that work? Posts: 2 Participants: 2 Read full topic
View ArticleofxTwitter Status::fullText() – no string return
@katho wrote: Hi there! I’m currently building an app which streams tweets based on specific hashtags, majorly on the ofxTwitter add-on. As the Status::text() function doesn’t show the whole extent of...
View ArticleHow to create a pie chart with multiple sectors?
@DSS2000 wrote: I wanted to create a pie chart but can’t find a library to do it. How do I manually do it? Posts: 2 Participants: 2 Read full topic
View ArticleHow do I specify which graphics card to run on?
@armonnaeini wrote: Hello, I am trying to run a program where I track a user’s movements with a Kinect and replace their blob with an OfMesh composed of a bunch of vertices, essentially the web that...
View ArticleWhy do you choose the openframeworks?
@guohongbin wrote: Hello Why do you choose the openframeworks? Have you studied a lot of people? Posts: 1 Participants: 1 Read full topic
View ArticlePlacing an image over a shape
@CH00CH00CHARLIE wrote: I am trying to place an ofImage over a shape to sort of apply a texture to it. I am currently using ofDrawCircle and other similar functions but I cant get anything but a basic...
View ArticleHow to let my WhiteBall find the GreenBall?
@Rii wrote: Hi I want to make an IF statement to add a point if WhiteBall hits GreenBall. I want to write something similar to if (WhiteBall.position.x+WhiteBall.radius OR...
View ArticleofxVideoRecorder - Issues with the speed of the video created
@demzou_art wrote: Hi, I am having issues with ofxVideoRecorder (I think…). I am working on a project using computer vision with dancers. There are a few effects generated by their moments. It’s using...
View ArticleIs it possible to get ofSoundPlayer to play opus files?
@Delysel wrote: Like the title says. Am I simply missing some codec (I can play opus files without problem in other music players such as VLC)? Or does opus support need to be implemented in the class...
View Article