GLBasic forum

Main forum => GLBasic - en => Topic started by: Millerszone on 2011-Apr-04

Title: WebOS Palm Pre Alpha Blending Shadows FIXED
Post by: Millerszone on 2011-Apr-04
I'm having problems with the interpolated alpha blending shadows on some of my objects.

You can see the problem in the image below around the targets and home run ramp there
is a gray border. It only happens on the Palm Pre 2, iPhone, iPad and PC are o.k.

I found this on an internet site, it seems this is the problem I'm having:
http://www.airplaysdk.com/node/2524 (http://www.airplaysdk.com/node/2524)

(http://www.americantc.com/Images/HTDAlpha.png)
Title: Re: WebOS Alpha Blending
Post by: ampos on 2011-Apr-04
Quick fix: remove shadows  :nana:
Title: Re: WebOS Alpha Blending
Post by: Millerszone on 2011-Apr-04
Quote from: ampos on 2011-Apr-04
Quick fix: remove shadows  :nana:

Yep, that's what I was going to do, but I want to see if there is a fix first.
Title: WebOS Alpha Blending FIXED
Post by: Millerszone on 2011-Apr-05
Adding this line to the start of the program fixes the interpolated alpha blending shadows.
glColorMask(TRUE, TRUE, TRUE, FALSE)

BEFORE
(http://www.americantc.com/Images/HTDAlpha.png)   (http://www.americantc.com/Images/HTDAlphaFixed.png)
Title: Re: WebOS Alpha Blending FIXED
Post by: erico on 2011-Apr-05
That's great! :good:
Title: Re: WebOS Alpha Blending FIXED
Post by: Millerszone on 2011-Apr-05
Quote from: erico on 2011-Apr-05
That's great! :good:
Saved a lot of time removing the shadows. Plus it wouldn't look as good.

But there was a problem. Using glColorMask(TRUE, TRUE, TRUE, FALSE)
removes the transparency background like I am using for the leaderboard scroll (See image)
So before I goto the leaderboard routine I have to use this: glColorMask(TRUE, TRUE, TRUE, TRUE)
and everything is back to normal. Then before starting the game use this:glColorMask(TRUE, TRUE, TRUE, FALSE)
This is a temporary fix. There is probably a better way to do this.

(http://www.americantc.com/Images/HTDAlphaTrans.png)  (http://www.americantc.com/Images/HTDAlphaTransFixed.png)
Title: Re: WebOS Palm Pre Alpha Blending Shadows FIXED
Post by: Kitty Hello on 2011-Apr-05
you get me on a track now. I have such problems with DDgui as well. I hope I can fix it this way.

Does anyone know how to fix that so it behaves like on other OSes?