Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

AlphaBlending with a mesh

$
0
0

@Maedd wrote:

Hey,

I am stucked with the following problem:
I would like to fade a mesh in and out via alphaBlending or the overall brightness (?) of the mesh. Is there a way to do that without iterating through the whole mesh? Basically I would like to have the code below working for meshes. Any ideas/suggestions? :slight_smile:


void ofApp::draw(){
    easyCam.begin();
        ofPushMatrix();
            ofTranslate(-ofGetWidth()/2, -ofGetHeight()/2);
   
            ofSetColor(255,255,255, alpha1); // so this doesnt work for meshes I guess
            mesh.draw();

        ofPopMatrix();
    easyCam.end();
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles