@oxillo's PR was merged already in master so if you just pull from there it should be fixed now
ofSoundStream not working as expected
Detect keyboard layout
Thanks, I will have a look.
On osx it should be listed in /Library/Preferences/com.apple.HIToolbox.plist
I will have a look into glfw, maybe I can get the information from there.
Setting attribute data, randomly returns bad access exception
Hi there,
Not sure if I can help you. Last week I had to do a clean install of OSX, and the random crashes seem to have disappeared. Dunno why.
OF comes with an example (gl > billboardRotationExample) that might be useful to you.
Setting attribute data, randomly returns bad access exception
That one uses ofVbo directly, I was wondering whether ofVboMesh could work differently.
Thanks anyways!
Setting attribute data, randomly returns bad access exception
ofVboMesh is a combination of ofVbo with ofMesh for easier interface. Like so, it works exactly the same:
yourVboMesh.getVbo().setAttributeData(...);
Setting attribute data, randomly returns bad access exception
yes that should be fine. if you have called at least once setAttributeData and just need to change the data without changing the size, it's usually better to call updateAttributeData instead. also if you call updateAttributeData on a buffer with smaller size it can crash
How can I port openFrameworks to Qt on windows?
I have tried for half a day to port openFrameworks to Qt as explained on oF webpage and also here without any success. Can anyone please provide a step by step mini-tutorial on that?
ofxShivaVG (Smooth 2d graphics in oF)
Hey guys, Im trying to use this addon with the latest version of openFrameworks v0.9.2
How do I make it work?
I really need rounded caps on strokes, which is why I want to use this addon.
ARToolKit 5 Add-On
Hi naus3a,
first of all thank you for the most complete ARToolKit 5 Add-On that is out there right now.
I like how simple it is to use.
I would see 5 points that would be good to add in the API:
- Different Camera/App orientation modes
- Camera Focus Control
- Adding datasets from different file locations
- Handling more then one Marker in the same video image (up to 5 should be no problem) and more then one Dataset to look for (ARToolKit supports up to 500 NFT Datasets at the same time).
- Access to the Projection Matrix and each ModelViewMatrix
We could implement these with the following API:
setup
Set Orientation of the Video
ARToolKit.setOrientation(<orientation>);
OFX_ARTOOLKIT_ORIENTATION_DEFAULT
OFX_ARTOOLKIT_ORIENTATION_180
OFX_ARTOOLKIT_ORIENTATION_90_LEFT
OFX_ARTOOLKIT_ORIENTATION_90_RIGHTSet Camera Focus Mode
ARToolKit.autoFocusOn(); // (continuous autofocus)
ARToolKit.autoPoiFocusOn(); // (point-of-interest) (since ARToolKit version 5.2.1)
ARToolKit.autoFocusOff();
Add path where to look for NFT datasets
ARToolKit.addMarkerDataPath("file");
Set maximum number of Markers to be searched in the camer stream
ARToolKit.setMaxNumOfMarkers(<amount>);
Setup
ARToolKit.setup();
update
- update tracker
ARToolKit.update();
draw
get projection matrix
ARToolKit.getProjectionMatrix();
-
for the amount of found Markers
-> get the ID and Model View Matrix for each marker
-> 3D transform for each found marker.ARToolKit.beginAR(); for (int i = 0; i < ARToolKit.numberOfMarkersFound; i++) { ofMatrix4x4 xxx = ARToolKit.getMarker(i).modelViewMatrix; ofMatrix4x4 yyy = ARToolKit.getMarker(i).markerName); ARToolKit.loadMatrix(i); // change the 3D transformation for each Marker ofDrawBox(0, 0, 0, 50, 50, 50); } ARToolKit.endAR();
interface for debuging
ARToolKit.drawDebug();
extra functions
- Add a new NFT dataset while the app is running.
ARToolKit.addExtraTarget("file");
ARToolKit 5 Add-On
If we add one more setup function for the bar code tracker and then use ARToolKit.getMarker(i).markerName
for the NFT and the bar code tracker in the same time. Would that work? How much else is the Bar Code tracker different from the NFT tracker?
For the stereo tracker,
If we abstract a lot in to the setup could we do something like:
Define the source camera or cameras for the tracker
ARToolKit.camera(CameraA,CameraB); //Camera sources
Define the tracking mode via setup
ARToolKit.setup(); //default mono NFT and Bar Code
orARToolKit.setup(stereo);
Calibrate the Stereo Cameras
ARToolKit.calibrateStereo();
Some other interesting thing will be HMD Stereo screens:
Draw Left and Right Screen
ARToolKit.drawLeft(x,y,w,h);
ARToolKit.drawRight(x,y,w,h);
-
Handle Left and Right 3D Transforms
ARToolKit.beginARLeft(); for (int i = 0; i < ARToolKit.numberOfMarkersFound; i++) { ofMatrix4x4 xxx = ARToolKit.getMarker(i).modelViewMatrixLeft; ofMatrix4x4 yyy = ARToolKit.getMarker(i).markerName); ARToolKit.loadMatrixLeft(i); // change the 3D transformation for each Marker ofDrawBox(0, 0, 0, 50, 50, 50); } ARToolKit.endARLeft(); ARToolKit.beginARRight(); for (int i = 0; i < ARToolKit.numberOfMarkersFound; i++) { ofMatrix4x4 xxx = ARToolKit.getMarker(i).modelViewMatrixRight; ofMatrix4x4 yyy = ARToolKit.getMarker(i).markerName); ARToolKit.loadMatrixRight(i); // change the 3D transformation for each Marker ofDrawBox(0, 0, 0, 50, 50, 50); } ARToolKit.endARRight();
openFrameworks and PINE64?
Bit of an early question, but we are thinking about purchasing some PINE64's.
https://www.pine64.com/
Would it be possible to use openFrameworks with the PINE64?
I really want to mess around with (shader textured) full-hd or 4k video on a microcomputer.
Currently we are using multiple Raspberry PI's in sync, which allows textured 1280x720p video in the oF application.
Full-hd or 4k would be better!
ARToolKit 5 Add-On
I already implemented some of this stuff (custom paths, debug view, matrices...) in my local version: I'll push as soon as I have 10 minutes.
For the rest, here's my 2 cents:
Camera orientation/ autofocus:
I think we should handle this externally through a set of helper functions: in order to stay flexible and oF-friendly, I'm handling pixels in the generic form of ofBaseHasPixels, so they could come from any kind of camera, video, random_piece_of software_able-to_generate_pixels. If we make helper functions (or classes?) we can leave people free to choose their own camera (i.e. UVC and Libdc handle autofocus differently) without having to load the tracker with heavy and ugly switch cycles.
Multimarker:
For the old square patterns it should be easy.
For NFT I kind of remember I read multimarker is still non supported (I probably spotted also an hardcoded 1 somewhere in the source). We should try to switch NFT marker "live" and see what happens.
ARToolKit 5 Add-On
I spoke with Wally Young from the ARToolKit Team the other day and he said that the NFT can do multi marker but due a bug in the moment its off. It will be enabled again in the next version.
Detect keyboard layout
I have not had the time to get the mapping automatically.
But here is the an (almost) working version: https://github.com/thomasgeissl/ofxVirtualMidiKeyboard
ARToolKit 5 Add-On
cool!
Problem playing mp4 h264 videos (GStreamer ?)
hello,
i am building a video player app under Ubuntu 14.04 64 bits and oF0.9.2
everything worked nice but i must have done something wrong since it doesn't play mp4 video anymore !
something related to GStreamer it seems. I get the following error when launching the app :
[error] ofGstUtils : gstHandleMessage(): embedded video playback halted for plugin, module playsink reported: The autoaudiosink element is not working
[error] ofGstUtils: startPipeline(): unable to pause pipeline after 5s
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
The app builds and launches but when playing mp4 videos the screens stays black.
I re-installed all oF dependencies and codecs, cleaned the project and rebuilt it but no way !
I think i miss an ubuntu package but i can't find which one !
Any clue ?
thanks for your help
Cross compiler for OF 0.9.0/Jessie/arm6/RPi1
my root drive isn't mounting in samba following this guide
http://openframeworks.cc/setup/raspberrypi/raspberry-pi-smb/
if i change path = / to path = /home/rich then it will mount that folder, but using path = / will just create an empty folder named data on my mac.
i'm using pi 2 model b, raspbian, mac os x 0.11
Cross compiler for OF 0.9.0/Jessie/arm6/RPi1
@rjlwest Are you trying to mount the RPi from the Mac Finder or inside the VM?
Cross compiler for OF 0.9.0/Jessie/arm6/RPi1
from inside the finder, command k then smb://raspberry.pi.ip/Data as server address.
does it show up correctly in the vm? I hadn't got that far.
Cross compiler for OF 0.9.0/Jessie/arm6/RPi1
try just smb://raspberry.pi.ip