Exemple #1
0
 private void save_cubemap_button_Click(object sender, EventArgs e)
 {
     if (save_to_input_check_box.Checked)
     {
         CubemapLibrary.save_cube_dds(MakeDDSName(open_file_dialog.FileName), cube_edge_i);
         MessageBox.Show("Successfully saved!");
     }
     else
     {
         if (save_file_dialog.ShowDialog() == DialogResult.OK)
         {
             CubemapLibrary.save_cube_dds(save_file_dialog.FileName, cube_edge_i);
             return;
         }
     }
 }
Exemple #2
0
        private void process_batch_button_Click(object sender, EventArgs e)
        {
            if (!Directory.Exists(input_folder_text_box.Text))
            {
                MessageBox.Show("Input directory doesn't exist");
                return;
            }

            if (!Directory.Exists(output_folder_text_box.Text))
            {
                MessageBox.Show("Output directory doesn't exist");
                return;
            }

            DirectoryInfo          InputInfo = new DirectoryInfo(input_folder_text_box.Text);
            IEnumerable <FileInfo> Files     = InputInfo.EnumerateFiles("*.hdr");

            foreach (FileInfo Info in Files)
            {
                LoadPanorama(Info.FullName);
                UpdateCubemap();
                CubemapLibrary.save_cube_dds(output_folder_text_box.Text + MakeDDSName(Info.Name), cube_edge_i);
            }
        }