Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

3ds.h

Go to the documentation of this file.
00001 /*
00002   File: 3DS.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef _3D_H
00007 #define _3D_H
00008 
00013 // Id Chunk
00014 
00015 #define MAIN3DS       0x4D4D
00016 
00017 // Main Chunks
00018 
00019 #define VERSION       0x0002
00020 #define EDIT3DS       0x3D3D
00021 #define KEYF3DS       0xB000
00022 
00023 // sub defines of EDIT3DS
00024 
00025 #define EDIT_MATERIAL 0xAFFF
00026 #define EDIT_CONFIG1  0x0100
00027 #define EDIT_CONFIG2  0x3E3D
00028 #define EDIT_VIEW_P1  0x7012
00029 #define EDIT_VIEW_P2  0x7011
00030 #define EDIT_VIEW_P3  0x7020
00031 #define EDIT_VIEW1    0x7001
00032 #define EDIT_BACKGR   0x1200
00033 #define EDIT_AMBIENT  0x2100
00034 #define EDIT_OBJECT   0x4000
00035 
00036 #define EDIT_UNKNW01  0x1100
00037 #define EDIT_UNKNW02  0x1201
00038 #define EDIT_UNKNW03  0x1300
00039 #define EDIT_UNKNW04  0x1400
00040 #define EDIT_UNKNW05  0x1420
00041 #define EDIT_UNKNW06  0x1450
00042 #define EDIT_UNKNW07  0x1500
00043 #define EDIT_UNKNW08  0x2200
00044 #define EDIT_UNKNW09  0x2201
00045 #define EDIT_UNKNW10  0x2210
00046 #define EDIT_UNKNW11  0x2300
00047 #define EDIT_UNKNW12  0x2302
00048 #define EDIT_UNKNW13  0x3000
00049 #define EDIT_UNKNW14  0xAFFF
00050 
00051 // sub defines of EDIT_MATERIAL
00052 #define MAT_NAME01    0xA000
00053 
00054 // sub defines of EDIT_OBJECT
00055 
00056 #define OBJ_TRIMESH   0x4100
00057 #define OBJ_LIGHT     0x4600
00058 #define OBJ_CAMERA    0x4700
00059 
00060 #define OBJ_UNKNWN01  0x4010
00061 #define OBJ_UNKNWN02  0x4012
00062 
00063 // sub defines of OBJ_CAMERA
00064 #define CAM_UNKNWN01  0x4710
00065 #define CAM_UNKNWN02  0x4720 
00066 
00067 // sub defines of OBJ_LIGHT
00068 #define LIT_OFF       0x4620
00069 #define LIT_SPOT      0x4610
00070 #define LIT_UNKNWN01  0x465A
00071 
00072 // sub defines of OBJ_TRIMESH
00073 #define TRI_VERTEXL   0x4110
00074 #define TRI_FACEL2    0x4111 // unknown yet
00075 #define TRI_FACEL1    0x4120
00076 #define TRI_SMOOTH    0x4150
00077 #define TRI_LOCAL     0x4160
00078 #define TRI_VISIBLE   0x4165
00079 
00080 // sub defs of KEYF3DS
00081 
00082 #define KEYF_UNKNWN01 0xB009
00083 #define KEYF_UNKNWN02 0xB00A
00084 #define KEYF_FRAMES   0xB008
00085 #define KEYF_OBJDES   0xB002
00086 
00087 #define KEYF_OBJHIERARCH  0xB010
00088 #define KEYF_OBJDUMMYNAME 0xB011
00089 #define KEYF_OBJUNKNWN01  0xB013
00090 #define KEYF_OBJUNKNWN02  0xB014
00091 #define KEYF_OBJUNKNWN03  0xB015  
00092 #define KEYF_OBJPIVOT     0xB020  
00093 #define KEYF_OBJUNKNWN04  0xB021  
00094 #define KEYF_OBJUNKNWN05  0xB022  
00095 
00096 // these define the different color chunk type
00097 #define COL_RGB  0x0010
00098 #define COL_TRU  0x0011
00099 #define COL_UNK  0x0013 // unknown
00100 
00101 // defines for viewport chunks
00102 
00103 #define TOP           0x0001
00104 #define BOTTOM        0x0002
00105 #define LEFT          0x0003
00106 #define RIGHT         0x0004
00107 #define FRONT         0x0005
00108 #define BACK          0x0006
00109 #define USER          0x0007
00110 #define CAMERA        0x0008
00111 #define LIGHT         0x0009
00112 #define DISABLED      0x0010
00113 #define BOGUS         0x0011
00114 
00115 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.