Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Problem drawing UI elements from multiple add-ons

$
0
0

@Nick_Arner wrote:

I'm making a rather simple OF app that will read in OSC data, run an FFT on it, and then output the results via OSC.

I'm using ofxDatGui for the UI elements, and the ofxGrt addon's time-series plot to display the FFT,

I have the following code inside my app's draw method to display the timeseries plot:

float margin = 10;
magnitudePlot.draw( margin, 260, ofGetWidth() - margin * 2, 480 );

Additionally, I have the following code to display some ofxDatGui UI elements:

oscInputPortField->draw();
oscOutputHostNameField->draw();
oscOutputPortField->draw();
oscAddressField->draw();
oscMessagePayloadSelector->draw();

If I have the lines to draw the plot in the draw method, then the toggle element's and the dropd-own menu are slightly misdrawn:

If I remove the lines creating the plot from the draw method, then the other UI elements are displayed properly:

I tried changing the size of the plot and the app's framerate, but neither had any effect. Anyone have any ideas why the inclusion of the plot would cause the other UI elements to be misdrawn?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles