Changeset 718 for GTP


Ignore:
Timestamp:
03/24/06 08:01:08 (19 years ago)
Author:
bittner
Message:

fixed double counting of sample contributions - important for proper importance sampling with directional focus

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Makefile

    r713 r718  
    11############################################################################# 
    22# Makefile for building: preprocessor 
    3 # Generated by qmake (2.00a) (Qt 4.1.0) on: po 20. III 17:50:07 2006 
     3# Generated by qmake (2.00a) (Qt 4.1.0) on: ?t 23. III 21:40:08 2006 
    44# Project:  preprocessor.pro 
    55# Template: app 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssPreprocessor.cpp

    r713 r718  
    603603          float ratios[] = {0.8f,0.1f,0.1f}; 
    604604 
    605            
    606            
    607605          GenerateRays(mRssSamplesPerPass*ratios[0], RSS_BASED_DISTRIBUTION, rays); 
    608606          CastRays(rays, tmpVssRays); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r713 r718  
    13371337                                ray.mRelativePvsContribution += contribution; 
    13381338                        } 
     1339 
     1340                        //for directional sampling it is important to count only contributions 
     1341                        // made in one direction!!! 
     1342                        // the other contributions of this sample will be counted for the oposite ray! 
     1343#if 0 
    13391344                        if (ray.mOriginObject &&  
    13401345                                viewcell->GetPvs().GetSampleContribution(ray.mOriginObject, 
     
    13451350                                ray.mRelativePvsContribution += contribution; 
    13461351                        } 
     1352#endif 
    13471353                } 
    13481354        } 
     
    13601366                                 if (ray.mTerminationObject) 
    13611367                                         viewcell->GetPvs().AddSample(ray.mTerminationObject, ray.mPdf); 
     1368 
     1369#if 0 
    13621370                                 if (ray.mOriginObject) 
    13631371                                         viewcell->GetPvs().AddSample(ray.mOriginObject, ray.mPdf); 
     1372#endif 
    13641373                        } 
    13651374                } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/default.env

    r713 r718  
    183183 
    184184        #number of active view cells 
    185         active 3000 
     185        active 4000 
    186186        maxStaticMemory 40 
    187187 
     
    196196         
    197197        height 5.0 
    198         maxViewCells 3000 
     198        maxViewCells 4000 
    199199 
    200200        #percentage of total visible objects where pvs is considered invalid 
  • GTP/trunk/Lib/Vis/Preprocessing/src/preprocessor.pro

    r677 r718  
    4646RenderSimulator.cpp VspKdTree.cpp RayInfo.cpp RssTree.cpp RssPreprocessor.cpp \ 
    4747ViewCellsManager.cpp VspBspTree.cpp GlRenderer.cpp \ 
    48 PreprocessorThread.cpp Renderer.cpp Beam.cpp ViewCellsParser.cpp Tetrahedron3.cpp 
     48PreprocessorThread.cpp Renderer.cpp Beam.cpp ViewCellsParser.cpp Tetrahedron3.cpp \ 
     49VrmlExporter.cpp 
    4950 
Note: See TracChangeset for help on using the changeset viewer.