From: Steve B. <sjb...@ai...> - 2003-07-08 16:16:29
|
Fay John F Contr AAC/WMG wrote: > Per, > > I have not run into this before. I do know that the menus don't > display when you are running in single-buffered mode, but I had not > experimented with the "GL_TEXTURE_3D" flag at all. Thank you for > finding this. Please do make a clean test case. Well, I think it's clear what's going on - it's what Brian and I were saying about the rendering of menu's needing to happen in a separate rendering context. Since our Menu code knows nothing about 3D textures (having been written before that was a standard part of OpenGL), it doesn't do a glDisable(GL_TEXTURE_3D) before it renders the polygons that make up the menu. Since whatever 3D texture was last applied by the application stays in effect, we'll be rendering 3D texture all over the menu. If the 3D map happens to have 100% transparency - or the colour BLACK or something in the (*,*,0.0) plane, then the menu's will come out transparent or black or whatever. It is the impossibility of successfully turning off ALL of the OpenGL state (including extensions) in freeglut's menu renderer that requires that we render the menu's in a separate window with a separate rendering context. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |