Re: [Plib-users] Semi-transparent plane
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-01-19 02:28:36
|
Martin Howard wrote: > > Wolfram Kuss jotted down the following: > > > Get a model with transparency, > > OK, I tried this. The cockpit of the Optica model is a solid grey, it is > *not* transparent. The glass looks like shiny grey plastic. This is > despite having the lines: > > glEnable(GL_BLEND); > glEnable(GL_DEPTH_TEST); > glEnable(GL_ALPHA_TEST); > > in the global set-up portion of my code (just after ssgInit() is called). > > I also tried Norman Vine's suggestion, using the state/material properties > he posted here. Again, no transparency, but I can alter the appearance of > the (flat) plane by modifying the GL_EMISSION and GL_SPECULAR properties. > But no transparency. What's my next move? I'm sorry to be harking on like > this guys, but I can't make any sense of this and I really *need* this > transparency thing working. Running the models/flying_saucer.ac model from my TuxAQFH game (URL below) in the examples/src/ssg/viewer program from the PLIB examples suite on CVS DEFINITELY shows transparency. One possiblity though is that some of the old RIVA graphics cards don't do polygon alpha correctly (or at all in some cases) - if you have one of those old clunkers then the fault is in OpenGL. What graphics card and OpenGL library are you using BTW? -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |