Skip to content

Commit

Permalink
Improved normal maps. Fixed some issues with the Bulk Tex Manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebane1 committed Jan 25, 2023
1 parent f58528a commit c7fd163
Show file tree
Hide file tree
Showing 9 changed files with 2,070 additions and 7 deletions.
Binary file modified .vs/FFXIVLooseTextureCompiler/v17/.suo
Binary file not shown.
3 changes: 3 additions & 0 deletions FFXIVLooseTextureCompiler/BulkTexManager.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions FFXIVLooseTextureCompiler/BulkTexManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private void exportPNGButton_Click(object sender, EventArgs e) {
saveFileDialog.Filter = ".png files|*.png";
if (saveFileDialog.ShowDialog() == DialogResult.OK) {
texturePreview.BackgroundImage.Save(saveFileDialog.FileName);
MessageBox.Show("Texture saved to .png", ParentForm.Text);
}
} else {
MessageBox.Show("Please select a valid file!", ParentForm.Text);
Expand Down Expand Up @@ -104,6 +105,9 @@ private void bulkImport_Click(object sender, EventArgs e) {
if (folderBrowserDialog.ShowDialog() == DialogResult.OK) {
AddFilesRecursively(folderBrowserDialog.SelectedPath, 0, 10);
}
TopMost = true;
BringToFront();
TopMost = false;
}
public void AddFilesRecursively(string path, int recursionCount, int recursionLimit) {
foreach (string file in Directory.GetFiles(path, "*.tex")) {
Expand Down Expand Up @@ -168,6 +172,7 @@ private void exportAllButton_Click(object sender, EventArgs e) {
}
}
}
MessageBox.Show("Bulk Export Complete", ParentForm.Text);
}

private void textureList_Click(object sender, EventArgs e) {
Expand Down
2,055 changes: 2,055 additions & 0 deletions FFXIVLooseTextureCompiler/BulkTexManager.resx

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions FFXIVLooseTextureCompiler/FFXIVLooseTextureCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyVersion>1.0.0.7</AssemblyVersion>
<FileVersion>1.0.0.7</FileVersion>
<Version>1.0.0.7</Version>
<AssemblyVersion>1.0.0.8</AssemblyVersion>
<FileVersion>1.0.0.8</FileVersion>
<Version>1.0.0.8</Version>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<Title>FFXIV Loose Texture Compiler</Title>
<Copyright>Lawener Industries</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion FFXIVLooseTextureCompiler/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void ExportTex(string inputFile, string outputFile, ExportType exportType
Graphics g = Graphics.FromImage(target);
g.Clear(Color.White);
g.DrawImage(bitmap, 0, 0, bitmap.Width, bitmap.Height);
Bitmap normal = Normal.Calculate(Contrast.AdjustContrast((target), 100));
Bitmap normal = Normal.Calculate((target));
KVImage.ImageBlender imageBlender = new KVImage.ImageBlender();
using (Bitmap originalNormal = new Bitmap(inputFile)) {
Bitmap destination = new Bitmap(originalNormal, originalNormal.Width, originalNormal.Height);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"projects": {
"C:\\Users\\stel9\\source\\repos\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler.csproj": {
"version": "1.0.0.7",
"version": "1.0.0.8",
"restore": {
"projectUniqueName": "C:\\Users\\stel9\\source\\repos\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler.csproj",
"projectName": "FFXIVLooseTextureCompiler",
Expand Down
2 changes: 1 addition & 1 deletion FFXIVLooseTextureCompiler/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0.7",
"version": "1.0.0.8",
"restore": {
"projectUniqueName": "C:\\Users\\stel9\\source\\repos\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler.csproj",
"projectName": "FFXIVLooseTextureCompiler",
Expand Down
2 changes: 1 addition & 1 deletion FFXIVLooseTextureCompiler/obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "GY7puEcT4qXyJFBEc3mJRcxP1SGnqvCWb3xYw5sbubqr/Pm+DscxYuR5isHI786PkaI7QI+wM3ZMef3PICQ/cQ==",
"dgSpecHash": "IawyZ+/qvg3p/LtYqfRjGawppa5a3qP8HPjWHIWsbEAlvUy9ARtaWnXCo5te4JMmAvGZqBk2KJm8RedhOOROkA==",
"success": true,
"projectFilePath": "C:\\Users\\stel9\\source\\repos\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler\\FFXIVLooseTextureCompiler.csproj",
"expectedPackageFiles": [
Expand Down

0 comments on commit c7fd163

Please sign in to comment.