diff options
author | Treeki <treeki@gmail.com> | 2011-03-19 05:44:17 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-03-19 05:44:17 +0100 |
commit | 5affce95e2689ba72c55ca1c18a6a75a1786979e (patch) | |
tree | 6feb14b6698870ef32ab2280e39f724786eaff25 | |
parent | 6893a74fad0c58fceda13088bd5bd585950931b9 (diff) | |
download | nw4rtools-5affce95e2689ba72c55ca1c18a6a75a1786979e.tar.gz nw4rtools-5affce95e2689ba72c55ca1c18a6a75a1786979e.zip |
fixed! turns out the issue was in the 8-bit index optimisation, not materials
Diffstat (limited to '')
-rwxr-xr-x | NW4RTools/ObjImporter.cs | 8 | ||||
-rwxr-xr-x | NW4RTools/bin/Debug/NW4RTools.dll | bin | 237568 -> 237568 bytes | |||
-rw-r--r-- | NW4RTools/bin/Debug/NW4RTools.dll.mdb | bin | 114593 -> 114610 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/NW4RTools.dll | bin | 237568 -> 237568 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/NW4RTools.dll.mdb | bin | 114593 -> 114610 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/TestApp.exe | bin | 7680 -> 7680 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/TestApp.exe.mdb | bin | 1300 -> 1300 bytes |
7 files changed, 8 insertions, 0 deletions
diff --git a/NW4RTools/ObjImporter.cs b/NW4RTools/ObjImporter.cs index 7dfe043..dc128ce 100755 --- a/NW4RTools/ObjImporter.cs +++ b/NW4RTools/ObjImporter.cs @@ -785,6 +785,14 @@ namespace NW4RTools { else vtxSpecs = 0 | (1 << 2) | (1 << 4); + // setting up Unk in the hopes it will work, I think this is what it's for.. + var unkStream = new OutputStream(); + unkStream.WriteUInt32(vd1); + unkStream.WriteUInt32(vd2); + unkStream.WriteUInt32(vtxSpecs); + shape.Unk = unkStream.GetBuffer(); + + // now make the display list var dl1 = new DisplayListWriter(); dl1.AddPadding(10); dl1.LoadCPReg(0x50, vd1); diff --git a/NW4RTools/bin/Debug/NW4RTools.dll b/NW4RTools/bin/Debug/NW4RTools.dll Binary files differindex 0f298cf..111c9f0 100755 --- a/NW4RTools/bin/Debug/NW4RTools.dll +++ b/NW4RTools/bin/Debug/NW4RTools.dll diff --git a/NW4RTools/bin/Debug/NW4RTools.dll.mdb b/NW4RTools/bin/Debug/NW4RTools.dll.mdb Binary files differindex c7a54e3..83824f2 100644 --- a/NW4RTools/bin/Debug/NW4RTools.dll.mdb +++ b/NW4RTools/bin/Debug/NW4RTools.dll.mdb diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll Binary files differindex 0f298cf..111c9f0 100755 --- a/TestApp/bin/Debug/NW4RTools.dll +++ b/TestApp/bin/Debug/NW4RTools.dll diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb Binary files differindex c7a54e3..83824f2 100644 --- a/TestApp/bin/Debug/NW4RTools.dll.mdb +++ b/TestApp/bin/Debug/NW4RTools.dll.mdb diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe Binary files differindex 637548b..4e6e71a 100755 --- a/TestApp/bin/Debug/TestApp.exe +++ b/TestApp/bin/Debug/TestApp.exe diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb Binary files differindex 4b7be18..f675c74 100644 --- a/TestApp/bin/Debug/TestApp.exe.mdb +++ b/TestApp/bin/Debug/TestApp.exe.mdb |