Quantcast
Browsing all 40524 articles
Browse latest View live

Use ofxDatGui inside class

Hi, you don't need to pass a reference to your ofApp into your class if all you're trying to do is bind the button event to your gui. ClipLauncher.h #include "ofxDatGui.h" class ClipLauncher { public:...

View Article


Recalculate normals after transformation SOLVED

Ok, I've found the problem, you can't do first a rotation and then a translation, the order in which matrices transformation work is: first scale, then rotation, then translation.

View Article


Recalculate normals after transformation SOLVED

this is because of how ofNode works, it makes sense to do things in that order cause then the rotations are relative to the 0,0 of the object and scale doesn't affect the translation. in most cases...

View Article

Recalculate normals after transformation SOLVED

"but if you need to do things in a different order like doing a translation before the rotation then you can set another node as parent to you object and do the translation in that one" That would...

View Article

Recalculate normals after transformation SOLVED

mmh, not sure waht you mean but the idea is that if you want to have a translate before the rotate for example, in your object you'll have another more ofNode so: class Branch: public ofNode{ ofNode...

View Article


Performance drop after rotating screen

Hi!First thing I done was adding ofDrawBitmapString(ofToString(ofGetFrameRate())+"fps", 10, 15); to quaternionLatLongExample, then compile and run it. I get solid 30fps since this code is limited with...

View Article

Soundstream::printDeviceList() only show ASIO

since upgrading from of 0.8.6 / vs 2013 to of 0.9 / vs 2015 direct sound devices dont show up. code is otherwise exactly the same, so I thing its an issue with rtAudio.dll Any idea how to fix?

View Article

Image may be NSFW.
Clik here to view.

Recalculate normals after transformation SOLVED

I've edited my code using the Branch class that you've posted, that creates an ofNode when a Branch object is initialized and uses that node to perform translation on it and act as joint node between...

View Article


Image may be NSFW.
Clik here to view.

Audio input FFT

I find my solution if there is some people are interested in. Here is my code: void ofApp::draw(){ static int index=0; float avg_power = 0.0f; if(index < 80) index += 1; else index = 0; /* do the...

View Article


OFAndroidSoundStream latency

Thanks, i'll have to use Opensl then.

View Article

Write text file in android?

Thank you again for your answer Rancs. I tried to put some ofLogNotice in ofAP::pause() and in ofApp::backPressed, but I can't see them in the logcat when I exit the app in my phone. I also put the...

View Article

Image may be NSFW.
Clik here to view.

arm7 raspberry pi: Wouldn't Run

Yes it does.I have already reinstalled Jesie and openframeworks from scratch. Screen Shot 2015-11-30 at 12.50.29.png1336x698 145 KB

View Article

Write text file in android?

I write this into ofApp::setup() and I can see the created file in /sdcard/Android/data/com.mycom.myapp folder: ofBuffer dataBuffer; dataBuffer.append("Some text for testing.."); bool fileWritten =...

View Article


Write text file in android?

This one does also create the file in the /sdcard/Android/data/com.mycom.myapp folder: ofBuffer dataBuffer; dataBuffer.append("Some text for testing.."); ofFile file; file.open(ofToDataPath("") +...

View Article

Write text file in android?

And this one can append something to the available file: ofBuffer dataBuffer; dataBuffer.append("Some new text for testing.."); ofFile file; file.open(ofToDataPath("") + "example.txt", ofFile::Append,...

View Article


Write text file in android?

I've just copied your code into the setup function and I can't see the file anywhere.I am using the ES explorer app to search for it, and it does not appear. I have printed what ofToDataPath("")...

View Article

Max type functions

If anyone out there came from a Max background as I did and would like some similar functions in OF, I built out a small addon that includes some such as a counter, metro, line. Hope someone can get...

View Article


Octree for particle system optimization?

Hi, I am working with a very large particle system (3d) and need to find particle within a certain bounding rectangle. i tried a brute force method with square distances but it is still quite slow and...

View Article

Write text file in android?

It had to be there. I can not figure out something at the moment. If you create a file manually in this directory, can you read it via file.readToBuffer() method?

View Article

Image may be NSFW.
Clik here to view.

Write text file in android?

Rancs you are right, it is there, but it was hidden...!! Thank you for your time

View Article
Browsing all 40524 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>