Show
Ignore:
Timestamp:
03/11/10 19:15:20 (4 years ago)
Author:
robert
Message:

From Time Moore, "This submission implements 3 optimizations for meshes. INDEX_MESH turns DrawArrays? style geometry into DrawElements?, uniquifying the vertices in the process. This is useful for certain loaders, like ac3d, which just spit out DrawArrays?. VERTEX_POSTTRANSFORM and VERTEX_PRETRANSFORM optimize mesh triangle and vertex order for the caches on a modern GPU, using Tom Forsyth's algorithm. I describe this and the big difference it makes (38% improvement on a very large mesh) in my blog,
http://shiny-dynamics.blogspot.com/2010/03/vertex-cache-optimization-for-osg.html."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/CMakeLists.txt

    r10894 r11204  
    2525    ${HEADER_PATH}/IncrementalCompileOperation 
    2626    ${HEADER_PATH}/LineSegmentIntersector 
     27    ${HEADER_PATH}/MeshOptimizers 
    2728    ${HEADER_PATH}/OperationArrayFunctor 
    2829    ${HEADER_PATH}/Optimizer 
     
    6869    IncrementalCompileOperation.cpp 
    6970    LineSegmentIntersector.cpp 
     71    MeshOptimizers.cpp 
    7072    Optimizer.cpp 
    7173    PlaneIntersector.cpp