Changeset 250 for trunk/src/formats


Ignore:
Timestamp:
06/03/14 15:25:02 (11 years ago)
Author:
epyon
Message:
  • assimp logging done automatically
  • assimp flags hidden
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/assimp_loader.cc

    r249 r250  
    1212
    1313using namespace nv;
     14
     15
     16nv::assimp_loader::assimp_loader( const string& a_ext, const mat4& a_rotate_transform, float a_scale, uint32 a_assimp_flags /*= 0 */ ) : m_ext( a_ext ), m_rotate_transform( a_rotate_transform ), m_scale( a_scale ), m_assimp_flags( a_assimp_flags ), m_mesh_count(0), m_scene( nullptr )
     17{
     18        if ( m_assimp_flags == 0 )
     19        {
     20                m_assimp_flags = (
     21                        aiProcess_CalcTangentSpace                              | 
     22                        aiProcess_GenSmoothNormals                              | 
     23                        aiProcess_JoinIdenticalVertices                 |   
     24                        aiProcess_ImproveCacheLocality                  | 
     25                        aiProcess_LimitBoneWeights                              | 
     26                        aiProcess_RemoveRedundantMaterials      | 
     27                        aiProcess_SplitLargeMeshes                              | 
     28                        aiProcess_Triangulate                                   | 
     29                        aiProcess_GenUVCoords                   | 
     30                        aiProcess_SortByPType                   | 
     31                        aiProcess_FindDegenerates               | 
     32                        aiProcess_FindInvalidData               | 
     33                        0 );
     34        }
     35}
     36
    1437
    1538bool nv::assimp_loader::load( stream& source )
Note: See TracChangeset for help on using the changeset viewer.