Example #1
0
Plot3DWidget::Plot3DWidget( QWidget *parent, std::vector<brdfPackage> bList )
    : SharedContextGLWidget(parent)
{
    brdfs = bList;
    
    NEAR_PLANE = 0.5f;
    FAR_PLANE = 100.0f;
    FOV_Y = 45.0f;
    
    resetViewingParams();
    
    inTheta = 0.785398163;
    inPhi = 0.785398163;
    
    useNDotL = false;
    useLogPlot = false;
}
Example #2
0
PlotCartesianWidget::PlotCartesianWidget(QWindow *parent, std::vector<brdfPackage> bList, int type )
    : GLWindow(parent)
{
    sliceType = type;
    brdfs = bList;

    resetViewingParams();

    inTheta = 0.785398163;
    inPhi = 0.785398163;

    useLogPlot = false;
    useNDotL = false;
    useSampleMult = false;

    initializeGL();
}
Example #3
0
IBLWidget::IBLWidget(QWidget *parent, std::vector<brdfPackage> bList )
    : GLWindow(parent->windowHandle()), meshDisplayListID(0), fbo(NULL),
      numSampleGroupsRendered(0), renderWithIBL(false), keepAddingSamples(true),
      lastBRDFUsed(NULL), model(NULL)
{
    connect( this, SIGNAL(resetRenderingMode(bool)), parent, SLOT(renderingModeReset(bool)) );
    comp = NULL;
    fbo = NULL;

    brdfs = bList;

    iblRenderingMode = RENDER_IBL_IS;

    NEAR_PLANE = 0.01f;
    FAR_PLANE = 50.0f;
    FOV_Y = 45.0f;

    resetViewingParams();

    gamma = 2.2;
    exposure = 0.0;

    inTheta = 0.785398163;
    inPhi = 0.785398163;

    stepSize = 271;
    totalSamples = stepSize * 15;//500
    randomizeSampleGroupOrder();

    updateTimer = new QTimer(this);
    connect( updateTimer, SIGNAL(timeout()), this, SLOT(updateTimerFired()) );


    faceWidth = 128;
    faceHeight = 128;
    numColumns = faceWidth * 6;
    numRows = faceHeight;

    quad = NULL;

    envTexID = 0;

    initializeGL();
}
Example #4
0
void IBLWidget::mouseDoubleClickEvent ( QMouseEvent *  )
{
    resetViewingParams();
    resetComps();
    updateGL();
}
Example #5
0
void Plot3DWidget::mouseDoubleClickEvent ( QMouseEvent * )
{
    resetViewingParams();
    updateGL();
}
Example #6
0
void PlotCartesianWidget::mouseDoubleClickEvent ( QMouseEvent *  )
{
    resetViewingParams();
    updateInputDataLineVAO();
    updateGL();
}