absence_thelab

view src/3deng/3dschunks.h @ 0:1cffe3409164

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Oct 2014 01:46:07 +0300
parents
children
line source
1 #ifndef _3DSCHUNKS_H_
2 #define _3DSCHUNKS_H_
4 enum ChunkID {
5 Chunk_Color_Float3 = 0x0010, // o Floating point color
6 Chunk_Color_Byte3 = 0x0011, // o 24bit color
7 Chunk_Color_GammaByte3 = 0x0012, // o 24bit gamma corrected
8 Chunk_Color_GammaFloat3 = 0x0013, // o Floating point gamma corrected
9 Chunk_PercentInt = 0x0030, // o Percent Chunk int 0 - 100
10 Chunk_PercentFloat = 0x0031, // o Percent Chunk float 0 - 1
12 Chunk_3DSMain = 0x4D4D, // + Root Chunk
13 Chunk_Main_3DSVersion = 0x0002, // - 3DS Version
14 Chunk_Main_3DEditor = 0x3D3D, // + 3D Editor Chunk
15 Chunk_Edit_Unit = 0x0100, // - Unit
16 Chunk_Edit_BGBitmap = 0x1100, // - Background Bitmap
17 Chunk_Edit_UseBGBitmap = 0x1101, // - Use Background Bitmap
18 Chunk_Edit_BGColor = 0x1200, // - Background Color
19 Chunk_Edit_UseBGColor = 0x1201, // - Use Background Color
20 Chunk_Edit_GradColor = 0x1300, // - Background Gradient
21 Chunk_Edit_UseGradColor = 0x1301, // - Use Gradient Color
22 Chunk_Edit_ShadowMapBias = 0x1400, // - Shadow map bias
23 Chunk_Edit_ShadowMapSize = 0x1420, // - Shadow map size
24 Chunk_Edit_ShadowMapSampleRange = 0x1450, // - Shadow map sample range
25 Chunk_Edit_RaytraceBias = 0x1460, // - Raytrace bias
26 Chunk_Edit_UseRaytrace = 0x1470, // - Use Raytrace
27 Chunk_Edit_AmbientColor = 0x2100, // - Ambient Color
28 Chunk_Edit_Fog = 0x2200, // + Fog
29 Chunk_Fog_FogColor = 0x2210, // - Fog Color
30 Chunk_Edit_UseFog = 0x2201, // - Use Fog
31 Chunk_Edit_DistanceQue = 0x2300, // + Distance que
32 Chunk_Dist_DimBackground = 0x2310, // - Dim Background
33 Chunk_Edit_UseDistanceQue = 0x2301, // - Use distance que
34 Chunk_Edit_LayeredFogOptions = 0x2302, // - Layered fog options
35 Chunk_Edit_UseLayeredFog = 0x2303, // - Use Layered Fog
36 Chunk_Edit_MeshVersion = 0x3D3E, // - Mesh Version
38 Chunk_Edit_Object = 0x4000, // + Object
39 Chunk_Obj_Hidden = 0x4010, // - Hidden
40 Chunk_Obj_DontCastShadows = 0x4012, // - Object doesn't cast shadows
41 Chunk_Obj_MatteObject = 0x4013, // - Matte
42 Chunk_Obj_ExternalProcessOn = 0x4015, // - External Process on (?)
43 Chunk_Obj_DontReceiveShadows = 0x4017, // - doesn't reseive shadows
44 Chunk_Obj_TriMesh = 0x4100, // + TriMesh
45 Chunk_TriMesh_VertexList = 0x4110, // - Vertex List
46 Chunk_TriMesh_FaceDesc = 0x4120, // + Faces description
47 Chunk_Face_Material = 0x4130, // - Face Materials*
48 Chunk_TriMesh_TexCoords = 0x4140, // - Texture Coordinates
49 Chunk_TriMesh_SmoothingGroup = 0x4150, // - Smoothing group
50 Chunk_TriMesh_WorldTransform = 0x4160, // - Position and Orientation
51 Chunk_TriMesh_Color = 0x4165, // - Object color
52 Chunk_TriMesh_ExternalProcessName = 0x4181, // - External Process name (?)
53 Chunk_TriMesh_ExternalProcessParams = 0x4182, // - External Process parameters (?)
55 Chunk_Obj_Light = 0x4600, // + Light
56 Chunk_Light_SpotLight = 0x4610, // + SpotLight
57 Chunk_Spot_Raytrace = 0x4627, // - Raytrace
58 Chunk_Spot_CastShadows = 0x4630, // - Light casts shadows
59 Chunk_Spot_ShadowMap = 0x4641, // - Shadow Map
60 Chunk_Spot_ShowCone = 0x4650, // - Show Cone
61 Chunk_Spot_Rectangular = 0x4651, // - Rectangular shaped spotlight
62 Chunk_Spot_OverShoot = 0x4652, // - Overshoot
63 Chunk_Spot_ProjMap = 0x4653, // - Projector Map
64 Chunk_Spot_Roll = 0x4656, // - Roll around dir
65 Chunk_Spot_RaytraceBias = 0x4658, // - Raytrace Bias
66 Chunk_Light_Off = 0x4620, // - Light is disabled
67 Chunk_Light_Attenuation = 0x4625, // - Attenuation enabled
68 Chunk_Light_AttenuationStart = 0x4659, // - Attenuation Start Range
69 Chunk_Light_AttenuationEnd = 0x465A, // - Attenuation End Range
70 Chunk_Light_Intensity = 0x465B, // - Light Intensity
72 Chunk_Obj_Camera = 0x4700, // - Camera
73 Chunk_Edit_ViewSettings = 0x7001, // - View Settings
74 Chunk_Edit_ViewDesc2 = 0x7011, // - View Description 2
75 Chunk_Edit_ViewDesc1 = 0x7012, // - View Description 1
76 Chunk_Edit_MeshWindows = 0x7020, // - Mesh Windows (?)
78 Chunk_Edit_Material = 0xAFFF, // + Material Block
79 Chunk_Mat_Name = 0xA000, // - Material Name
80 Chunk_Mat_AmbientColor = 0xA010, // - Ambient Color
81 Chunk_Mat_DiffuseColor = 0xA020, // - Diffuse Color
82 Chunk_Mat_SpecularColor = 0xA030, // - Specular Color
83 Chunk_Mat_Specular = 0xA040, // - Shininness (Specular Power)
84 Chunk_Mat_SpecularIntensity = 0xA041, // - Shininness Strength (specular intensity)
85 Chunk_Mat_Transparency = 0xA050, // - Transparency (alpha)
86 Chunk_Mat_TransparencyFalloff = 0xA052, // - Transparency Falloff
87 Chunk_Mat_ReflectionBlur = 0xA053, // - Reflection Blur
88 Chunk_Mat_TwoSided = 0xA081, // - Two Sided
89 Chunk_Mat_AddTransparency = 0xA083, // - ?
90 Chunk_Mat_SelfIllumination = 0xA084, // - Self Illumination (emissive)
91 Chunk_Mat_Wireframe = 0xA085, // - Render in wireframe
92 Chunk_Mat_WireframeThickness = 0xA087, // - Wire thickness
93 Chunk_Mat_FaceMapping = 0xA088, // - Apply maps to faces seperatly (ignore uv)
94 Chunk_Mat_InTranc = 0xA08A, // ?
95 Chunk_Mat_Soften = 0xA08C, // - Soft Shading
96 Chunk_Mat_WireUnits = 0xA08E, // - Wire units (?)
97 Chunk_Mat_RenderType = 0xA100, // - Render Type
98 Chunk_Mat_BumpMapPercent = 0xA252, // - Bump map intensity
99 Chunk_Mat_TextureMap = 0xA200, // + Texture Map
100 Chunk_Mat_TextureMap2 = 0xA33A, // + Texture Map 2
101 Chunk_Mat_OpacityMap = 0xA210, // + Opacity Map
102 Chunk_Mat_BumpMap = 0xA230, // + Bump Map
103 Chunk_Mat_SpecularMap = 0xA33C, // + Specular Intensity map
104 Chunk_Mat_SpecularColorMap = 0xA204, // + Specular color (texture) map
105 Chunk_Mat_SelfIlluminationMap = 0xA33D, // + Self Illumination Map
106 Chunk_Mat_ReflectionMap = 0xA220, // + Reflection Map
107 Chunk_Mat_TextureMask = 0xA33E, // - Texture Mask
108 Chunk_Mat_Texture2Mask = 0xA340, // - Texture 2 Mask
109 Chunk_Mat_OpacityMask = 0xA342, // - Opacity Mask
110 Chunk_Mat_BumpMask = 0xA344, // - Bump Mask
111 Chunk_Mat_SpecularMask = 0xA346, // - Specular Mask
112 Chunk_Mat_SpecularColorMask = 0xA348, // - Specular color mask
113 Chunk_Mat_SelfIlluminationMask = 0xA34A, // - Self Illumination mask
114 Chunk_Mat_ReflectionMask = 0xA34C, // - Reflection mask
116 // map subchunks // -----------------------
117 Chunk_Map_FileName = 0xA300, // - Filename
118 Chunk_Map_Params = 0xA351, // - Parameters
119 Chunk_Map_BlurPercent = 0xA353, // - Blur ammount
120 Chunk_Map_VScale = 0xA354, // - Texture V Scale
121 Chunk_Map_UScale = 0xA356, // - Texture U Scale
122 Chunk_Map_UOffset = 0xA358, // - Texture U Offset
123 Chunk_MAP_VOffset = 0xA35A, // - Texture V Offset
124 Chunk_Map_RotationAngle = 0xA35C, // - Texture Rotation Angle
125 Chunk_Map_RGBLumAlphaTint1 = 0xA360, // - RGB Luminance Alpha Tint 1
126 Chunk_Map_RGBLumAlphaTint2 = 0xA362, // - RGB Luminance Alpha Tint 2
127 Chunk_Map_RGBTintR = 0xA364, // - RGB Tint R
128 Chunk_Map_RGBTintG = 0xA366, // - RGB Tint G
129 Chunk_Map_RGBTintB = 0xA368, // - RGB Tint B
130 // map subchunks end // -----------------------
132 Chunk_Main_Keyframer = 0xB000, // + Keyframer Chunk
133 Chunk_Key_AmbientInfo = 0xB001, // - Ambient animation info
134 Chunk_Key_MeshInfo = 0xB002, // - Mesh animation info
135 Chunk_Key_CameraInfo = 0xB003, // - Camera animation info
136 Chunk_Key_CameraTargetInfo = 0xB004, // - Camera Target animation info
137 Chunk_Key_OmniLightInfo = 0xB005, // - Omni Light animation info
138 Chunk_Key_SpotLightTargetInfo = 0xB006, // - Spotlight target animation info
139 Chunk_Key_SpotLightInfo = 0xB007, // - Spotlight animation info
140 Chunk_Key_Frames = 0xB008, // - Animation Frames
142 // animation information subchunks // -----------------------
143 Chunk_Info_Object = 0xB010, // - Object information
144 Chunk_Info_ObjectPivot = 0xB013, // - Object Pivot
145 Chunk_Info_ObjectMorphAngle = 0xB015, // - Object Morph Angle
146 Chunk_Info_PositionTrack = 0xB020, // - Position Track
147 Chunk_Info_RotationTrack = 0xB021, // - Rotation Track
148 Chunk_Info_ScaleTrack = 0xB022, // - Scaling Track
149 Chunk_Info_FOVTrack = 0xB023, // - FOV Track
150 Chunk_Info_RollTrack = 0xB024, // - Roll Track
151 Chunk_Info_ColorTrack = 0xB025, // - Color Track
152 Chunk_Info_MorphTrack = 0xB026, // - Morph Track
153 Chunk_Info_HotSpotTrack = 0xB027, // - HotSpot Track
154 Chunk_Info_FalloffTrack = 0xB028, // - Falloff Track
155 Chunk_Info_HideTrack = 0xB029, // - Hide Track
156 Chunk_Info_HierarchyPosition = 0xB030 // - Hierarchy Position
157 };
159 #endif // _3DSCHUNKS_H_