示例#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;
}
示例#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();
}
示例#3
0
文件: IBLWidget.cpp 项目: wdas/brdf
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();
}
示例#4
0
文件: IBLWidget.cpp 项目: wdas/brdf
void IBLWidget::mouseDoubleClickEvent ( QMouseEvent *  )
{
    resetViewingParams();
    resetComps();
    updateGL();
}
示例#5
0
void Plot3DWidget::mouseDoubleClickEvent ( QMouseEvent * )
{
    resetViewingParams();
    updateGL();
}
示例#6
0
void PlotCartesianWidget::mouseDoubleClickEvent ( QMouseEvent *  )
{
    resetViewingParams();
    updateInputDataLineVAO();
    updateGL();
}