Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is this sink named "cam"? #15

Open
batchku opened this issue Nov 21, 2012 · 2 comments
Open

what is this sink named "cam"? #15

batchku opened this issue Nov 21, 2012 · 2 comments

Comments

@batchku
Copy link
Contributor

batchku commented Nov 21, 2012

I see that an OSC message like this will create a sink called "cam" for an existing layer:

/livedraw/layers/new CAM_LAYER_MINI_0 810 100 80 60, /livedraw/layers/CAM_LAYER_MINI_0/A/input/sink cam

what is the "cam" parameter, how do i get a full list of all available cameras, what happens if i have several and what would their other names be, etc.

@bakercp
Copy link
Member

bakercp commented Jan 24, 2013

Currently openFrameworks has inadequate support for specifying the current camera. The best way to do it now is by experimentation with the id field in the grabbers.xml file.

<grabbers>
    <!-- listing grabbers until core has better support -->
    <grabber name="cam" id="0" width="640" height="480"/>
 <grabber name="cam1" id="1" width="640" height="480"/>
 <grabber name="cam2" id="2" width="640" height="480"/>

</grabbers>

The id is used to set the camera number. The name is not currently used (as setting the camera by name is not yet supported in oF -- although we're working on it).

@bakercp
Copy link
Member

bakercp commented Jan 24, 2013

p.s. the "name" (e.g. cam or cam1) is used in the osc command. Currently this xml file simply creates a nameable link between the hardware index and a name that is easy to remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants