Changing display in sample app

Post Reply
kelmer
Posts: 9
Joined: Fri Feb 05, 2010 2:26 am

Changing display in sample app

Post 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.
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: Changing display in sample app

Post 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".
Post Reply