Hi Vincent,

On Thu, 2005-03-03 at 15:52 +0100, Vincent Honnet wrote:
> Hello,
> 
> I have once again a Depth ordering problem. This time with geometries:
> 
> In the first case I'm using a PassiveWindow in an QGLWidget (QT 3.3.4). 
> I define some transparent geometries and one non-transparent geometry 
> which is inside the transparent geometries. It's working fine (I can see 
> the geometry inside the others) and it's the same if I define at first 
> the non transparent geometries or not.
> In the second case I'm using a GLUTWindow in an QGLWidget. If I define 
> the transparent geometries first I can't see the geometry inside them. 
> Logically if I define first the non-transparent geometry and then the 
> transparent geometry it's working. I initialised Glut with:
> 
> glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
> 
> and the GL environment in initializeGL() of the Widget with:
> 
>     glEnable(GL_TEXTURE_2D);
>     glEnable(GL_LIGHTING);
>     glEnable(GL_LIGHT0);
>     glEnable(GL_DEPTH_TEST);
> 
> Do have someone an Idea and maybe a solution for me ?

Hm, how can you use a GLUTWindow in a QGLWidget? The GLUTWindow is
really only for windows using GLUT, not QT, so the glutInitDisplayMode
is not going to do anything, which may be a reason for strange
behaviour.

If it works with the PassiveWindow, why are you trying to use a
GLUTWindow?

Yours

        Dirk

-- 
Dirk Reiners <[EMAIL PROTECTED]>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to