summaryrefslogtreecommitdiff
path: root/NW4RTools/Models
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-03 22:01:38 +0100
committerTreeki <treeki@gmail.com>2011-03-03 22:01:38 +0100
commita5b6dc1789f2e06a26fe6a0510aee04aeccdc70b (patch)
tree15065b84de58b2db03527da76b32f9b4b3c23c98 /NW4RTools/Models
parentb28711d999c86c40a11f61846ab15685c2fc172b (diff)
downloadnw4rtools-a5b6dc1789f2e06a26fe6a0510aee04aeccdc70b.tar.gz
nw4rtools-a5b6dc1789f2e06a26fe6a0510aee04aeccdc70b.zip
tidying up a bit, also it compiles now
Diffstat (limited to 'NW4RTools/Models')
-rw-r--r--NW4RTools/Models/Material.cs5
-rw-r--r--NW4RTools/Models/Model.cs11
-rw-r--r--NW4RTools/Models/Shape.cs3
3 files changed, 19 insertions, 0 deletions
diff --git a/NW4RTools/Models/Material.cs b/NW4RTools/Models/Material.cs
index 9e90348..0bf0acc 100644
--- a/NW4RTools/Models/Material.cs
+++ b/NW4RTools/Models/Material.cs
@@ -58,6 +58,11 @@ namespace NW4RTools.Models {
public byte[] TexCoordGenDL;
public Material() {
+ IndirectTexMtxCalcMethod1 = new byte[4];
+ IndirectTexMtxCalcMethod2 = new byte[4];
+ TexObj = new byte[8][];
+ // todo
+ TextureInfos = new List<TextureInfo>();
}
}
}
diff --git a/NW4RTools/Models/Model.cs b/NW4RTools/Models/Model.cs
index 71edaf3..7c7e912 100644
--- a/NW4RTools/Models/Model.cs
+++ b/NW4RTools/Models/Model.cs
@@ -40,6 +40,17 @@ namespace NW4RTools.Models {
public Model() {
+ Bytecode = new ResDict<ByteCode>();
+ Nodes = new ResDict<Node>();
+ VtxPosData = new ResDict<VertexPosData>();
+ VtxNrmData = new ResDict<VertexNrmData>();
+ VtxClrData = new ResDict<VertexClrData>();
+ VtxTexCoordData = new ResDict<VertexTexCoordData>();
+ Materials = new ResDict<Material>();
+ Shaders = new ResDict<Shader>();
+ Shapes = new ResDict<Shape>();
+ PairingLookupByTexture = new ResDict<List<TexMatPairing>>();
+ PairingLookupByPalette = new ResDict<List<TexMatPairing>>();
}
}
}
diff --git a/NW4RTools/Models/Shape.cs b/NW4RTools/Models/Shape.cs
index 87bf370..93ff70b 100644
--- a/NW4RTools/Models/Shape.cs
+++ b/NW4RTools/Models/Shape.cs
@@ -24,6 +24,9 @@ namespace NW4RTools.Models {
public UInt16[] ExtraData;
public Shape() {
+ Unk = new byte[12];
+ ClrData = new VertexClrData[2];
+ TexCoordData = new VertexTexCoordData[8];
}
}
}