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

ofxGui is transparent and colorless in front of 3D scene

$
0
0

@Caroline_Record wrote:

I need to draw a gui on top of a lit 3D scene. Whenever I do this, the gui becomes transparent and colorless. Any ideas of settings I might tweak to prevent this?

    guiLight.enable();
    ofDisableDepthTest();
    ofDisableSeparateSpecularLight();
    gui.draw();
    bulb1.drawGui();
    bulb2.drawGui();
    ofEnableSeparateSpecularLight();
    ofEnableDepthTest();
    guiLight.disable();

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles