Qt Labs Forum » Graphics View

Does QGLwidget work fine with 3D texture?

(1 post)
  • Started 1 year ago by jpDeivis

  1. jpDeivis
    jpDeivis
    Member

    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
    {
        /*
        ...
        */
    }
    Posted: 1 year #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.