Show
Ignore:
Timestamp:
12/04/09 12:31:04 (3 years ago)
Author:
robert
Message:

From Sukender,
"Here is our freshly baked 3DS reader/writer (named 'v0.5' to differentiate from previous one). Changes are against trunk rev. 10819.
Short changelog (from rev 10819):
- Added 3DS writer
- Sync'd with latest lib3DS
- Added options, especially "flattenMatrixTransforms" to get the "old" behaviour (else the reader correctly maps to OSG the transforms from the 3DS file).

What should be done:
- Check with pivot points, with and without "flattenMatrixTransforms" option.
- We ran tests on it, but we can never be 100% sure there is no bug. Testing from the community would of course be helpful."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/3ds/CMakeLists.txt

    r9998 r10853  
     1# List of C files to be compiled as C++ (else CMake sets ".c" to be compiled as pure C) 
     2SET(C_FILES 
     3    lib3ds/lib3ds_io.c        # Modified to support OSG endianness 
     4) 
     5 
    16SET(TARGET_SRC 
    27    ReaderWriter3DS.cpp 
    3     atmosphere.cpp 
    4     background.cpp 
    5     camera.cpp 
    6     chunk.cpp 
    7     ease.cpp 
    8     file.cpp 
    9     lib3ds_float.cpp 
    10     light.cpp 
    11     material.cpp 
    12     matrix.cpp 
    13     mesh.cpp 
    14     node.cpp 
    15     quat.cpp 
    16     readwrite.cpp 
    17     shadow.cpp 
    18     tcb.cpp 
    19     tracks.cpp 
    20     vector.cpp 
    21     viewport.cpp 
     8    WriterNodeVisitor.cpp 
     9    WriterCompareTriangle.cpp 
     10 
     11    ${C_FILES} 
     12    lib3ds/lib3ds_atmosphere.c 
     13    lib3ds/lib3ds_background.c 
     14    lib3ds/lib3ds_camera.c 
     15    lib3ds/lib3ds_chunk.c 
     16    lib3ds/lib3ds_chunktable.c 
     17    lib3ds/lib3ds_file.c 
     18    lib3ds/lib3ds_light.c 
     19    lib3ds/lib3ds_material.c 
     20    lib3ds/lib3ds_math.c 
     21    lib3ds/lib3ds_matrix.c 
     22    lib3ds/lib3ds_mesh.c 
     23    lib3ds/lib3ds_node.c 
     24    lib3ds/lib3ds_quat.c 
     25    lib3ds/lib3ds_shadow.c 
     26    lib3ds/lib3ds_track.c 
     27    lib3ds/lib3ds_util.c 
     28    lib3ds/lib3ds_vector.c 
     29    lib3ds/lib3ds_viewport.c 
    2230) 
    2331SET(TARGET_H 
    24     atmosphere.h 
    25     background.h 
    26     camera.h 
    27     chunk.h 
    28     chunktable.h 
    29     config.h 
    30     ease.h 
    31     file.h 
    32     lib3ds_float.h 
    33     light.h 
    34     material.h 
    35     matrix.h 
    36     mesh.h 
    37     node.h 
    38     quat.h 
    39     readwrite.h 
    40     shadow.h 
    41     tcb.h 
    42     tracks.h 
    43     types.h 
    44     vector.h 
    45     viewport.h 
     32    WriterNodeVisitor.h 
     33    WriterCompareTriangle.h 
     34    lib3ds/lib3ds.h 
     35    lib3ds/lib3ds_impl.h 
    4636) 
    4737#### end var setup  ### 
    4838SETUP_PLUGIN(3ds) 
     39ADD_DEFINITIONS( -DLIB3DS_STATIC )        # lib3ds is included, so we need the flag 
     40SET_SOURCE_FILES_PROPERTIES(${C_FILES} PROPERTIES LANGUAGE "CXX")        # Force some files to be compiled as C++