Background image

Hi!
im trying to put a backgorund image in the back of the noise but the images goes gray is there a function or something so i can place the image and the code dont affect the image?

i get this

This image

Could you post some code? Are you using ofFbo?

1 Like

Hey! i using a mesh and vectors

background.draw(0,0);




if(debugMode) {
ofSetColor(0);

for(int i = 0; i < width; i += step) {
  for(int j = 0; j < height; j += step) {
			ofVec2f field = getField(ofVec2f(i, j));
    ofPushMatrix();
    ofTranslate(i, j);
			ofSetColor(0);
    ofLine(0, 0, ofLerp(-windSpeed, windSpeed, field.x), ofLerp(-windSpeed, windSpeed, field.y));
    ofPopMatrix();
  }
}
	// draw the points as circles
	ofSetColor(ofColor::red);
	for(int i = 0; i < nPoints; i++) {
  ofCircle(points[i], 2);
	}

} else {
ofSetColor(0, 10);
cloud.draw();
}

Not really sure what your code is doing, but maybe this post helps. Try calling ofSetColor( ofColor::white ) before drawing stuff you don’t want coloured.