Quantcast
Channel: openFrameworks - Latest posts
Viewing all 40524 articles
Browse latest View live

ofSoundStream not working as expected

$
0
0

@oxillo's PR was merged already in master so if you just pull from there it should be fixed now


Detect keyboard layout

$
0
0

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

$
0
0

Hi there,

Not sure if I can help you. :confused: 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

$
0
0

That one uses ofVbo directly, I was wondering whether ofVboMesh could work differently.

Thanks anyways!

Setting attribute data, randomly returns bad access exception

$
0
0

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

$
0
0

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?

$
0
0

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)

$
0
0

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

$
0
0

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:

  1. Different Camera/App orientation modes
  2. Camera Focus Control
  3. Adding datasets from different file locations
  4. 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).
  5. 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_RIGHT

  • Set 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

$
0
0

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
    or
    ARToolKit.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?

$
0
0

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! :slightly_smiling:

ARToolKit 5 Add-On

$
0
0

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

$
0
0

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

ARToolKit 5 Add-On


Problem playing mp4 h264 videos (GStreamer ?)

$
0
0

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

Cross compiler for OF 0.9.0/Jessie/arm6/RPi1

$
0
0

@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

$
0
0

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

Viewing all 40524 articles
Browse latest View live




Latest Images

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