Blending Problem with GL Tools

whitebengal1's picture

When Gl Tools 1.2 is installed, setting blending on sprite objects no longer works. Object is opaque no matter what the setting is. I was using a text to image to sprite for a menu system, and a moving color bar under it. Instead of the bar showing up to highlight the text, it would show white text on a black box or any other color selected on a black box.

System is G5 running 10.5 latest.

cwright's picture
Re: Blending Problem with GL Tools

I've confirmed this bug -- not sure why it's happening. I'll look into it.

cwright's picture
Re: Blending Problem with GL Tools

Ok, I've discovered the cause (gcc was assuming an incorrect type for a cast, and was reading just 1 byte instead of 4 -- this was ok on Intel, as we only needed the bottom byte, but on PPC it's the top byte (which is always 0)).

Anyway, I've fixed it. Tomorrow's beta will have this fix.

Thanks for spotting it!

gtoledo3's picture
Re: Blending Problem with GL Tools

Yeah, I was sitting here going, "this doesn't happen for me!". I was starting to get worried that I had overlooked something :)

cwright's picture
Re: Blending Problem with GL Tools

The fact that these kinds of glaring PPC bugs don't get reported immediately is pretty indicative of how quickly PPC is fading away from the Mac scene... can't say much more than that right now... :)

usefuldesign.au's picture
Re: Blending Problem with GL Tools

As a tail-end-charlie on a G5 I can say that GL Tools 1.3 doesn't fix the bug with Read Pixels as found in the awesome refraction.shader.qtz comp. Looking to solve that issue myself actually. ;)

cwright's picture
Re: Blending Problem with GL Tools

Yeah, I don't know what can be done to fix read pixels on your hardware (the 1.3 fixes were for forced-aspect-ratio fullscreen bugs mentioned elsewhere). There's an alternative method I've written that I might enable and send to you, if you're interested in giving it a spin sometime.

usefuldesign.au's picture
Re: Blending Problem with GL Tools

Sure, I can see it's a very useful patch even though I'm not touching shader writing any time soon. (I'd like to write CIFilters first which will hopefully be a series of chapters in the Quartz book if it ever gets written). To be honest, staying on G5 is madness post SL and upgrade long overdue so gimme another few weeks to get an Intel lappie first.

Happy to alpha anytime though.