braitsch / ofxDatGui

Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks

Home Page:https://braitsch.github.io/ofxDatGui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GUI and OfLights

cyrstem opened this issue · comments

hi having an issue with ofxDatGui when working with 3dLights
on openframework s the gui gets opaque theres a way to fix this ?

Hi @cyrstem. I've used this addon with a 3d scene with lighting. Are you calling light.disable() and/or ofDisableLighting() before drawing the gui?

hi, im using
luz.enable();
ofEnableAlphaBlending();
ofEnableDepthTest();
and ending
//---------Light-----------------
luz.disable();
ofDisableAlphaBlending();
ofDisableDepthTest();
but i dont call gui->draw() at any time

Try calling ofEnableLighting() at the beginning of your draw method, and ofDisableLighting() at the end of your draw method to see if that does the trick. (The gui is automatically drawn after your ofApp::draw() method if you leave autodraw enabled, which is the default)

thanks! that works!!