Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Glare Engine - 2D Lighting for GameMaker Studio

GameMaker:Studio Extension, shader based dynamic lighting. 路 By Tiz

Depth Mask Compatibility upon Android?

A topic by JesterOC created 14 days ago Views: 48 Replies: 5
Viewing posts 1 to 3

馃憢 Hiya! 馃憢 

I see you added a new version a couple of weeks ago, is there any significant updates i should be using?

I have a problem with android depth mask Compatibility upon Android, the depth masks aren't keeping the mask area lit.. they just don't function and im left with shadows cast upon parts that should be lit.

Here's how it should look from a PC screenshot with working depth masks.


And here's an Android screenshot showing the issue.

Any ideas why this is happening only upon android? Or how to solve it? I thought I had it solved but android version turned out glitched up..

Developer

Hi Jester, the latest update improved and fixed the documentation. I鈥檒l try to reproduce this Android issue

Okay, have u had any luck reproducing the glitch upon android?

If I can't get it working for android, the only thing I can think to do is trim the shadowcasting for android version.. but it's multiplayer and i'd like screenshots to have the same lighting fer both Android and PC.

If you can reproduce the glitch, do you think you will be able to solve it?

Also...


Demo
Windows (.exe) and Android (.apk) http://goo.gl/hUFYm6 <---- Demo link doesn't work

(2 edits)

After much trialing and a weird bug that fixed itself, I have a workaround I built using SIMPLE_LIGHT = glr_lightsimple_create( PLAYER_SPRITE_DEPTHMASK, 0, x, y, c_white,1,1);

..and Cus i move my player, i update the light's scaling once per step so it can equal the facing direction. (Image_xscale)

I also update position (for movement) and subimage (Cus idle animation in PLAYER_SPRITE_DEPTHMASK ).

AND IT WORKS UPON ANDROID!!

Thanks for Glare Engine Tiz! 

This is a stoked moment (I'm stoked I got the workaround working with PC and Android).

I STILL HAVE TO ADD SIMPLE LIGHT "DEPTHMASKS" FOR MY ROCKS AND WALLS, (I ONLY DID THE PLAYER, JUST TO SEE IF IT WORKED) BUT THE ROCKS AND WALLS ARE EASY DONE NOW I HAVE ANDROID COMPATIBILITY SORTED...
OR SO I THOUGHT..
WHEN LIGHTING AMBIENCE BECOMES DARK (NIGHT) THE SHADOWS GET CAST OVER THE SIMPLE LIGHT "DEPTHMASKS"
(THE GLITCH OCCURS ROUGHLY BETWEEN 10PM AND 3AM IN-GAME TIME ) I MIGHT JUST MAKE NIGHT BRIGHTER, AHA

PC SCREENSHOT OF SHADOWS GETTING CAST OVER THE SIMPLE LIGHT "DEPTHMASKS"
PS, THIS IS AFTER I ADDED SIMPLE LIGHTS "DEPTHMASKS" FOR ROCKS...

Developer

New version 2.9.1 released! should fix the issue