How to draw a GLModel in a ProScene into a GLGraphicsOffsreenBuffer ?
in
Contributed Library Questions
•
2 years ago
My goal is to to draw a GLModel into an interactive Scene from the Proscene library into an OffScreen BufferObject.
The single combinations of GLModel in proscene..
...
GLGraphics renderer = (GLGraphics)g;
renderer.beginGL();
theModel.render();
renderer.endGL();
...
and Proscene to the Buffer:
...
buffer.beginDraw();
scene.beginDraw();
buffer.background(0);
buffer.box(10)
scene.endDraw();
canvas.endDraw();
...
work really great!
but how would I combine these two!?
I tried various combinations but nothing worked.
And getting really confused with the different renderes here at work.
The single combinations of GLModel in proscene..
...
GLGraphics renderer = (GLGraphics)g;
renderer.beginGL();
theModel.render();
renderer.endGL();
...
and Proscene to the Buffer:
...
buffer.beginDraw();
scene.beginDraw();
buffer.background(0);
buffer.box(10)
scene.endDraw();
canvas.endDraw();
...
work really great!
but how would I combine these two!?
I tried various combinations but nothing worked.
And getting really confused with the different renderes here at work.
1