1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Add support for GFBMDL saving and model editing.

- Models can be swapped with DAE files. You can use custom rigs, custom bones, and also import additional meshes. Materials are selected in the import settings and you can swap and export them as .json. Note there are a few models (ie trees) which break atm.
- Adds support for proper GFBMDL wrap modes from texture params.
This commit is contained in:
KillzXGaming 2019-12-10 18:46:16 -05:00
parent f9d8346ac2
commit 4df4c13828
10 changed files with 539 additions and 481 deletions

View File

@ -98,9 +98,9 @@ namespace FirstPlugin
parameters = new TextureParams()
{
Unknown1 = param.Unknown1,
Unknown2 = param.Unknown2,
Unknown3 = param.Unknown3,
Unknown4 = param.Unknown4,
WrapModeX = param.Unknown2,
WrapModeY = param.Unknown3,
WrapModeZ = param.Unknown4,
Unknown5 = param.Unknown5,
Unknown6 = param.Unknown6,
Unknown7 = param.Unknown7,
@ -146,6 +146,13 @@ namespace FirstPlugin
});
}
if (mat.Parameter4 != i)
Console.WriteLine($"Expected {i} for shader index, got " + mat.Parameter4);
if (mat.Parameter5 != -1)
Console.WriteLine("Expected -1 for param 4, got " + mat.Parameter5);
if (mat.Parameter6 != i)
Console.WriteLine($"Expected {i} for param 5, got " + mat.Parameter6);
model.Materials.Add(new Material()
{
Name = mat.Name,
@ -155,9 +162,9 @@ namespace FirstPlugin
Parameter1 = mat.Parameter1,
Parameter2 = mat.Parameter2,
Parameter3 = mat.Parameter3,
Parameter4 = mat.Parameter4,
Parameter5 = mat.Parameter5,
Parameter6 = mat.Parameter6,
ShaderIndex = mat.Parameter4,
Parameter4 = mat.Parameter5,
Parameter5 = mat.Parameter6,
RenderLayer = mat.RenderLayer,
ShaderGroup = mat.ShaderGroup,
Unknown1 = mat.Unknown1,

View File

@ -88,13 +88,10 @@ namespace FirstPlugin
public void Load(System.IO.Stream stream)
{
// CanSave = true;
CanSave = true;
Text = FileName;
DrawableContainer.Name = FileName;
Renderer = new GFBMDL_Render();
Renderer.GfbmdlFile = this;
DrawableContainer.Drawables.Add(Renderer);
//Here i convert buffer classes generated from flatc to c# classes that are much nicer to alter
var model = BufferToStruct.LoadFile(stream);
@ -103,10 +100,16 @@ namespace FirstPlugin
private void ReloadModel(Model model)
{
if (Renderer != null)
Renderer.Meshes.Clear();
DrawableContainer.Drawables.Clear();
Renderer = new GFBMDL_Render();
Renderer.GfbmdlFile = this;
DrawableContainer.Drawables.Add(Renderer);
Nodes.Clear();
if (Renderer.Meshes == null)
Renderer.Meshes = new List<STGenericObject>();
Renderer.Meshes.Clear();
Model = new GFLXModel();
Model.LoadFile(model, this, Renderer);
@ -210,7 +213,8 @@ namespace FirstPlugin
var model = JsonConvert.DeserializeObject<Model>(
System.IO.File.ReadAllText(ofd.FileName));
Model.LoadFile(model, this, Renderer);
ReloadModel(model);
Model.UpdateVertexData(true);
}
else
{

View File

@ -53,6 +53,8 @@ namespace FirstPlugin
Model = model;
ParentFile = file;
Renderer.Meshes.Clear();
for (int m = 0; m < Model.Materials?.Count; m++) {
GenericMaterials.Add(new GFLXMaterialData(this, Model.Materials[m]));
}
@ -122,7 +124,9 @@ namespace FirstPlugin
public void SaveFile(System.IO.Stream stream)
{
using (var writer = new FileWriter(stream)) {
writer.Write(FlatBufferConverter.SerializeFrom<Model>(Model, "gfbmdl"));
}
}
public List<int> GenerateSkinningIndices()
@ -310,6 +314,12 @@ namespace FirstPlugin
matTexture.WrapModeT = STTextureWrapMode.Repeat;
TextureMaps.Add(matTexture);
if (tex.Params != null)
{
matTexture.WrapModeS = GFLXTextureMap.ConvertWrap(tex.Params.WrapModeX);
matTexture.WrapModeT = GFLXTextureMap.ConvertWrap(tex.Params.WrapModeY);
}
switch (tex.Sampler)
{
case "BaseColor0":
@ -318,17 +328,19 @@ namespace FirstPlugin
case "Col0Tex":
matTexture.Type = STGenericMatTexture.TextureType.Diffuse;
break;
case "L0ColTex":
matTexture.Type = STGenericMatTexture.TextureType.Diffuse;
break;
case "EmissionMaskTex":
// matTexture.Type = STGenericMatTexture.TextureType.Emission;
break;
case "LyCol0Tex":
break;
case "NormalMapTex":
matTexture.WrapModeT = STTextureWrapMode.Repeat;
matTexture.WrapModeT = STTextureWrapMode.Repeat;
matTexture.Type = STGenericMatTexture.TextureType.Normal;
break;
case "AmbientTex":
matTexture.Type = STGenericMatTexture.TextureType.AO;
break;
case "LightTblTex":
break;
@ -383,6 +395,17 @@ namespace FirstPlugin
return base.GetTexture();
}
public static STTextureWrapMode ConvertWrap(uint value)
{
switch (value)
{
case 0: return STTextureWrapMode.Repeat;
case 1: return STTextureWrapMode.Clamp;
case 2: return STTextureWrapMode.Mirror;
default: return STTextureWrapMode.Repeat;
}
}
}
public class GFLXBone : STBone

View File

@ -65,9 +65,9 @@ namespace FirstPlugin.GFMDLStructs
public int Parameter1 { get; set; }
public int Parameter2 { get; set; }
public int Parameter3 { get; set; }
public int ShaderIndex { get; set; }
public int Parameter4 { get; set; }
public int Parameter5 { get; set; }
public int Parameter6 { get; set; }
public IList<TextureMap> TextureMaps { get; set; }
@ -106,9 +106,9 @@ namespace FirstPlugin.GFMDLStructs
public class TextureParams
{
public uint Unknown1 { get; set; }
public uint Unknown2 { get; set; }
public uint Unknown3 { get; set; }
public uint Unknown4 { get; set; }
public uint WrapModeX { get; set; }
public uint WrapModeY { get; set; }
public uint WrapModeZ { get; set; }
public uint Unknown5 { get; set; }
public uint Unknown6 { get; set; }
public uint Unknown7 { get; set; }

View File

@ -304,6 +304,11 @@ namespace FirstPlugin
shader.SetBoolToInt("HasNormalMap", true);
TextureUniform(shader, mat, true, "NormalMap", matex);
}
if (matex.Type == STGenericMatTexture.TextureType.AO)
{
shader.SetBoolToInt("HasAmbientMap", true);
TextureUniform(shader, mat, true, "AmbientMap", matex);
}
}
}

View File

@ -42,6 +42,18 @@
this.splitter1 = new System.Windows.Forms.Splitter();
this.stPanel4 = new Toolbox.Library.Forms.STPanel();
this.stTabControl2 = new Toolbox.Library.Forms.STTabControl();
this.ParamsTabPage = new System.Windows.Forms.TabPage();
this.param9CB = new BarSlider.BarSlider();
this.param8CB = new BarSlider.BarSlider();
this.param6CB = new BarSlider.BarSlider();
this.param7CB = new BarSlider.BarSlider();
this.param5CB = new BarSlider.BarSlider();
this.stTextBox2 = new Toolbox.Library.Forms.STTextBox();
this.stTextBox1 = new Toolbox.Library.Forms.STTextBox();
this.param4CB = new BarSlider.BarSlider();
this.param2CB = new BarSlider.BarSlider();
this.param3CB = new BarSlider.BarSlider();
this.param1CB = new BarSlider.BarSlider();
this.TransformTabPage = new System.Windows.Forms.TabPage();
this.stPanel6 = new Toolbox.Library.Forms.STPanel();
this.transformParamTB = new Toolbox.Library.Forms.STTextBox();
@ -50,21 +62,9 @@
this.scaleYUD = new BarSlider.BarSlider();
this.scaleXUD = new BarSlider.BarSlider();
this.stPanel2 = new Toolbox.Library.Forms.STPanel();
this.ParamsTabPage = new System.Windows.Forms.TabPage();
this.stTextBox2 = new Toolbox.Library.Forms.STTextBox();
this.stTextBox1 = new Toolbox.Library.Forms.STTextBox();
this.param4CB = new BarSlider.BarSlider();
this.param2CB = new BarSlider.BarSlider();
this.param3CB = new BarSlider.BarSlider();
this.param1CB = new BarSlider.BarSlider();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.stPanel7 = new Toolbox.Library.Forms.STPanel();
this.param5CB = new BarSlider.BarSlider();
this.param9CB = new BarSlider.BarSlider();
this.param8CB = new BarSlider.BarSlider();
this.param6CB = new BarSlider.BarSlider();
this.param7CB = new BarSlider.BarSlider();
this.stTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.stPanel1.SuspendLayout();
@ -75,9 +75,9 @@
this.stPanel5.SuspendLayout();
this.stPanel4.SuspendLayout();
this.stTabControl2.SuspendLayout();
this.ParamsTabPage.SuspendLayout();
this.TransformTabPage.SuspendLayout();
this.stPanel6.SuspendLayout();
this.ParamsTabPage.SuspendLayout();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
@ -250,6 +250,430 @@
this.stTabControl2.Size = new System.Drawing.Size(169, 467);
this.stTabControl2.TabIndex = 17;
//
// ParamsTabPage
//
this.ParamsTabPage.Controls.Add(this.param9CB);
this.ParamsTabPage.Controls.Add(this.param8CB);
this.ParamsTabPage.Controls.Add(this.param6CB);
this.ParamsTabPage.Controls.Add(this.param7CB);
this.ParamsTabPage.Controls.Add(this.param5CB);
this.ParamsTabPage.Controls.Add(this.stTextBox2);
this.ParamsTabPage.Controls.Add(this.stTextBox1);
this.ParamsTabPage.Controls.Add(this.param4CB);
this.ParamsTabPage.Controls.Add(this.param2CB);
this.ParamsTabPage.Controls.Add(this.param3CB);
this.ParamsTabPage.Controls.Add(this.param1CB);
this.ParamsTabPage.Location = new System.Drawing.Point(4, 25);
this.ParamsTabPage.Name = "ParamsTabPage";
this.ParamsTabPage.Padding = new System.Windows.Forms.Padding(3);
this.ParamsTabPage.Size = new System.Drawing.Size(161, 438);
this.ParamsTabPage.TabIndex = 1;
this.ParamsTabPage.Text = "Params";
this.ParamsTabPage.UseVisualStyleBackColor = true;
//
// param9CB
//
this.param9CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param9CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param9CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param9CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param9CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param9CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param9CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param9CB.DataType = null;
this.param9CB.DrawSemitransparentThumb = false;
this.param9CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param9CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param9CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param9CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param9CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param9CB.IncrementAmount = 0.01F;
this.param9CB.InputName = "Param9";
this.param9CB.LargeChange = 5F;
this.param9CB.Location = new System.Drawing.Point(6, 311);
this.param9CB.Maximum = 9999999F;
this.param9CB.Minimum = -9999999F;
this.param9CB.Name = "param9CB";
this.param9CB.Precision = 0.01F;
this.param9CB.ScaleDivisions = 1;
this.param9CB.ScaleSubDivisions = 2;
this.param9CB.ShowDivisionsText = false;
this.param9CB.ShowSmallScale = false;
this.param9CB.Size = new System.Drawing.Size(149, 25);
this.param9CB.SmallChange = 1F;
this.param9CB.TabIndex = 19;
this.param9CB.Text = "barSlider3";
this.param9CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param9CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param9CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param9CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param9CB.TickAdd = 0F;
this.param9CB.TickColor = System.Drawing.Color.White;
this.param9CB.TickDivide = 0F;
this.param9CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param9CB.UseInterlapsedBar = true;
this.param9CB.Value = -9999999F;
//
// param8CB
//
this.param8CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param8CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param8CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param8CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param8CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param8CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param8CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param8CB.DataType = null;
this.param8CB.DrawSemitransparentThumb = false;
this.param8CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param8CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param8CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param8CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param8CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param8CB.IncrementAmount = 0.01F;
this.param8CB.InputName = "Param8";
this.param8CB.LargeChange = 5F;
this.param8CB.Location = new System.Drawing.Point(6, 280);
this.param8CB.Maximum = 9999999F;
this.param8CB.Minimum = -9999999F;
this.param8CB.Name = "param8CB";
this.param8CB.Precision = 0.01F;
this.param8CB.ScaleDivisions = 1;
this.param8CB.ScaleSubDivisions = 2;
this.param8CB.ShowDivisionsText = false;
this.param8CB.ShowSmallScale = false;
this.param8CB.Size = new System.Drawing.Size(149, 25);
this.param8CB.SmallChange = 1F;
this.param8CB.TabIndex = 18;
this.param8CB.Text = "barSlider3";
this.param8CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param8CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param8CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param8CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param8CB.TickAdd = 0F;
this.param8CB.TickColor = System.Drawing.Color.White;
this.param8CB.TickDivide = 0F;
this.param8CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param8CB.UseInterlapsedBar = true;
this.param8CB.Value = -9999999F;
//
// param6CB
//
this.param6CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param6CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param6CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param6CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param6CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param6CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param6CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param6CB.DataType = null;
this.param6CB.DrawSemitransparentThumb = false;
this.param6CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param6CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param6CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param6CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param6CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param6CB.IncrementAmount = 0.01F;
this.param6CB.InputName = "Param6";
this.param6CB.LargeChange = 5F;
this.param6CB.Location = new System.Drawing.Point(6, 218);
this.param6CB.Maximum = 9999999F;
this.param6CB.Minimum = -9999999F;
this.param6CB.Name = "param6CB";
this.param6CB.Precision = 0.01F;
this.param6CB.ScaleDivisions = 1;
this.param6CB.ScaleSubDivisions = 2;
this.param6CB.ShowDivisionsText = false;
this.param6CB.ShowSmallScale = false;
this.param6CB.Size = new System.Drawing.Size(149, 25);
this.param6CB.SmallChange = 1F;
this.param6CB.TabIndex = 16;
this.param6CB.Text = "barSlider2";
this.param6CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param6CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param6CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param6CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param6CB.TickAdd = 0F;
this.param6CB.TickColor = System.Drawing.Color.White;
this.param6CB.TickDivide = 0F;
this.param6CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param6CB.UseInterlapsedBar = true;
this.param6CB.Value = -9999999F;
//
// param7CB
//
this.param7CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param7CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param7CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param7CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param7CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param7CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param7CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param7CB.DataType = null;
this.param7CB.DrawSemitransparentThumb = false;
this.param7CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param7CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param7CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param7CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param7CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param7CB.IncrementAmount = 0.01F;
this.param7CB.InputName = "Param7";
this.param7CB.LargeChange = 5F;
this.param7CB.Location = new System.Drawing.Point(6, 249);
this.param7CB.Maximum = 9999999F;
this.param7CB.Minimum = -9999999F;
this.param7CB.Name = "param7CB";
this.param7CB.Precision = 0.01F;
this.param7CB.ScaleDivisions = 1;
this.param7CB.ScaleSubDivisions = 2;
this.param7CB.ShowDivisionsText = false;
this.param7CB.ShowSmallScale = false;
this.param7CB.Size = new System.Drawing.Size(149, 25);
this.param7CB.SmallChange = 1F;
this.param7CB.TabIndex = 17;
this.param7CB.Text = "barSlider4";
this.param7CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param7CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param7CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param7CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param7CB.TickAdd = 0F;
this.param7CB.TickColor = System.Drawing.Color.White;
this.param7CB.TickDivide = 0F;
this.param7CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param7CB.UseInterlapsedBar = true;
this.param7CB.Value = -9999999F;
//
// param5CB
//
this.param5CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param5CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param5CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param5CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param5CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param5CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param5CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param5CB.DataType = null;
this.param5CB.DrawSemitransparentThumb = false;
this.param5CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param5CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param5CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param5CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param5CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param5CB.IncrementAmount = 0.01F;
this.param5CB.InputName = "Param5";
this.param5CB.LargeChange = 5F;
this.param5CB.Location = new System.Drawing.Point(6, 187);
this.param5CB.Maximum = 9999999F;
this.param5CB.Minimum = -9999999F;
this.param5CB.Name = "param5CB";
this.param5CB.Precision = 0.01F;
this.param5CB.ScaleDivisions = 1;
this.param5CB.ScaleSubDivisions = 2;
this.param5CB.ShowDivisionsText = false;
this.param5CB.ShowSmallScale = false;
this.param5CB.Size = new System.Drawing.Size(149, 25);
this.param5CB.SmallChange = 1F;
this.param5CB.TabIndex = 15;
this.param5CB.Text = "barSlider3";
this.param5CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param5CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param5CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param5CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param5CB.TickAdd = 0F;
this.param5CB.TickColor = System.Drawing.Color.White;
this.param5CB.TickDivide = 0F;
this.param5CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param5CB.UseInterlapsedBar = true;
this.param5CB.Value = -9999999F;
//
// stTextBox2
//
this.stTextBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.stTextBox2.Location = new System.Drawing.Point(6, 32);
this.stTextBox2.Name = "stTextBox2";
this.stTextBox2.Size = new System.Drawing.Size(149, 20);
this.stTextBox2.TabIndex = 14;
//
// stTextBox1
//
this.stTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.stTextBox1.Location = new System.Drawing.Point(6, 6);
this.stTextBox1.Name = "stTextBox1";
this.stTextBox1.Size = new System.Drawing.Size(149, 20);
this.stTextBox1.TabIndex = 13;
//
// param4CB
//
this.param4CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param4CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param4CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param4CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param4CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param4CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param4CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param4CB.DataType = null;
this.param4CB.DrawSemitransparentThumb = false;
this.param4CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param4CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param4CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param4CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param4CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param4CB.IncrementAmount = 0.01F;
this.param4CB.InputName = "Param4";
this.param4CB.LargeChange = 5F;
this.param4CB.Location = new System.Drawing.Point(6, 156);
this.param4CB.Maximum = 9999999F;
this.param4CB.Minimum = -9999999F;
this.param4CB.Name = "param4CB";
this.param4CB.Precision = 0.01F;
this.param4CB.ScaleDivisions = 1;
this.param4CB.ScaleSubDivisions = 2;
this.param4CB.ShowDivisionsText = false;
this.param4CB.ShowSmallScale = false;
this.param4CB.Size = new System.Drawing.Size(149, 25);
this.param4CB.SmallChange = 1F;
this.param4CB.TabIndex = 12;
this.param4CB.Text = "barSlider3";
this.param4CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param4CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param4CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param4CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param4CB.TickAdd = 0F;
this.param4CB.TickColor = System.Drawing.Color.White;
this.param4CB.TickDivide = 0F;
this.param4CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param4CB.UseInterlapsedBar = true;
this.param4CB.Value = -9999999F;
//
// param2CB
//
this.param2CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param2CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param2CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param2CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param2CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param2CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param2CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param2CB.DataType = null;
this.param2CB.DrawSemitransparentThumb = false;
this.param2CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param2CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param2CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param2CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param2CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param2CB.IncrementAmount = 0.01F;
this.param2CB.InputName = "Param2";
this.param2CB.LargeChange = 5F;
this.param2CB.Location = new System.Drawing.Point(6, 94);
this.param2CB.Maximum = 9999999F;
this.param2CB.Minimum = -9999999F;
this.param2CB.Name = "param2CB";
this.param2CB.Precision = 0.01F;
this.param2CB.ScaleDivisions = 1;
this.param2CB.ScaleSubDivisions = 2;
this.param2CB.ShowDivisionsText = false;
this.param2CB.ShowSmallScale = false;
this.param2CB.Size = new System.Drawing.Size(149, 25);
this.param2CB.SmallChange = 1F;
this.param2CB.TabIndex = 10;
this.param2CB.Text = "barSlider2";
this.param2CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param2CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param2CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param2CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param2CB.TickAdd = 0F;
this.param2CB.TickColor = System.Drawing.Color.White;
this.param2CB.TickDivide = 0F;
this.param2CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param2CB.UseInterlapsedBar = true;
this.param2CB.Value = -9999999F;
//
// param3CB
//
this.param3CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param3CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param3CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param3CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param3CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param3CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param3CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param3CB.DataType = null;
this.param3CB.DrawSemitransparentThumb = false;
this.param3CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param3CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param3CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param3CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param3CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param3CB.IncrementAmount = 0.01F;
this.param3CB.InputName = "Param3";
this.param3CB.LargeChange = 5F;
this.param3CB.Location = new System.Drawing.Point(6, 125);
this.param3CB.Maximum = 9999999F;
this.param3CB.Minimum = -9999999F;
this.param3CB.Name = "param3CB";
this.param3CB.Precision = 0.01F;
this.param3CB.ScaleDivisions = 1;
this.param3CB.ScaleSubDivisions = 2;
this.param3CB.ShowDivisionsText = false;
this.param3CB.ShowSmallScale = false;
this.param3CB.Size = new System.Drawing.Size(149, 25);
this.param3CB.SmallChange = 1F;
this.param3CB.TabIndex = 11;
this.param3CB.Text = "barSlider4";
this.param3CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param3CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param3CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param3CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param3CB.TickAdd = 0F;
this.param3CB.TickColor = System.Drawing.Color.White;
this.param3CB.TickDivide = 0F;
this.param3CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param3CB.UseInterlapsedBar = true;
this.param3CB.Value = -9999999F;
//
// param1CB
//
this.param1CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param1CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param1CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param1CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param1CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param1CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param1CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param1CB.DataType = null;
this.param1CB.DrawSemitransparentThumb = false;
this.param1CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param1CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param1CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param1CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param1CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param1CB.IncrementAmount = 0.01F;
this.param1CB.InputName = "Param1";
this.param1CB.LargeChange = 5F;
this.param1CB.Location = new System.Drawing.Point(6, 63);
this.param1CB.Maximum = 9999999F;
this.param1CB.Minimum = -9999999F;
this.param1CB.Name = "param1CB";
this.param1CB.Precision = 0.01F;
this.param1CB.ScaleDivisions = 1;
this.param1CB.ScaleSubDivisions = 2;
this.param1CB.ShowDivisionsText = false;
this.param1CB.ShowSmallScale = false;
this.param1CB.Size = new System.Drawing.Size(149, 25);
this.param1CB.SmallChange = 1F;
this.param1CB.TabIndex = 1;
this.param1CB.Text = "barSlider1";
this.param1CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param1CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param1CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param1CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param1CB.TickAdd = 0F;
this.param1CB.TickColor = System.Drawing.Color.White;
this.param1CB.TickDivide = 0F;
this.param1CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param1CB.UseInterlapsedBar = true;
this.param1CB.Value = -9999999F;
//
// TransformTabPage
//
this.TransformTabPage.Controls.Add(this.stPanel6);
@ -303,8 +727,8 @@
this.translateYUD.InputName = "Translate Y";
this.translateYUD.LargeChange = 5F;
this.translateYUD.Location = new System.Drawing.Point(3, 25);
this.translateYUD.Maximum = 100F;
this.translateYUD.Minimum = 0F;
this.translateYUD.Maximum = 99999F;
this.translateYUD.Minimum = -99999F;
this.translateYUD.Name = "translateYUD";
this.translateYUD.Precision = 0.01F;
this.translateYUD.ScaleDivisions = 1;
@ -346,8 +770,8 @@
this.translateXUD.InputName = "Translate X";
this.translateXUD.LargeChange = 5F;
this.translateXUD.Location = new System.Drawing.Point(3, 51);
this.translateXUD.Maximum = 100F;
this.translateXUD.Minimum = 0F;
this.translateXUD.Maximum = 99999F;
this.translateXUD.Minimum = -99999F;
this.translateXUD.Name = "translateXUD";
this.translateXUD.Precision = 0.01F;
this.translateXUD.ScaleDivisions = 1;
@ -389,8 +813,8 @@
this.scaleYUD.InputName = "Scale Y";
this.scaleYUD.LargeChange = 5F;
this.scaleYUD.Location = new System.Drawing.Point(3, 103);
this.scaleYUD.Maximum = 100F;
this.scaleYUD.Minimum = 0F;
this.scaleYUD.Maximum = 99999F;
this.scaleYUD.Minimum = -99999F;
this.scaleYUD.Name = "scaleYUD";
this.scaleYUD.Precision = 0.01F;
this.scaleYUD.ScaleDivisions = 1;
@ -433,8 +857,8 @@
this.scaleXUD.InputName = "Scale X";
this.scaleXUD.LargeChange = 5F;
this.scaleXUD.Location = new System.Drawing.Point(3, 77);
this.scaleXUD.Maximum = 100F;
this.scaleXUD.Minimum = 0F;
this.scaleXUD.Maximum = 99999F;
this.scaleXUD.Minimum = -99999F;
this.scaleXUD.Name = "scaleXUD";
this.scaleXUD.Precision = 0.01F;
this.scaleXUD.ScaleDivisions = 1;
@ -463,215 +887,6 @@
this.stPanel2.Size = new System.Drawing.Size(8, 8);
this.stPanel2.TabIndex = 0;
//
// ParamsTabPage
//
this.ParamsTabPage.Controls.Add(this.param9CB);
this.ParamsTabPage.Controls.Add(this.param8CB);
this.ParamsTabPage.Controls.Add(this.param6CB);
this.ParamsTabPage.Controls.Add(this.param7CB);
this.ParamsTabPage.Controls.Add(this.param5CB);
this.ParamsTabPage.Controls.Add(this.stTextBox2);
this.ParamsTabPage.Controls.Add(this.stTextBox1);
this.ParamsTabPage.Controls.Add(this.param4CB);
this.ParamsTabPage.Controls.Add(this.param2CB);
this.ParamsTabPage.Controls.Add(this.param3CB);
this.ParamsTabPage.Controls.Add(this.param1CB);
this.ParamsTabPage.Location = new System.Drawing.Point(4, 25);
this.ParamsTabPage.Name = "ParamsTabPage";
this.ParamsTabPage.Padding = new System.Windows.Forms.Padding(3);
this.ParamsTabPage.Size = new System.Drawing.Size(161, 438);
this.ParamsTabPage.TabIndex = 1;
this.ParamsTabPage.Text = "Params";
this.ParamsTabPage.UseVisualStyleBackColor = true;
//
// stTextBox2
//
this.stTextBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.stTextBox2.Location = new System.Drawing.Point(6, 32);
this.stTextBox2.Name = "stTextBox2";
this.stTextBox2.Size = new System.Drawing.Size(149, 20);
this.stTextBox2.TabIndex = 14;
//
// stTextBox1
//
this.stTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.stTextBox1.Location = new System.Drawing.Point(6, 6);
this.stTextBox1.Name = "stTextBox1";
this.stTextBox1.Size = new System.Drawing.Size(149, 20);
this.stTextBox1.TabIndex = 13;
//
// param4CB
//
this.param4CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param4CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param4CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param4CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param4CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param4CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param4CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param4CB.DataType = null;
this.param4CB.DrawSemitransparentThumb = false;
this.param4CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param4CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param4CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param4CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param4CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param4CB.IncrementAmount = 0.01F;
this.param4CB.InputName = "Param4";
this.param4CB.LargeChange = 5F;
this.param4CB.Location = new System.Drawing.Point(6, 156);
this.param4CB.Maximum = 100F;
this.param4CB.Minimum = 0F;
this.param4CB.Name = "param4CB";
this.param4CB.Precision = 0.01F;
this.param4CB.ScaleDivisions = 1;
this.param4CB.ScaleSubDivisions = 2;
this.param4CB.ShowDivisionsText = false;
this.param4CB.ShowSmallScale = false;
this.param4CB.Size = new System.Drawing.Size(149, 25);
this.param4CB.SmallChange = 1F;
this.param4CB.TabIndex = 12;
this.param4CB.Text = "barSlider3";
this.param4CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param4CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param4CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param4CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param4CB.TickAdd = 0F;
this.param4CB.TickColor = System.Drawing.Color.White;
this.param4CB.TickDivide = 0F;
this.param4CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param4CB.UseInterlapsedBar = true;
this.param4CB.Value = 30F;
//
// param2CB
//
this.param2CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param2CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param2CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param2CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param2CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param2CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param2CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param2CB.DataType = null;
this.param2CB.DrawSemitransparentThumb = false;
this.param2CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param2CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param2CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param2CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param2CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param2CB.IncrementAmount = 0.01F;
this.param2CB.InputName = "Param2";
this.param2CB.LargeChange = 5F;
this.param2CB.Location = new System.Drawing.Point(6, 94);
this.param2CB.Maximum = 100F;
this.param2CB.Minimum = 0F;
this.param2CB.Name = "param2CB";
this.param2CB.Precision = 0.01F;
this.param2CB.ScaleDivisions = 1;
this.param2CB.ScaleSubDivisions = 2;
this.param2CB.ShowDivisionsText = false;
this.param2CB.ShowSmallScale = false;
this.param2CB.Size = new System.Drawing.Size(149, 25);
this.param2CB.SmallChange = 1F;
this.param2CB.TabIndex = 10;
this.param2CB.Text = "barSlider2";
this.param2CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param2CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param2CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param2CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param2CB.TickAdd = 0F;
this.param2CB.TickColor = System.Drawing.Color.White;
this.param2CB.TickDivide = 0F;
this.param2CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param2CB.UseInterlapsedBar = true;
this.param2CB.Value = 30F;
//
// param3CB
//
this.param3CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param3CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param3CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param3CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param3CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param3CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param3CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param3CB.DataType = null;
this.param3CB.DrawSemitransparentThumb = false;
this.param3CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param3CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param3CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param3CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param3CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param3CB.IncrementAmount = 0.01F;
this.param3CB.InputName = "Param3";
this.param3CB.LargeChange = 5F;
this.param3CB.Location = new System.Drawing.Point(6, 125);
this.param3CB.Maximum = 100F;
this.param3CB.Minimum = 0F;
this.param3CB.Name = "param3CB";
this.param3CB.Precision = 0.01F;
this.param3CB.ScaleDivisions = 1;
this.param3CB.ScaleSubDivisions = 2;
this.param3CB.ShowDivisionsText = false;
this.param3CB.ShowSmallScale = false;
this.param3CB.Size = new System.Drawing.Size(149, 25);
this.param3CB.SmallChange = 1F;
this.param3CB.TabIndex = 11;
this.param3CB.Text = "barSlider4";
this.param3CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param3CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param3CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param3CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param3CB.TickAdd = 0F;
this.param3CB.TickColor = System.Drawing.Color.White;
this.param3CB.TickDivide = 0F;
this.param3CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param3CB.UseInterlapsedBar = true;
this.param3CB.Value = 30F;
//
// param1CB
//
this.param1CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param1CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param1CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param1CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param1CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param1CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param1CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param1CB.DataType = null;
this.param1CB.DrawSemitransparentThumb = false;
this.param1CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param1CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param1CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param1CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param1CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param1CB.IncrementAmount = 0.01F;
this.param1CB.InputName = "Param1";
this.param1CB.LargeChange = 5F;
this.param1CB.Location = new System.Drawing.Point(6, 63);
this.param1CB.Maximum = 100F;
this.param1CB.Minimum = 0F;
this.param1CB.Name = "param1CB";
this.param1CB.Precision = 0.01F;
this.param1CB.ScaleDivisions = 1;
this.param1CB.ScaleSubDivisions = 2;
this.param1CB.ShowDivisionsText = false;
this.param1CB.ShowSmallScale = false;
this.param1CB.Size = new System.Drawing.Size(149, 25);
this.param1CB.SmallChange = 1F;
this.param1CB.TabIndex = 1;
this.param1CB.Text = "barSlider1";
this.param1CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param1CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param1CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param1CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param1CB.TickAdd = 0F;
this.param1CB.TickColor = System.Drawing.Color.White;
this.param1CB.TickDivide = 0F;
this.param1CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param1CB.UseInterlapsedBar = true;
this.param1CB.Value = 30F;
//
// tabPage2
//
this.tabPage2.Location = new System.Drawing.Point(4, 25);
@ -701,221 +916,6 @@
this.stPanel7.Size = new System.Drawing.Size(561, 734);
this.stPanel7.TabIndex = 0;
//
// param5CB
//
this.param5CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param5CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param5CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param5CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param5CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param5CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param5CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param5CB.DataType = null;
this.param5CB.DrawSemitransparentThumb = false;
this.param5CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param5CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param5CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param5CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param5CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param5CB.IncrementAmount = 0.01F;
this.param5CB.InputName = "Param5";
this.param5CB.LargeChange = 5F;
this.param5CB.Location = new System.Drawing.Point(6, 187);
this.param5CB.Maximum = 100F;
this.param5CB.Minimum = 0F;
this.param5CB.Name = "param5CB";
this.param5CB.Precision = 0.01F;
this.param5CB.ScaleDivisions = 1;
this.param5CB.ScaleSubDivisions = 2;
this.param5CB.ShowDivisionsText = false;
this.param5CB.ShowSmallScale = false;
this.param5CB.Size = new System.Drawing.Size(149, 25);
this.param5CB.SmallChange = 1F;
this.param5CB.TabIndex = 15;
this.param5CB.Text = "barSlider3";
this.param5CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param5CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param5CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param5CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param5CB.TickAdd = 0F;
this.param5CB.TickColor = System.Drawing.Color.White;
this.param5CB.TickDivide = 0F;
this.param5CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param5CB.UseInterlapsedBar = true;
this.param5CB.Value = 30F;
//
// param9CB
//
this.param9CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param9CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param9CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param9CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param9CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param9CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param9CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param9CB.DataType = null;
this.param9CB.DrawSemitransparentThumb = false;
this.param9CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param9CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param9CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param9CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param9CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param9CB.IncrementAmount = 0.01F;
this.param9CB.InputName = "Param9";
this.param9CB.LargeChange = 5F;
this.param9CB.Location = new System.Drawing.Point(6, 311);
this.param9CB.Maximum = 100F;
this.param9CB.Minimum = 0F;
this.param9CB.Name = "param9CB";
this.param9CB.Precision = 0.01F;
this.param9CB.ScaleDivisions = 1;
this.param9CB.ScaleSubDivisions = 2;
this.param9CB.ShowDivisionsText = false;
this.param9CB.ShowSmallScale = false;
this.param9CB.Size = new System.Drawing.Size(149, 25);
this.param9CB.SmallChange = 1F;
this.param9CB.TabIndex = 19;
this.param9CB.Text = "barSlider3";
this.param9CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param9CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param9CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param9CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param9CB.TickAdd = 0F;
this.param9CB.TickColor = System.Drawing.Color.White;
this.param9CB.TickDivide = 0F;
this.param9CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param9CB.UseInterlapsedBar = true;
this.param9CB.Value = 30F;
//
// param8CB
//
this.param8CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param8CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param8CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param8CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param8CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param8CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param8CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param8CB.DataType = null;
this.param8CB.DrawSemitransparentThumb = false;
this.param8CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param8CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param8CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param8CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param8CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param8CB.IncrementAmount = 0.01F;
this.param8CB.InputName = "Param8";
this.param8CB.LargeChange = 5F;
this.param8CB.Location = new System.Drawing.Point(6, 280);
this.param8CB.Maximum = 100F;
this.param8CB.Minimum = 0F;
this.param8CB.Name = "param8CB";
this.param8CB.Precision = 0.01F;
this.param8CB.ScaleDivisions = 1;
this.param8CB.ScaleSubDivisions = 2;
this.param8CB.ShowDivisionsText = false;
this.param8CB.ShowSmallScale = false;
this.param8CB.Size = new System.Drawing.Size(149, 25);
this.param8CB.SmallChange = 1F;
this.param8CB.TabIndex = 18;
this.param8CB.Text = "barSlider3";
this.param8CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param8CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param8CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param8CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param8CB.TickAdd = 0F;
this.param8CB.TickColor = System.Drawing.Color.White;
this.param8CB.TickDivide = 0F;
this.param8CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param8CB.UseInterlapsedBar = true;
this.param8CB.Value = 30F;
//
// param6CB
//
this.param6CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param6CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param6CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param6CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param6CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param6CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param6CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param6CB.DataType = null;
this.param6CB.DrawSemitransparentThumb = false;
this.param6CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param6CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param6CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param6CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param6CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param6CB.IncrementAmount = 0.01F;
this.param6CB.InputName = "Param6";
this.param6CB.LargeChange = 5F;
this.param6CB.Location = new System.Drawing.Point(6, 218);
this.param6CB.Maximum = 100F;
this.param6CB.Minimum = 0F;
this.param6CB.Name = "param6CB";
this.param6CB.Precision = 0.01F;
this.param6CB.ScaleDivisions = 1;
this.param6CB.ScaleSubDivisions = 2;
this.param6CB.ShowDivisionsText = false;
this.param6CB.ShowSmallScale = false;
this.param6CB.Size = new System.Drawing.Size(149, 25);
this.param6CB.SmallChange = 1F;
this.param6CB.TabIndex = 16;
this.param6CB.Text = "barSlider2";
this.param6CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param6CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param6CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param6CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param6CB.TickAdd = 0F;
this.param6CB.TickColor = System.Drawing.Color.White;
this.param6CB.TickDivide = 0F;
this.param6CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param6CB.UseInterlapsedBar = true;
this.param6CB.Value = 30F;
//
// param7CB
//
this.param7CB.ActiveEditColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.param7CB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.param7CB.BarInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
this.param7CB.BarPenColorBottom = System.Drawing.Color.Empty;
this.param7CB.BarPenColorMiddle = System.Drawing.Color.Empty;
this.param7CB.BarPenColorTop = System.Drawing.Color.Empty;
this.param7CB.BorderRoundRectSize = new System.Drawing.Size(32, 32);
this.param7CB.DataType = null;
this.param7CB.DrawSemitransparentThumb = false;
this.param7CB.ElapsedInnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(121)))), ((int)(((byte)(180)))));
this.param7CB.ElapsedPenColorBottom = System.Drawing.Color.Empty;
this.param7CB.ElapsedPenColorMiddle = System.Drawing.Color.Empty;
this.param7CB.ElapsedPenColorTop = System.Drawing.Color.Empty;
this.param7CB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
this.param7CB.IncrementAmount = 0.01F;
this.param7CB.InputName = "Param7";
this.param7CB.LargeChange = 5F;
this.param7CB.Location = new System.Drawing.Point(6, 249);
this.param7CB.Maximum = 100F;
this.param7CB.Minimum = 0F;
this.param7CB.Name = "param7CB";
this.param7CB.Precision = 0.01F;
this.param7CB.ScaleDivisions = 1;
this.param7CB.ScaleSubDivisions = 2;
this.param7CB.ShowDivisionsText = false;
this.param7CB.ShowSmallScale = false;
this.param7CB.Size = new System.Drawing.Size(149, 25);
this.param7CB.SmallChange = 1F;
this.param7CB.TabIndex = 17;
this.param7CB.Text = "barSlider4";
this.param7CB.ThumbInnerColor = System.Drawing.Color.Empty;
this.param7CB.ThumbPenColor = System.Drawing.Color.Empty;
this.param7CB.ThumbRoundRectSize = new System.Drawing.Size(1, 1);
this.param7CB.ThumbSize = new System.Drawing.Size(1, 1);
this.param7CB.TickAdd = 0F;
this.param7CB.TickColor = System.Drawing.Color.White;
this.param7CB.TickDivide = 0F;
this.param7CB.TickStyle = System.Windows.Forms.TickStyle.None;
this.param7CB.UseInterlapsedBar = true;
this.param7CB.Value = 30F;
//
// GFLXMaterialEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -935,11 +935,11 @@
this.stPanel5.ResumeLayout(false);
this.stPanel4.ResumeLayout(false);
this.stTabControl2.ResumeLayout(false);
this.ParamsTabPage.ResumeLayout(false);
this.ParamsTabPage.PerformLayout();
this.TransformTabPage.ResumeLayout(false);
this.stPanel6.ResumeLayout(false);
this.stPanel6.PerformLayout();
this.ParamsTabPage.ResumeLayout(false);
this.ParamsTabPage.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.ResumeLayout(false);

View File

@ -138,11 +138,11 @@ namespace FirstPlugin.Forms
if (gflxTex.Params != null)
{
param1CB.Value = gflxTex.Params.Unknown1;
param2CB.Value = gflxTex.Params.Unknown2;
param3CB.Value = gflxTex.Params.Unknown3;
param4CB.Value = gflxTex.Params.Unknown4;
param5CB.Value = gflxTex.Params.Unknown5;
param6CB.Value = gflxTex.Params.Unknown6;
param2CB.Value = gflxTex.Params.WrapModeX;
param3CB.Value = gflxTex.Params.WrapModeY;
param4CB.Value = gflxTex.Params.WrapModeZ;
// param5CB.Value = gflxTex.Params.Unknown5;
// param6CB.Value = gflxTex.Params.Unknown6;
param7CB.Value = gflxTex.Params.Unknown7;
param8CB.Value = gflxTex.Params.Unknown8;
param9CB.Value = gflxTex.Params.lodBias;

View File

@ -132,6 +132,10 @@ namespace Toolbox.Library.IO
var jsonName = fbs + ".json";
var text = WriteJson(obj);
var fbsPath = Path.Combine(FlatPath, fbsName);
if (!File.Exists(fbsPath))
File.WriteAllBytes(fbsPath, GetSchema(fbs));
var jsonPath = Path.Combine(FlatPath, jsonName);
File.WriteAllText(jsonPath, text);
var args = GetArgumentsSerialize(jsonName, fbsName);

View File

@ -5,6 +5,12 @@ enum BoneType : uint {
HasSkinning = 1,
}
enum WrapMode : uint {
Repeat = 0,
Clamp = 1,
Mirror = 2,
}
enum VertexType : uint {
Position = 0,
Normal = 1,
@ -56,9 +62,9 @@ table Material {
Parameter1:int;
Parameter2:int;
Parameter3:int;
ShaderIndex:int;
Parameter4:int;
Parameter5:int;
Parameter6:int;
TextureMaps:[TextureMap];
Switches:[MatSwitch];
Values:[MatFloat];
@ -105,9 +111,9 @@ table TextureMap {
table TextureMapping {
Unknown1:uint;
Unknown2:uint;
Unknown3:uint;
Unknown4:uint;
WrapModeX:WrapMode;
WrapModeY:WrapMode;
WrapModeZ:WrapMode;
Unknown5:uint;
Unknown6:uint;
Unknown7:uint;

View File

@ -31,7 +31,7 @@ uniform int uvChannel;
// Texture Samplers
uniform sampler2D DiffuseMap;
uniform sampler2D BakeShadowMap;
uniform sampler2D AmbientMap;
uniform sampler2D NormalMap;
uniform sampler2D BakeLightMap;
uniform sampler2D UVTestPattern;
@ -48,7 +48,7 @@ uniform int HasDiffuse;
uniform int HasNormalMap;
uniform int HasSpecularMap;
uniform int HasShadowMap;
uniform int HasAmbientOcclusionMap;
uniform int HasAmbientMap;
uniform int HasLightMap;
uniform int HasEmissionMap;
uniform int HasDiffuseLayer;
@ -158,8 +158,17 @@ void main()
roughness = texture(RoughnessMap, f_texcoord0).r;
float ao = 1;
if (HasShadowMap == 1)
ao = texture(BakeShadowMap, f_texcoord1).r;
if (HasAmbientMap == 1)
{
vec2 ambientUV = f_texcoord0;
ambientUV.x *= ColorUVScaleU + ColorUVTranslateU;
ambientUV.y *= ColorUVScaleV + ColorUVTranslateV;
float intensity = texture(AmbientMap, ambientUV).r;
float unknown = texture(AmbientMap, ambientUV).g; //Unsually black
float ambient = texture(AmbientMap, ambientUV).b;
ao = ambient + 0.5;
}
vec3 emissionTerm = vec3(0);