Hi JP,

what I meant is, that I need to call glDrawBuffer (or setDrawBuffer in OSG) to 
select the buffer that I want to clear. Sorry, that I did not make it clear. 
The following OpenGL code example shows what I want to realize in OSG:


Code:

//for each frame do
id = id mod 2; // Id is switched in[0, 1]
glDrawBuffer(buffers[Id]); // select Buffer
glClearColor( 0.1, 0.2, 0.3,0. 4); // choose color
glClear(GL_COLOR_BUFFER_BIT); // apply color

glDrawBuffer(buffers[2]); // select Buffer
glClearColor(0, 0, 0, 0); // choose color
glClear(GL_COLOR_BUFFER_BIT); // apply color
id += 1;




So I have 3 buffers and want to initialize 2 of them each frame with different 
values and also switch one of them each frame. I hope this explains my 
problem(s).

Thx,
Gottfried[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24023#24023





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to