void ExportLightmap(string file_name)
        {
            LightmapInfoInternal info = new LightmapInfoInternal();

            ColladaExportArgs arguments = new ColladaExportArgs(Overwrite, RelativeFilePath, BitmapFormat);
            var exporter = new Halo2.ColladaLightmapExporter(arguments, info, tagIndex, tagManager);

            ExportSave(exporter, RelativeFilePath + file_name + ".dae");
        }
            public static void AddShaderDatums(LightmapInfoInternal lightmap_info, TagManager manager)
            {
                var definition = manager.TagDefinition as Blam.Halo2.Tags.scenario_structure_lightmap_group;

                foreach (var lightmap in definition.LightmapGroups)
                {
                    foreach (var cluster in lightmap)
                    {
                    }
                }
            }
        /// <summary>
        /// Creates info classes for a structure lightmap
        /// </summary>
        void GenerateInfoListLightmap()
        {
            string name = Path.GetFileNameWithoutExtension(tagManager.Name);

            int vertex_count, triangle_count;

            vertex_count   = Lightmap.GetVertexCount(tagManager);
            triangle_count = Lightmap.GetTriangleCount(tagManager);

            if ((vertex_count > 0) && (triangle_count > 0))
            {
                LightmapInfoInternal lightmap_info_internal = new LightmapInfoInternal();
                internalInfoList.Add(lightmap_info_internal);

                Add(new ColladaHalo2LightmapInfo(internalInfoList.Count - 1,
                                                 name,
                                                 vertex_count,
                                                 triangle_count));
            }
        }
예제 #4
0
		void ExportLightmap(string file_name)
		{
			LightmapInfoInternal info = new LightmapInfoInternal();

			ColladaExportArgs arguments = new ColladaExportArgs(Overwrite, RelativeFilePath, BitmapFormat);
			var exporter = new Halo2.ColladaLightmapExporter(arguments, info, tagIndex, tagManager);

			ExportSave(exporter, RelativeFilePath + file_name + ".dae");
		}
예제 #5
0
		/// <summary>
		/// Creates info classes for a structure lightmap
		/// </summary>
		void GenerateInfoListLightmap()
		{
			string name = Path.GetFileNameWithoutExtension(tagManager.Name);

			int vertex_count, triangle_count;

			vertex_count = Lightmap.GetVertexCount(tagManager);
			triangle_count = Lightmap.GetTriangleCount(tagManager);

			if ((vertex_count > 0) && (triangle_count > 0))
			{
				LightmapInfoInternal lightmap_info_internal = new LightmapInfoInternal();
				internalInfoList.Add(lightmap_info_internal);

				Add(new ColladaHalo2LightmapInfo(internalInfoList.Count - 1,
					name,
					vertex_count,
					triangle_count));
			}
		}
예제 #6
0
			public static void AddShaderDatums(LightmapInfoInternal lightmap_info, TagManager manager)
			{
				var definition = manager.TagDefinition as Blam.Halo2.Tags.scenario_structure_lightmap_group;

				foreach (var lightmap in definition.LightmapGroups)
				{
					foreach (var cluster in lightmap)
					{

					}
				}
			}