Page 1 of 1

Changing display in sample app

Posted: Fri Feb 05, 2010 2:27 am
by kelmer
Hi,

I would like to draw two lines dividing the screen on the vertical and horizontal halves, on the default app, but I can't find the code where it is actually drawn. Any tips?

I'm using OptiTrack SDK with two TrackIR 4 cameras.

Re: Changing display in sample app

Posted: Fri Feb 05, 2010 5:52 pm
by Birch
If you are having the OptiTrack SDK draw the frame for you, then its being done via the DrawFrame() call. This call takes in a camera frame plus a window handle and then renders the frame to the screen. Since the frame is rasterized down inside the OptiTrack SDK, its not possible to overlay any of your own visuals on it.

You might consider using GetFrameImage() to get a rasterized bitmap of the frame, then add your visuals and render it to the screen using your own code. Some of our code samples demonstrate how to do this, such as the "Grayscale Sample".