|
From: Frank C. <dev...@ch...> - 2004-09-29 16:05:59
|
On 29-Sep-04, at 6:17 AM, Peter Michelsen wrote: >> That's correct- the illumination of the last solid object is >> errantly maintained for the entire transparent pass. The bug report >> linked above includes a bit of a workaround if your're using the CVS >> source. > > I have test this solution as list in the bug report ( 96773 ). > > Yes it fixes the problem but effects all the other transparent > objects, they become white. So not a solution. Sorry - I didn't do exhaustive testing with that (it was just off the top of my head). You'll need enable lighting for the specular pass, or else it'll draw solid. i.e. put: glEnable(GL_LIGHTING); glEnable(GL_COLOR_MATERIAL); Before the "// Second pass to add specular highlights" bit in IRTransBuffer_Draw. That should do it - I think... > Is the problem with openGL and transparent objects? There's no real problem, they're just a pain in the arse ;) Frank. |