osudroid / osu-droid

http://osudroid.moe
Apache License 2.0
498 stars 74 forks source link

Slider gradient integration. #330

Open Reco1I opened 3 months ago

Reco1I commented 3 months ago

I working on slider gradient visual for osu!droid and came up but a couple of issues due to the old Engine:

There's 2 solutions I found for these:

I've the algorithm to convert the slider path into vertices for both versions:

In ES1 it uses a separated color buffer but as expected it doesn't work properly, the only way to do gradient on ES1 is by using a texture and a texture coordinates buffer.

In ES2 it uses a single buffer for both vertices and the color as well a fragment shader to do the trick which comes natively with AndEngine in this case. (This has been tested)

I hear suggestions.

ammarasyad commented 3 months ago

I intend to propose an upgrade of the engine to GLES 2, but not for this release. We already planned some things to work on, so it will have to hold for a while.