how work handles of example

Post Reply
maister
Posts: 20
Joined: Fri Dec 18, 2009 10:12 am

how work handles of example

Post by maister »

hello friends!!

I'm try to use optitracks camera for project. I download the example C++ VC8/2005 Sample. I copied and modified some of this code, but do not really know how the driver that launches the capture of frames. I think that this handles are OnWMFrameAvailable or HandleFrameAvailable, etc.

Can you help me??

thanks a lot!
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: how work handles of example

Post by Birch »

Yes, the HandleFrameAvailable callback will allow your application to be notified whenever a new frame arrives for a camera. Make sure to Open() and Start() the camera to get it running.

You might also want to look at the "C++ Win32 command line VC8/2005" sample since its easy to understand. It only implements polling for frames instead of callbacks. Polling will be easier to implement than the a callback (unless you are using VB.NET or C#) if it is a suitable approach for your application.
Post Reply