openframeworks / openframeworks/openFrameworks

ofSetBackgroundAuto=false not working on Raspberry Pi

Open
#5,021 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Calling ofSetBackgroundAuto(false); in setup() has no effect on Raspberry Pi 2 (BG is still cleared every time)

Running on Raspberry Pi 2 with of_v0.9.3_linuxarmv6l_release

Following code works as expected on a Mac, but not on Raspberry Pi

void ofApp::setup(){
    ofSetBackgroundAuto(false);
    ofSetFrameRate(30);
}

void ofApp::draw(){
    ofFill();
    for (int i = 0; i < 10; i++){
        ofSetColor((int)ofRandom(0,255),(int)ofRandom(0,255),(int)ofRandom(0,255));
        ofDrawRectangle(ofRandom(0,1280),ofRandom(0,720),ofRandom(10,200),ofRandom(10,200));
    }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example from the issue on Raspberry Pi 2 using of_v0.9.3_linuxarmv6l_release, then compare it with the reported Mac behavior. Start by tracing ofSetBackgroundAuto(false) from setup() into the frame rendering path; done means the background is not cleared between draw() calls on Raspberry Pi.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, raspberry-pi
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.