jPCT-AE - a 3d engine for Android => Support => Topic started by: doc.ios on October 28, 2010, 06:58:16 pm

Title: ShadowHelper?
Post by: doc.ios on October 28, 2010, 06:58:16 pm
Sorry, dumb newbie question.  Tired and late too - so not too bright right now.

I wanted to put shadows in.  But I can't find the ShadowHelper class.  Is it included in the Android library?  What's the import path?  Or is there another recommended way to do shadows on an Android device?
Title: Re: ShadowHelper?
Post by: EgonOlsen on October 28, 2010, 08:57:55 pm
No, it's not included, because OpenGL ES 1.0 and 1.1 don't support the required features. OpenGL ES 2.0 does, but it's currently not supported by jPCT-AE nor by all Android versions/chipsets. I suggest to use simple blob shadows instead, i.e. an alpha blended spot below a character...just like Quake3 did it by default.

Example of a blob shadow: