ofSetBackgroundAuto(false)

Hi,

I’m trying to get motion blur effect, all what i’m getting is a black background.

when i remove [ofSetBackgroundAuto(false);] i get circles drawn where i move the mouse however, i don’t want the background to clear every frame

  
  
#include "testApp.h"  
  
//--------------------------------------------------------------  
void testApp::setup() {  
    ofSetBackgroundAuto(false);  
    ofBackground(0,0,0);  
    ofEnableAlphaBlending();  
    ofSetFrameRate(150);  
}  
  
//--------------------------------------------------------------  
void testApp::draw() {  
    ofSetColor(0,0,0,20);  
    ofRect(0,0,ofGetWidth(),ofGetHeight());  
    ofSetColor(255,255,255,50);  
    ofCircle(mouseX, mouseY, 20);  
}  
  
  
  

thanks

1 Like

Ehy, maybe i don’t understand… i try your code and i see the motion blur of the circle. What do you need?

hi Mauro,

thanks for replying… if the code is working with you, i think you’re using v007 and its another v064 limitations then

thanks a lot :slight_smile:

Argh… yes, i’m using v007… so i can’t help you… for me it works! :slight_smile: