1
0
mirror of synced 2025-02-20 12:41:10 +01:00

Fix errors

This commit is contained in:
KillzXGaming 2019-12-14 15:51:25 -05:00
parent 49cabdd508
commit 6d4570981b
8 changed files with 329 additions and 368 deletions

View File

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

View File

@ -14,6 +14,13 @@ namespace FlatBuffers.Gfbmdl
HasSkinning = 1,
};
public enum WrapMode : uint
{
Repeat = 0,
Clamp = 1,
Mirror = 2,
};
public enum VertexType : uint
{
Position = 0,
@ -175,9 +182,9 @@ namespace FlatBuffers.Gfbmdl
public int Parameter1 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter2 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter3 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter4 { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter5 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter6 { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int ShaderIndex { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter4 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Parameter5 { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public TextureMap? TextureMaps(int j) { int o = __p.__offset(26); return o != 0 ? (TextureMap?)(new TextureMap()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
public int TextureMapsLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } }
public MatSwitch? Switches(int j) { int o = __p.__offset(28); return o != 0 ? (MatSwitch?)(new MatSwitch()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
@ -202,9 +209,9 @@ namespace FlatBuffers.Gfbmdl
int Parameter1 = 0,
int Parameter2 = 0,
int Parameter3 = 0,
int ShaderIndex = 0,
int Parameter4 = 0,
int Parameter5 = 0,
int Parameter6 = 0,
VectorOffset TextureMapsOffset = default(VectorOffset),
VectorOffset SwitchesOffset = default(VectorOffset),
VectorOffset ValuesOffset = default(VectorOffset),
@ -222,9 +229,9 @@ namespace FlatBuffers.Gfbmdl
Material.AddValues(builder, ValuesOffset);
Material.AddSwitches(builder, SwitchesOffset);
Material.AddTextureMaps(builder, TextureMapsOffset);
Material.AddParameter6(builder, Parameter6);
Material.AddParameter5(builder, Parameter5);
Material.AddParameter4(builder, Parameter4);
Material.AddShaderIndex(builder, ShaderIndex);
Material.AddParameter3(builder, Parameter3);
Material.AddParameter2(builder, Parameter2);
Material.AddParameter1(builder, Parameter1);
@ -250,9 +257,9 @@ namespace FlatBuffers.Gfbmdl
public static void AddParameter1(FlatBufferBuilder builder, int Parameter1) { builder.AddInt(5, Parameter1, 0); }
public static void AddParameter2(FlatBufferBuilder builder, int Parameter2) { builder.AddInt(6, Parameter2, 0); }
public static void AddParameter3(FlatBufferBuilder builder, int Parameter3) { builder.AddInt(7, Parameter3, 0); }
public static void AddParameter4(FlatBufferBuilder builder, int Parameter4) { builder.AddInt(8, Parameter4, 0); }
public static void AddParameter5(FlatBufferBuilder builder, int Parameter5) { builder.AddInt(9, Parameter5, 0); }
public static void AddParameter6(FlatBufferBuilder builder, int Parameter6) { builder.AddInt(10, Parameter6, 0); }
public static void AddShaderIndex(FlatBufferBuilder builder, int ShaderIndex) { builder.AddInt(8, ShaderIndex, 0); }
public static void AddParameter4(FlatBufferBuilder builder, int Parameter4) { builder.AddInt(9, Parameter4, 0); }
public static void AddParameter5(FlatBufferBuilder builder, int Parameter5) { builder.AddInt(10, Parameter5, 0); }
public static void AddTextureMaps(FlatBufferBuilder builder, VectorOffset TextureMapsOffset) { builder.AddOffset(11, TextureMapsOffset.Value, 0); }
public static VectorOffset CreateTextureMapsVector(FlatBufferBuilder builder, Offset<TextureMap>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
public static VectorOffset CreateTextureMapsVectorBlock(FlatBufferBuilder builder, Offset<TextureMap>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
@ -524,24 +531,24 @@ namespace FlatBuffers.Gfbmdl
public TextureMapping __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public uint Unknown1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown3 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown4 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown5 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown6 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown7 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public uint Unknown8 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public WrapMode WrapModeX { get { int o = __p.__offset(6); return o != 0 ? (WrapMode)__p.bb.GetUint(o + __p.bb_pos) : WrapMode.Repeat; } }
public WrapMode WrapModeY { get { int o = __p.__offset(8); return o != 0 ? (WrapMode)__p.bb.GetUint(o + __p.bb_pos) : WrapMode.Repeat; } }
public WrapMode WrapModeZ { get { int o = __p.__offset(10); return o != 0 ? (WrapMode)__p.bb.GetUint(o + __p.bb_pos) : WrapMode.Repeat; } }
public float Unknown5 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
public float Unknown6 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
public float Unknown7 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
public float Unknown8 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
public float LodBias { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
public static Offset<TextureMapping> CreateTextureMapping(FlatBufferBuilder builder,
uint Unknown1 = 0,
uint Unknown2 = 0,
uint Unknown3 = 0,
uint Unknown4 = 0,
uint Unknown5 = 0,
uint Unknown6 = 0,
uint Unknown7 = 0,
uint Unknown8 = 0,
WrapMode WrapModeX = WrapMode.Repeat,
WrapMode WrapModeY = WrapMode.Repeat,
WrapMode WrapModeZ = WrapMode.Repeat,
float Unknown5 = 0.0f,
float Unknown6 = 0.0f,
float Unknown7 = 0.0f,
float Unknown8 = 0.0f,
float lodBias = 0.0f)
{
builder.StartObject(9);
@ -550,22 +557,22 @@ namespace FlatBuffers.Gfbmdl
TextureMapping.AddUnknown7(builder, Unknown7);
TextureMapping.AddUnknown6(builder, Unknown6);
TextureMapping.AddUnknown5(builder, Unknown5);
TextureMapping.AddUnknown4(builder, Unknown4);
TextureMapping.AddUnknown3(builder, Unknown3);
TextureMapping.AddUnknown2(builder, Unknown2);
TextureMapping.AddWrapModeZ(builder, WrapModeZ);
TextureMapping.AddWrapModeY(builder, WrapModeY);
TextureMapping.AddWrapModeX(builder, WrapModeX);
TextureMapping.AddUnknown1(builder, Unknown1);
return TextureMapping.EndTextureMapping(builder);
}
public static void StartTextureMapping(FlatBufferBuilder builder) { builder.StartObject(9); }
public static void AddUnknown1(FlatBufferBuilder builder, uint Unknown1) { builder.AddUint(0, Unknown1, 0); }
public static void AddUnknown2(FlatBufferBuilder builder, uint Unknown2) { builder.AddUint(1, Unknown2, 0); }
public static void AddUnknown3(FlatBufferBuilder builder, uint Unknown3) { builder.AddUint(2, Unknown3, 0); }
public static void AddUnknown4(FlatBufferBuilder builder, uint Unknown4) { builder.AddUint(3, Unknown4, 0); }
public static void AddUnknown5(FlatBufferBuilder builder, uint Unknown5) { builder.AddUint(4, Unknown5, 0); }
public static void AddUnknown6(FlatBufferBuilder builder, uint Unknown6) { builder.AddUint(5, Unknown6, 0); }
public static void AddUnknown7(FlatBufferBuilder builder, uint Unknown7) { builder.AddUint(6, Unknown7, 0); }
public static void AddUnknown8(FlatBufferBuilder builder, uint Unknown8) { builder.AddUint(7, Unknown8, 0); }
public static void AddWrapModeX(FlatBufferBuilder builder, WrapMode WrapModeX) { builder.AddUint(1, (uint)WrapModeX, 0); }
public static void AddWrapModeY(FlatBufferBuilder builder, WrapMode WrapModeY) { builder.AddUint(2, (uint)WrapModeY, 0); }
public static void AddWrapModeZ(FlatBufferBuilder builder, WrapMode WrapModeZ) { builder.AddUint(3, (uint)WrapModeZ, 0); }
public static void AddUnknown5(FlatBufferBuilder builder, float Unknown5) { builder.AddFloat(4, Unknown5, 0.0f); }
public static void AddUnknown6(FlatBufferBuilder builder, float Unknown6) { builder.AddFloat(5, Unknown6, 0.0f); }
public static void AddUnknown7(FlatBufferBuilder builder, float Unknown7) { builder.AddFloat(6, Unknown7, 0.0f); }
public static void AddUnknown8(FlatBufferBuilder builder, float Unknown8) { builder.AddFloat(7, Unknown8, 0.0f); }
public static void AddLodBias(FlatBufferBuilder builder, float lodBias) { builder.AddFloat(8, lodBias, 0.0f); }
public static Offset<TextureMapping> EndTextureMapping(FlatBufferBuilder builder)
{
@ -922,6 +929,4 @@ namespace FlatBuffers.Gfbmdl
return new Offset<Vector4>(builder.Offset);
}
};
}

View File

@ -105,7 +105,7 @@ namespace FirstPlugin
values.Add(0);
}
break;
case VertexType.Binormal:
case VertexType.Bitangent:
values.Add(mesh.vertices[v].bitan.X);
values.Add(mesh.vertices[v].bitan.Y);
values.Add(mesh.vertices[v].bitan.Z);
@ -155,7 +155,7 @@ namespace FirstPlugin
else
throw new Exception($"Unknown Combination! {attribute.VertexType} {attribute.BufferFormat}");
break;
case VertexType.Binormal:
case VertexType.Bitangent:
if (attribute.BufferFormat == (uint)BufferFormat.HalfFloat)
VertBufferStride += 0x08;
else if (attribute.BufferFormat == (uint)BufferFormat.Float)
@ -290,9 +290,9 @@ namespace FirstPlugin
vertex.col2 = colors2 / 255f;
break;
case VertexType.Binormal:
var binormals = ParseBuffer(reader, attribute.BufferFormat, attribute.VertexType, attribute.ElementCount);
vertex.bitan = new OpenTK.Vector4(binormals.X, binormals.Y, binormals.Z, binormals.W);
case VertexType.Bitangent:
var bitans = ParseBuffer(reader, attribute.BufferFormat, attribute.VertexType, attribute.ElementCount);
vertex.bitan = new OpenTK.Vector4(bitans.X, bitans.Y, bitans.Z, bitans.W);
break;
case VertexType.Tangents:
var tans = ParseBuffer(reader, attribute.BufferFormat, attribute.VertexType, attribute.ElementCount);
@ -341,7 +341,7 @@ namespace FirstPlugin
throw new Exception($"Unknown Combination! {AttributeType} {Format}");
}
}
else if (AttributeType == VertexType.Binormal)
else if (AttributeType == VertexType.Bitangent)
{
switch (Format)
{

View File

@ -142,12 +142,12 @@ namespace FirstPlugin
public GFMDLStructs.BoundingBox GenerateBoundingBox(STGenericObject mesh)
{
float minX = 0;
float minY = 0;
float minZ = 0;
float maxX = 0;
float maxY = 0;
float maxZ = 0;
float minX = float.MaxValue;
float minY = float.MaxValue;
float minZ = float.MaxValue;
float maxX = float.MinValue;
float maxY = float.MinValue;
float maxZ = float.MinValue;
for (int v = 0; v < mesh.vertices.Count; v++)
{
@ -171,12 +171,12 @@ namespace FirstPlugin
public void GenerateBoundingBox()
{
float minX = 0;
float minY = 0;
float minZ = 0;
float maxX = 0;
float maxY = 0;
float maxZ = 0;
float minX = float.MaxValue;
float minY = float.MaxValue;
float minZ = float.MaxValue;
float maxX = float.MinValue;
float maxY = float.MinValue;
float maxZ = float.MinValue;
foreach (var mesh in GenericMeshes)
{
@ -322,12 +322,9 @@ namespace FirstPlugin
switch (tex.Sampler)
{
case "Texture0112`":
case "BaseColor0":
matTexture.Type = STGenericMatTexture.TextureType.Diffuse;
break;
case "Col0Tex":
matTexture.Type = STGenericMatTexture.TextureType.Diffuse;
break;
case "L0ColTex":
matTexture.Type = STGenericMatTexture.TextureType.Diffuse;
break;

View File

@ -11,7 +11,7 @@ namespace FirstPlugin.GFMDLStructs
{
Position = 0,
Normal = 1,
Binormal = 2,
Tangents = 2,
UV1 = 3,
UV2 = 4,
UV3 = 5,
@ -22,7 +22,7 @@ namespace FirstPlugin.GFMDLStructs
Color4 = 10,
BoneID = 11,
BoneWeight = 12,
Tangents = 13,
Bitangent = 13,
Unknown2 = 14,
}
@ -109,10 +109,10 @@ namespace FirstPlugin.GFMDLStructs
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; }
public uint Unknown8 { get; set; }
public float Unknown5 { get; set; }
public float Unknown6 { get; set; }
public float Unknown7 { get; set; }
public float Unknown8 { get; set; }
public float lodBias { get; set; }
}

View File

@ -43,16 +43,10 @@
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();
@ -65,6 +59,15 @@
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.stPanel7 = new Toolbox.Library.Forms.STPanel();
this.param4CB = new BarSlider.BarSlider();
this.param3CB = new BarSlider.BarSlider();
this.param2CB = new BarSlider.BarSlider();
this.wrapModeUCB = new Toolbox.Library.Forms.STComboBox();
this.wrapModeVCB = new Toolbox.Library.Forms.STComboBox();
this.wrapModeWCB = new Toolbox.Library.Forms.STComboBox();
this.stLabel1 = new Toolbox.Library.Forms.STLabel();
this.stLabel2 = new Toolbox.Library.Forms.STLabel();
this.stLabel3 = new Toolbox.Library.Forms.STLabel();
this.stTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.stPanel1.SuspendLayout();
@ -252,10 +255,13 @@
//
// ParamsTabPage
//
this.ParamsTabPage.Controls.Add(this.param9CB);
this.ParamsTabPage.Controls.Add(this.param8CB);
this.ParamsTabPage.Controls.Add(this.stLabel3);
this.ParamsTabPage.Controls.Add(this.stLabel2);
this.ParamsTabPage.Controls.Add(this.stLabel1);
this.ParamsTabPage.Controls.Add(this.wrapModeWCB);
this.ParamsTabPage.Controls.Add(this.wrapModeVCB);
this.ParamsTabPage.Controls.Add(this.wrapModeUCB);
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);
@ -271,92 +277,6 @@
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)))));
@ -376,7 +296,7 @@
this.param6CB.IncrementAmount = 0.01F;
this.param6CB.InputName = "Param6";
this.param6CB.LargeChange = 5F;
this.param6CB.Location = new System.Drawing.Point(6, 218);
this.param6CB.Location = new System.Drawing.Point(6, 318);
this.param6CB.Maximum = 9999999F;
this.param6CB.Minimum = -9999999F;
this.param6CB.Name = "param6CB";
@ -400,49 +320,6 @@
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)))));
@ -462,7 +339,7 @@
this.param5CB.IncrementAmount = 0.01F;
this.param5CB.InputName = "Param5";
this.param5CB.LargeChange = 5F;
this.param5CB.Location = new System.Drawing.Point(6, 187);
this.param5CB.Location = new System.Drawing.Point(6, 287);
this.param5CB.Maximum = 9999999F;
this.param5CB.Minimum = -9999999F;
this.param5CB.Name = "param5CB";
@ -502,135 +379,6 @@
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)))));
@ -650,7 +398,7 @@
this.param1CB.IncrementAmount = 0.01F;
this.param1CB.InputName = "Param1";
this.param1CB.LargeChange = 5F;
this.param1CB.Location = new System.Drawing.Point(6, 63);
this.param1CB.Location = new System.Drawing.Point(6, 163);
this.param1CB.Maximum = 9999999F;
this.param1CB.Minimum = -9999999F;
this.param1CB.Name = "param1CB";
@ -916,6 +664,198 @@
this.stPanel7.Size = new System.Drawing.Size(561, 734);
this.stPanel7.TabIndex = 0;
//
// 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, 256);
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;
//
// 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, 225);
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;
//
// 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, 194);
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;
//
// wrapModeUCB
//
this.wrapModeUCB.BorderColor = System.Drawing.Color.Empty;
this.wrapModeUCB.BorderStyle = System.Windows.Forms.ButtonBorderStyle.Solid;
this.wrapModeUCB.ButtonColor = System.Drawing.Color.Empty;
this.wrapModeUCB.FormattingEnabled = true;
this.wrapModeUCB.IsReadOnly = false;
this.wrapModeUCB.Location = new System.Drawing.Point(61, 58);
this.wrapModeUCB.Name = "wrapModeUCB";
this.wrapModeUCB.Size = new System.Drawing.Size(94, 21);
this.wrapModeUCB.TabIndex = 17;
//
// wrapModeVCB
//
this.wrapModeVCB.BorderColor = System.Drawing.Color.Empty;
this.wrapModeVCB.BorderStyle = System.Windows.Forms.ButtonBorderStyle.Solid;
this.wrapModeVCB.ButtonColor = System.Drawing.Color.Empty;
this.wrapModeVCB.FormattingEnabled = true;
this.wrapModeVCB.IsReadOnly = false;
this.wrapModeVCB.Location = new System.Drawing.Point(61, 85);
this.wrapModeVCB.Name = "wrapModeVCB";
this.wrapModeVCB.Size = new System.Drawing.Size(94, 21);
this.wrapModeVCB.TabIndex = 18;
//
// wrapModeWCB
//
this.wrapModeWCB.BorderColor = System.Drawing.Color.Empty;
this.wrapModeWCB.BorderStyle = System.Windows.Forms.ButtonBorderStyle.Solid;
this.wrapModeWCB.ButtonColor = System.Drawing.Color.Empty;
this.wrapModeWCB.FormattingEnabled = true;
this.wrapModeWCB.IsReadOnly = false;
this.wrapModeWCB.Location = new System.Drawing.Point(61, 112);
this.wrapModeWCB.Name = "wrapModeWCB";
this.wrapModeWCB.Size = new System.Drawing.Size(94, 21);
this.wrapModeWCB.TabIndex = 19;
//
// stLabel1
//
this.stLabel1.AutoSize = true;
this.stLabel1.Location = new System.Drawing.Point(6, 61);
this.stLabel1.Name = "stLabel1";
this.stLabel1.Size = new System.Drawing.Size(44, 13);
this.stLabel1.TabIndex = 20;
this.stLabel1.Text = "Wrap U";
//
// stLabel2
//
this.stLabel2.AutoSize = true;
this.stLabel2.Location = new System.Drawing.Point(6, 88);
this.stLabel2.Name = "stLabel2";
this.stLabel2.Size = new System.Drawing.Size(43, 13);
this.stLabel2.TabIndex = 21;
this.stLabel2.Text = "Wrap V";
//
// stLabel3
//
this.stLabel3.AutoSize = true;
this.stLabel3.Location = new System.Drawing.Point(6, 115);
this.stLabel3.Name = "stLabel3";
this.stLabel3.Size = new System.Drawing.Size(47, 13);
this.stLabel3.TabIndex = 22;
this.stLabel3.Text = "Wrap W";
//
// GFLXMaterialEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -956,9 +896,6 @@
private Toolbox.Library.Forms.STDropDownPanel stDropDownPanel2;
private Toolbox.Library.Forms.ListViewCustom listViewCustom1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private BarSlider.BarSlider param4CB;
private BarSlider.BarSlider param3CB;
private BarSlider.BarSlider param2CB;
private BarSlider.BarSlider param1CB;
private Toolbox.Library.Forms.UVViewport uvViewport1;
private BarSlider.BarSlider scaleYUD;
@ -980,9 +917,15 @@
private Toolbox.Library.Forms.STPanel stPanel7;
private Toolbox.Library.Forms.STTextBox transformParamTB;
private BarSlider.BarSlider param5CB;
private BarSlider.BarSlider param9CB;
private BarSlider.BarSlider param8CB;
private BarSlider.BarSlider param6CB;
private BarSlider.BarSlider param7CB;
private BarSlider.BarSlider param4CB;
private BarSlider.BarSlider param2CB;
private BarSlider.BarSlider param3CB;
private Toolbox.Library.Forms.STLabel stLabel3;
private Toolbox.Library.Forms.STLabel stLabel2;
private Toolbox.Library.Forms.STLabel stLabel1;
private Toolbox.Library.Forms.STComboBox wrapModeWCB;
private Toolbox.Library.Forms.STComboBox wrapModeVCB;
private Toolbox.Library.Forms.STComboBox wrapModeUCB;
}
}

View File

@ -137,15 +137,21 @@ namespace FirstPlugin.Forms
if (gflxTex.Params != null)
{
wrapModeUCB.LoadEnum(typeof(FlatBuffers.Gfbmdl.WrapMode));
wrapModeUCB.SelectedItem = (FlatBuffers.Gfbmdl.WrapMode)gflxTex.Params.WrapModeX;
wrapModeVCB.LoadEnum(typeof(FlatBuffers.Gfbmdl.WrapMode));
wrapModeVCB.SelectedItem = (FlatBuffers.Gfbmdl.WrapMode)gflxTex.Params.WrapModeY;
wrapModeWCB.LoadEnum(typeof(FlatBuffers.Gfbmdl.WrapMode));
wrapModeWCB.SelectedItem = (FlatBuffers.Gfbmdl.WrapMode)gflxTex.Params.WrapModeZ;
param1CB.Value = gflxTex.Params.Unknown1;
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;
param2CB.Value = gflxTex.Params.Unknown5;
param3CB.Value = gflxTex.Params.Unknown6;
param4CB.Value = gflxTex.Params.Unknown7;
param5CB.Value = gflxTex.Params.Unknown8;
param6CB.Value = gflxTex.Params.lodBias;
}
if (tex.Type == STGenericMatTexture.TextureType.Diffuse) {

View File

@ -69,6 +69,8 @@ namespace FirstPlugin.Forms
material = importedMat;
}
//Check if color 2 is used (if any vertex colors are enabled)
bool color2Unused = meshes[i].HasVertColors && !meshes[i].HasVertColors2;
Settings.MeshSettings.Add(new GfbmdlImportSettings.MeshSetting()
{
HasColor1 = meshes[i].HasVertColors,
@ -79,8 +81,9 @@ namespace FirstPlugin.Forms
HasNormals = meshes[i].HasNrm,
HasBoneIndices = meshes[i].HasIndices,
HasWeights = meshes[i].HasWeights,
HasBitangents = meshes[i].HasUv0,
HasTangents = meshes[i].HasUv0,
Material = material,
SetNormalsToColorChannel2 = color2Unused,
});
listViewCustom1.Items.Add($"{meshes[i].ObjectName}");
}
@ -155,6 +158,10 @@ namespace FirstPlugin.Forms
case VertexType.Color2:
setting.Color2Format = (BufferFormat)attribute.BufferFormat;
setting.HasColor2 = true;
bool hasColors = mesh.vertices.Any(x => x.col2 != OpenTK.Vector4.Zero);
if (!hasColors)
setting.SetNormalsToColorChannel2 = true;
break;
case VertexType.UV1:
setting.TexCoord1Format = (BufferFormat)attribute.BufferFormat;
@ -202,7 +209,7 @@ namespace FirstPlugin.Forms
setting.TangentsFormat = (BufferFormat)attribute.BufferFormat;
setting.HasTangents = true;
break;
case VertexType.Binormal:
case VertexType.Bitangent:
setting.BitangentnFormat = (BufferFormat)attribute.BufferFormat;
setting.HasBitangents = true;
break;
@ -210,6 +217,7 @@ namespace FirstPlugin.Forms
}
}
}
Loaded = true;
}
@ -248,6 +256,9 @@ namespace FirstPlugin.Forms
settings.HasBitangents = chkBitangents.Checked;
settings.HasTexCoord1 = chkHasUv1.Checked;
settings.HasTexCoord2 = chkHasUv2.Checked;
settings.SetNormalsToColorChannel2 = chkSetNormalsToColorChannel.Checked;
if (settings.SetNormalsToColorChannel2)
chkUseColor2.Checked = true;
settings.HasColor1 = chkUseColor1.Checked;
settings.HasColor2 = chkUseColor2.Checked;
settings.HasBoneIndices = chkUseBoneIndex.Checked;
@ -273,10 +284,11 @@ namespace FirstPlugin.Forms
chkHasUv1.Checked = settings.HasTexCoord1;
chkHasUv2.Checked = settings.HasTexCoord2;
chkUseColor1.Checked = settings.HasColor1;
chkUseColor2.Checked = settings.HasColor2;
chkUseColor2.Checked = settings.HasColor2 || settings.SetNormalsToColorChannel2;
chkUseBoneIndex.Checked = settings.HasBoneIndices;
chkUseBoneWeights.Checked = settings.HasWeights;
chkTangents.Checked = settings.HasTangents;
chkSetNormalsToColorChannel.Checked = settings.SetNormalsToColorChannel2;
positionFormatCB.SelectedItem = settings.PositionFormat;
normalFormatCB.SelectedItem = settings.NormalFormat;
@ -300,13 +312,11 @@ namespace FirstPlugin.Forms
ofd.DefaultExt = "json";
if (ofd.ShowDialog() == DialogResult.OK)
{
try {
Newtonsoft.Json.JsonConvert.DeserializeObject<Material>(
System.IO.File.ReadAllText(ofd.FileName));
}
catch (Exception ex)
{
STErrorDialog.Show("Failed to load material!", "GFBMDL Importer", ex.ToString());
var mat = Newtonsoft.Json.JsonConvert.DeserializeObject<Material>(
System.IO.File.ReadAllText(ofd.FileName));
if (mat == null) {
MessageBox.Show("Invalid material file!", "GFBMDL Importer");
return;
}