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

How to get accurate float PI constant?

@cuinjune wrote: Hi, I'm trying to use PI as float. I wonder if it is safe to just cast PI to float constant like below. static_cast< float >(PI) If I print the value, it prints 3.14159 Would...

View Article


To Learn C++ First or Learning as You GO? That is the question

@popa wrote: I was wondering if I should learn C++ first or if I could learn it as im working through OF. I know that it would be a whole lot easier know C++ before coming in. It's just I would rather...

View Article


Camera projector calibration

@Oleksandra_Zamarayew wrote: Hello!Could you help me to make camera-projector calibration on VS2015. (Like on this video: https://www.youtube.com/watch?v=pCq7u2TvlxU).( I found a lot of codes but all...

View Article

Vectors is there a difference

@cyrstem wrote: hi i been wondering if there is any difference between writing a vector like this :std::vector<float> myPositions; or vector<float> myPostandstd::size_t i = 0; i <...

View Article

ofFbo, clear just a section of the area with transparency

@dimitre wrote: Hello, I wanted to clear out and redraw just a small area of an ofFbo. I've tried to draw a rectangle with transparency but it obviously blend with the actual content. same thing for a...

View Article


How to create a round corner window?

@redmoons81 wrote: I want to create a round corner window.what I can do? Posts: 3 Participants: 2 Read full topic

View Article

What is Cairo (as in ofCairoRenderer)?

@Drazinut wrote: I read that basic questions are welcome, and questions about what isn't clear to new users, so here's one. What is Cairo? I am studying what is under...

View Article

Can't get stenciling to work

@rjlwest wrote: All I'm trying to do at the moment is to get one ofRectangle to stencil the other, but it's not working. I've set the stencilbits to 8. I've searched the forum and other people have...

View Article


OfSoundStream - get buffer length from device

@Daniel_Bennett wrote: Hi,is it possible to retrieve the settings (buffer, sample rate etc.) from the audio device? the audio examples in OF show buffer length defined ahead of time, hard coded in the...

View Article


Space as a via XML

@antocreo wrote: Hi all,I am trying to pass the spacebar value as a char via xml with ofXML.here is the OF code if(settings.exists("//playButton")) { playKey =...

View Article

Image may be NSFW.
Clik here to view.

[SOLVED] Remapping Color

@Rakasis wrote: Hey, I'm trying to limit the colours in a composition to 4 specific colors. Is there a way to remap a grey scale composition to use a set of specific colors? EDIT: Nevermind. I found...

View Article

Randomly generated points into mesh?

@Sam_McElhinney_io wrote: Hello All, Can anyone give me some tips on how to tesselate randomly generated points into an ofMesh? I understand the principles of indices and winding, but if there isn't...

View Article

String with multiline in c++

@dimitre wrote: I'm asking for an advice. I'm writing inline shaders this way in OFW.Nice thing is you can actually read the multiline code.Is there any downside of this kind of string declaration?...

View Article


Json::Value with int is ambiguous, but double and string are fine

@hamoid wrote: After my latest OS update, Json::Value v; v["one"] = 123; Shows error: conversion from int to 'const Json::Value' is ambiguous but Json::Value v; v["two"] = 123.0; v["three"] = "123.0";...

View Article

Replacement for ofxTimeline?

@Datanoise wrote: Hello everyone, I wanted to use ofxTimeline for a timeline-based MIDI Sequencer and MIDI/CV/Lights Automation software I am working on in my spare time. I have noticed that the...

View Article


Myo addon for Windows (Visual Studio 2015)

@Dazzid_of wrote: HelloI downloaded a myo addon in of_0.9.8 and VisualStudio 2015 but it doesn't compile. Someone knows a solution or has a version of the addon on Windows? Thanks Severity Code...

View Article

ofXml in child class

@dasoe wrote: Hi all, If I have a child class I can not use ofXml in this class.The error I get is (when opening the App, compiling is OK) Unhandled exception at 0x00CA28BD in XXX.exe: 0xC0000005:...

View Article


Setting up ofxCV in VisualStudio 2015

@Charles_Lucien wrote: Hi all, I'm having a hard time setting everything up in Visual Studio especially ofxCV. Here's the steps I took and it's still giving me some error: cd openFrameworks/addons/...

View Article

Error regarding unknown OF pixel format

@Gil_Fuser wrote: Hi everyone. I'm getting errors with the following code, that although not critical, since the code runs, I would like to understand and correct what is causing it, if possible....

View Article

.setAlphaMask and Shaders

@Miles wrote: ayop! i am trying to alphamask an image and then pass that through a shader, but the alphamask appears to stop the shader from working, here's my code: for (int i=0; i<slices.size();...

View Article
Browsing all 4929 articles
Browse latest View live