Open GL question

casey's icon

I know this is remedial but I'm somehow missing the key rendering openn GL in a matrix without enormous amount of flicker. I've checked the documentation but perhaps I'm just oblivious to how this works. I'm tryin to render some text via open GL over top of movie clips.
Thanks,
Casey

casey's icon

sorry as soon as I posted this I realized that it needed to go in the jitter forum

Wesley Smith's icon

You're probably better of performance-wise using jit.lcd instead of
opengl to render text over a video.

wes

casey's icon

I was using a version of the subtitle patch that is in the examples, however from my reading it seemed that using open gl to render the text would shift the CPU load for the text rendering from my main CPU to my graphics card. Is that true? Also all of the text I get out of the LCD object looks fairly pixelated, regardless of the font. I gues I'm still in the dark as to how to effectively mix the open GL and matrix worlds.

wallace winfrey's icon

Moving this thread to jitter...

Wesley Smith's icon

Depends,
If you want the text back in matrix land, use jit.lcd.

If you want to keep everything in opengl land, use open gl objects to make text.

It's that simple.

wes

Andrew Benson's icon

Having read your original email, I'm guessing that you were having
trouble with flickering because you were sending a matrix to a
jit.window that was also set as a gl.render destination. This simply
won't work the way you want it to. In order to get your video into
OpenGL, you will need to connect to a jit.gl.videoplane object. Here is
a simple example that demonstrates this:

Max Patch
Copy patch and select New From Clipboard in Max.

Take note of the rendering order imposed by turning off @automatic and
using the trigger object.

Cheers,
Andrew B.

casey's icon

Thank you Wes and Andrew, what a great resource this forum is, Again Wallace sorry about the wrong forum thing.
Casey