goat3dgfx

annotate src/3dschunks.h @ 33:253542d715f4

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