Ignore:
Timestamp:
03/08/07 16:59:38 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/pathmap/PathMapEffect.cpp

    r2197 r2212  
    147147 
    148148        //initialize camera 
    149         camera->SetViewParams( &D3DXVECTOR3(0.0f, 0.0f, 4.0f), &D3DXVECTOR3(0.0f, 0.0f, 0.0f)); 
     149//      camera->SetViewParams( &D3DXVECTOR3(0.0f, 0.0f, 4.0f), &D3DXVECTOR3(0.0f, 0.0f, 0.0f)); 
     150        camera->SetViewParams( &D3DXVECTOR3(0.0f, 0.0f, 0.0f), &D3DXVECTOR3(0.0f, 0.0f, 1.0f)); 
    150151        D3DSURFACE_DESC fbdesc; 
    151152        frameColorBuffer->GetDesc(&fbdesc); 
     
    200201        device->CreateTexture(4096, NRADIONS / 4096, 1, 0, D3DFMT_R32F, D3DPOOL_SYSTEMMEM, &sysMemWeightsTexture, NULL); 
    201202        sysMemWeightsTexture->GetSurfaceLevel(0, &sysMemWeightsSurface); 
     203 
     204        //create aggr weights render target 
     205        device->CreateTexture(MAXNCLUSTERS, 1, 1, D3DUSAGE_RENDERTARGET, D3DFMT_R32F, D3DPOOL_DEFAULT, &aggrWeightsTexture, NULL); 
     206        aggrWeightsTexture->GetSurfaceLevel(0, &aggrWeightsSurface); 
    202207 
    203208        //create a vertex buffer to be able to visualize entry radion positions 
     
    230235        weightsTexture->Release(); 
    231236        weightsSurface->Release(); 
     237        aggrWeightsTexture->Release(); 
     238        aggrWeightsSurface->Release(); 
    232239        radionTexture->Release(); 
    233240        radionSurface->Release(); 
     
    13081315                                { 
    13091316                                        sceneFile >> keyword; 
    1310                                         strcpy(prmFileName, LC::c-this->prmDirectory); 
    1311                                         strcat(prmFileName, "\\"); 
    1312                                         strcat(prmFileName, keyword); 
     1317                                        strcpy(prmFileName, keyword); 
    13131318                                } 
    13141319                                if(strcmp(keyword, "mesh") == 0) 
Note: See TracChangeset for help on using the changeset viewer.