Skip to content

blendMode() in setup breaks background() in setup and displays raw framebuffer #520

Open
@JackWitherell

Description

@JackWitherell

I feel a bit rude reporting these bugs I'm finding without actually contributing to the processing-android project. I'd love to take a hand in contributing towards fixes but I'm not sure where to start learning the internals of processing's implementation.

Regardless, documenting issues is healthier than holding them back.

Version 4.0.4 of the mode.

Running blendMode(ADD) after background(0) within setup() sets the background after the call to blendMode and somehow eliminates the original data stored within the frameBuffer that would make it show the default processing sketch background color.

Behavior in P2D normally: displays black background and then sets blendMode.

Running the following code demonstrates this behavior.

Demo code

void setup(){
  fullScreen(P2D);
  background(0);
  blendMode(ADD);
}

Output:

screenshot_20190219-005049

Activity

codeanticode

codeanticode commented on Feb 22, 2019

@codeanticode
Contributor

@JackWitherell no worries at all, we do appreciate the bug reporting very much. It is the required first step to get things fixed :-) There is some incomplete information on the wiki about the architecture of the Android mode, will try to add more details so it can be useful for other people to start contributing.

I will test your code snippet demonstrating this bug shortly. Thank you!

removed this from the 4.1: AR and debugger milestone on Oct 22, 2019
removed this from the 4.6 bugfixes milestone on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @codeanticode@JackWitherell

        Issue actions

          blendMode() in setup breaks background() in setup and displays raw framebuffer · Issue #520 · processing/processing-android