Ignore:
Timestamp:
01/12/07 22:41:01 (18 years ago)
Author:
mattausch
Message:

implemented improved ray casting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp

    r1971 r1972  
    456456        const int layers = ApplyDepthPeeling(rays); 
    457457 
    458         const float rays_per_sec = rays.size() / TimeDiff(startTime, GetTime()) * 1e-3; 
    459         cout << "cast " << rays.size() << " samples in " << layers << " layers in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " rays/sec)" << endl; 
     458        const float rays_per_sec = (float)rays.size() / (TimeDiff(startTime, GetTime()) * 1e-3f); 
     459        cout << "cast " << rays.size() << " samples in " << layers << " layers in "  
     460                 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " rays/sec)" << endl; 
     461 
    460462        return layers; 
    461463} 
     
    852854void GlobalLinesRenderer::Visualize(const VssRayContainer &vssRays) 
    853855{ 
     856        cout << "exporting visualization ... "; 
    854857        Exporter *exporter = Exporter::GetExporter("globalLines.wrl"); 
    855858         
     
    877880                } 
    878881 
    879                 if (ray->mPass == 4) 
     882                //if (ray->mPass == 4) 
    880883                        outRays.push_back(ray); 
    881884        }        
    882885 
    883         exporter->ExportRays(outRays); 
    884  
     886        //exporter->ExportRays(outRays); 
     887        cout << "finished" << endl; 
    885888        delete exporter; 
    886889} 
     
    10301033        } 
    10311034 
    1032         Debug << "time spent in rendering: " << renderTime << endl; 
    1033         Debug << "time spent in buffer: " << bufferTime << endl; 
     1035        Debug << "time spent in rendering: " << renderTime * 1e-3f << endl; 
     1036        Debug << "time spent in buffer: " << bufferTime * 1e-3f << endl; 
    10341037         
    10351038        PrintGLerror("endpeeling"); 
Note: See TracChangeset for help on using the changeset viewer.