Picture over OpneGl scene

Gumz's icon

Is it possible to have a picture over an OpenGl scene? I want to make a GUI over a 3D scene and it mixes the image with the 3D scene...

Brecht's icon

You need to control the render order using the 'automatic 0' argument in your gl objects and send them bangs in the order you wish to render them. Check the forum for some examples of how to do this. This thread (amongst many others) has some examples of how to do it :
https://cycling74.com/forums/index.php?t=msg&th=18925

To put a picture on top, you can use a jit.gl.videoplane

Thijs Koerselman's icon

make sure you set all opengl object to @automatic 0, then draw them
individually in the order than you want, draw your picture at last. You
might want to search the list for "orho 2" if you want the picture at a
fixed position while changing camera positions and lens angles.

-thijs

Thijs Koerselman's icon

"ortho 2" that is..;-)

Brecht's icon

Forget that other thread, this one has better examples : https://cycling74.com/forums/index.php?t=msg&goto=668 89&rid=0&srch=pseudolook#msg_66889

Gumz's icon

Works :) Thanks for the fast replies...

Gregory Taylor's icon

No problem. Just remember to credit the
post authors when you hand in your final
project. :-)