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

Bypassing OpenGL render pipeline?

$
0
0

Is this a NaturalPoint TrackIR camera by any chance? I've worked with them for IR tracking and they work super well.

Do you need 240fps? Or can you make do with less? If you're only ever going to render at 60fps, can you try using 100fps (that's what I used for the TrackIR camera and it worked well).

What resolution are you using for the camera?

Are you working in greyscale mode with the camera?

Try passing parameters into your rasterize call:

in setup():
m_bitmapData = new unsigned char[ m_width * m_height ];
std::fill( &m_bitmapData[0], &m_bitmapData[ m_width * m_height ], 0 );

in your update() or draw();
CamLib::Frame* frame = camera->GetLatestFrame();
frame->Rasterize( width, height, width, 8, m_bitmapData );

if ( NULL != frame )
{
frame->Rasterize( m_bitmapData );

// load contents of m_bitmapData into texture here

frame->Release();

}

// draw your frame


Viewing all articles
Browse latest Browse all 40524

Trending Articles