WebOS Palm Pre Alpha Blending Shadows FIXED

Previous topic - Next topic

Millerszone

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

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

ampos

Quick fix: remove shadows  :nana:

Millerszone

#2
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.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Millerszone

#3
Adding this line to the start of the program fixes the interpolated alpha blending shadows.
glColorMask(TRUE, TRUE, TRUE, FALSE)

BEFORE
   
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

erico


Millerszone

#5
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.

 
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

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?