Flip UVs on export
This commit is contained in:
parent
cdcf14979f
commit
3a153b5ed1
Binary file not shown.
@ -56,9 +56,10 @@ namespace FirstPlugin.Forms
|
|||||||
|
|
||||||
CourseMuuntScene scene;
|
CourseMuuntScene scene;
|
||||||
|
|
||||||
|
string CourseFolder;
|
||||||
public void LoadCourseInfo(System.Collections.IEnumerable by, string FilePath)
|
public void LoadCourseInfo(System.Collections.IEnumerable by, string FilePath)
|
||||||
{
|
{
|
||||||
string CourseFolder = System.IO.Path.GetDirectoryName(FilePath);
|
CourseFolder = System.IO.Path.GetDirectoryName(FilePath);
|
||||||
scene = new CourseMuuntScene(by);
|
scene = new CourseMuuntScene(by);
|
||||||
|
|
||||||
//Add collsion (switch)
|
//Add collsion (switch)
|
||||||
@ -192,7 +193,7 @@ namespace FirstPlugin.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
aamp.Save("DEBUG_PROBE.aamp");
|
aamp.Save($"{CourseFolder}/DEBUG_PROBE.aamp");
|
||||||
|
|
||||||
foreach (var entry in probeLightingConfig.Entries)
|
foreach (var entry in probeLightingConfig.Entries)
|
||||||
{
|
{
|
||||||
@ -248,6 +249,14 @@ namespace FirstPlugin.Forms
|
|||||||
{
|
{
|
||||||
if (entry.ParamType == aampv1.ParamType.BufferUint)
|
if (entry.ParamType == aampv1.ParamType.BufferUint)
|
||||||
probeEntry.IndexBuffer = (uint[])entry.Value;
|
probeEntry.IndexBuffer = (uint[])entry.Value;
|
||||||
|
|
||||||
|
//Experimental, just fill in indices
|
||||||
|
uint[] values = (uint[])entry.Value;
|
||||||
|
for (int i = 0; i < values.Length; i++)
|
||||||
|
{
|
||||||
|
values[i] = 0;
|
||||||
|
}
|
||||||
|
entry.Value = values;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -36,7 +36,7 @@ namespace Switch_Toolbox.Library
|
|||||||
if (ext == ".ply")
|
if (ext == ".ply")
|
||||||
formatID = "ply";
|
formatID = "ply";
|
||||||
|
|
||||||
if (v.ExportFile(scene, FileName, formatID))
|
if (v.ExportFile(scene, FileName, formatID, PostProcessSteps.FlipUVs))
|
||||||
MessageBox.Show($"Exported {FileName} Successfuly!");
|
MessageBox.Show($"Exported {FileName} Successfuly!");
|
||||||
else
|
else
|
||||||
MessageBox.Show($"Failed to export {FileName}!");
|
MessageBox.Show($"Failed to export {FileName}!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user