Hello.
I am trying to do an application where I need to have various QGLwidgets working with 3D textures. The fact is I am doing a volume visualizator app as my thesis. In some point, I need to show the sagittal, coronal and transverse planes of the object, each one in a different QGLwidget at the right side of my app. To do that, I coded a class called Rendering where I draw a quad and a texture coordinate is set to ech vertex of it. After, I create my 3 QGLwidgets:
Rendering *widgetCoronal;
Rendering *widgetSagittal;
Rendering *widgetTransverse;
Obviously, after the declaration, they are instanced. The problem is at the moment the planes must to be shown. In our case, only the last one instanced (widgetTransverse) displays the texture, whilst the others two just display a white quad or some garbage pics from what is shown in screen at the moment (we think it grabs whatever is stored in the frame buffer at the moment).
Is something that can be done to overcome this situation?
PS: Rendering inheritances from QGLWidget.
class Rendering : public QGLWidget
{
/*
...
*/
}