Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / How to get uniform shadows 2D

Author
Message
Supertino
7
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 26th Oct 2017 11:28 Edited at: 26th Oct 2017 11:30
So i have a black sprite that is saved as png with 10% alpha, I want in-game in real-time for these sprites to appear to merge uniformly rather then blend making parts darker the more that are overlayed.



Any ideas? needs to happen in real-time.
Supertino
7
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 26th Oct 2017 20:40
found a solution of sorts using getimage(), not fast enough for real time but I can pre-bake most environment shadows for now, might need to look into Shaders for what i am wanting to do.
Green7
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 26th Oct 2017 23:31
maybe transparency setting additive blending will work, but did not test...

Login to post a reply

Server time is: 2024-11-24 12:34:06
Your offset time is: 2024-11-24 12:34:06