8000 Dither-based transparency effect · Issue #1 · VUEngine/VUEngine-Core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dither-based transparency effect #1
Open
@KR155E

Description

@KR155E

I am proposing a function to set a transparency level for Entities using direct draw to BGMaps.

Depending on a given transparency level, e.g. 75 (percent), a dither pattern is chosen from a predefined set of 8x8 pixel patterns. Then, it is "applied" to all chars in the sprite. That means that all the black pixels (palette index 0) from the dither pattern tile are set to black in the sprite tile as well.

I designed the patterns in an additive way, so that all pixels that are black in one pattern are also black in all the following patterns. Therefore, going through the whole set of dither patterns one after the other, we can also create a fading effect for an individual object without the need to reload the original sprites in between steps.

553582145-Transparency

Transparency

45DE

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0