ase/ask loader is quite stable now, loads most models correctly
added pretransformvertices postprocess step bugfixes in the 3ds material system. transparency is now displayed correctly Node view in the viewer display the local transformation matrix now Fixed wrong directory name. "unused" renamed to "extra" ---> all is WIP ... git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@50 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -67,7 +67,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# error Compiler not supported. Never do this again.
|
||||
#endif
|
||||
|
||||
|
||||
namespace Assimp
|
||||
{
|
||||
namespace MDL
|
||||
@@ -95,11 +94,6 @@ namespace MDL
|
||||
#define AI_MDL_MAGIC_NUMBER_BE_GS7 'MDL7'
|
||||
#define AI_MDL_MAGIC_NUMBER_LE_GS7 '7LDM'
|
||||
|
||||
// magic bytes used in Half Life 2 MDL models
|
||||
#define AI_MDL_MAGIC_NUMBER_BE_HL2a 'IDST'
|
||||
#define AI_MDL_MAGIC_NUMBER_LE_HL2a 'TSDI'
|
||||
#define AI_MDL_MAGIC_NUMBER_BE_HL2b 'IDSQ'
|
||||
#define AI_MDL_MAGIC_NUMBER_LE_HL2b 'QSDI'
|
||||
|
||||
// common limitations for Quake1 meshes. The loader does not check them,
|
||||
// but models should not exceed these limits.
|
||||
@@ -217,86 +211,6 @@ struct Header_MDL7
|
||||
} PACK_STRUCT;
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** \struct Header_HL2
|
||||
* \brief Data structure for the HL2 main header
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
struct Header_HL2
|
||||
{
|
||||
//! magic number: "IDST"/"IDSQ"
|
||||
char ident[4];
|
||||
|
||||
//! Version number
|
||||
int32_t version;
|
||||
|
||||
//! Original file name in pak ?
|
||||
char name[64];
|
||||
|
||||
//! Length of file name/length of file?
|
||||
int32_t length;
|
||||
|
||||
//! For viewer, ignored
|
||||
aiVector3D eyeposition;
|
||||
aiVector3D min;
|
||||
aiVector3D max;
|
||||
|
||||
//! AABB of the model
|
||||
aiVector3D bbmin;
|
||||
aiVector3D bbmax;
|
||||
|
||||
// File flags
|
||||
int32_t flags;
|
||||
|
||||
//! NUmber of bones contained in the file
|
||||
int32_t numbones;
|
||||
int32_t boneindex;
|
||||
|
||||
//! Number of bone controllers for bone animation
|
||||
int32_t numbonecontrollers;
|
||||
int32_t bonecontrollerindex;
|
||||
|
||||
//! More bounding boxes ...
|
||||
int32_t numhitboxes;
|
||||
int32_t hitboxindex;
|
||||
|
||||
//! Animation sequences in the file
|
||||
int32_t numseq;
|
||||
int32_t seqindex;
|
||||
|
||||
//! Loaded sequences. Ignored
|
||||
int32_t numseqgroups;
|
||||
int32_t seqgroupindex;
|
||||
|
||||
//! Raw texture data
|
||||
int32_t numtextures;
|
||||
int32_t textureindex;
|
||||
int32_t texturedataindex;
|
||||
|
||||
//! Number of skins (=textures?)
|
||||
int32_t numskinref;
|
||||
int32_t numskinfamilies;
|
||||
int32_t skinindex;
|
||||
|
||||
//! Number of parts
|
||||
int32_t numbodyparts;
|
||||
int32_t bodypartindex;
|
||||
|
||||
//! attachable points for gameplay and physics
|
||||
int32_t numattachments;
|
||||
int32_t attachmentindex;
|
||||
|
||||
//! Table of sound effects associated with the model
|
||||
int32_t soundtable;
|
||||
int32_t soundindex;
|
||||
int32_t soundgroups;
|
||||
int32_t soundgroupindex;
|
||||
|
||||
//! Number of animation transitions
|
||||
int32_t numtransitions;
|
||||
int32_t transitionindex;
|
||||
} PACK_STRUCT;
|
||||
|
||||
#define AI_MDL7_MAX_BONENAMESIZE 20
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -372,6 +286,12 @@ struct Deformer_MDL7
|
||||
int32_t deformerdata_size;
|
||||
} PACK_STRUCT;
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** \struct DeformerElement_MDL7
|
||||
* \brief Deformer element in a MDL7 file
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
struct DeformerElement_MDL7
|
||||
{
|
||||
//! bei deformer_typ==0 (==bones) element_index == bone index
|
||||
@@ -380,6 +300,12 @@ struct DeformerElement_MDL7
|
||||
int32_t weights;
|
||||
} PACK_STRUCT;
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** \struct DeformerWeight_MDL7
|
||||
* \brief Deformer weight in a MDL7 file
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
struct DeformerWeight_MDL7
|
||||
{
|
||||
//! for deformer_typ==0 (==bones) index == vertex index
|
||||
@@ -387,8 +313,11 @@ struct DeformerWeight_MDL7
|
||||
float weight;
|
||||
} PACK_STRUCT;
|
||||
|
||||
// maximum length of texture file name
|
||||
#define AI_MDL7_MAX_TEXNAMESIZE 0x10
|
||||
|
||||
// don't know why this was in the original headers ...
|
||||
// to be removed in future versions
|
||||
typedef int32_t MD7_MATERIAL_ASCDEFSIZE;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user