openframeworks / openframeworks/openFrameworks
ofSetBackgroundAuto=false not working on Raspberry Pi
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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