diff options
author | Treeki <treeki@gmail.com> | 2011-02-21 03:17:08 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-21 03:17:08 +0100 |
commit | 1d5fa5585f08dd82a6722af3dd8ab360fd161151 (patch) | |
tree | 588245bb84e9155bbaa39b800891f880cc668d79 /TestApp | |
parent | b0760b28807b31cc1403584265c07feb87ac4887 (diff) | |
download | nw4rtools-1d5fa5585f08dd82a6722af3dd8ab360fd161151.tar.gz nw4rtools-1d5fa5585f08dd82a6722af3dd8ab360fd161151.zip |
this is a pain in the ass
Diffstat (limited to '')
-rw-r--r-- | TestApp/Main.cs | 3 | ||||
-rw-r--r-- | TestApp/RenderWindow.cs | 6 | ||||
-rw-r--r-- | TestApp/TestApp.pidb | bin | 3039 -> 4285 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/NW4RTools.dll | bin | 173568 -> 175616 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/NW4RTools.dll.mdb | bin | 93825 -> 94193 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/TestApp.exe | bin | 5632 -> 5632 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/TestApp.exe.mdb | bin | 992 -> 994 bytes |
7 files changed, 7 insertions, 2 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs index 447f556..150b5a7 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -11,9 +11,10 @@ namespace TestApp { public static void Main(string[] args) { string mdlPath = "/home/me/Games/Newer/ModelRev/"; - string mdlName = "CS_W1"; + //string mdlName = "CS_W1"; //string mdlName = "bgB_4502"; //string mdlName = "cobKoopaCastle"; + string mdlName = "YB_model"; string whatever = (mdlName == "CS_W2" || mdlName == "CS_W3" || mdlName == "CS_W6") ? "a" : ""; diff --git a/TestApp/RenderWindow.cs b/TestApp/RenderWindow.cs index 2dfe1ec..64627a1 100644 --- a/TestApp/RenderWindow.cs +++ b/TestApp/RenderWindow.cs @@ -24,6 +24,9 @@ namespace TestApp { GL.ClearColor(0.1f, 0.2f, 0.5f, 0.0f); GL.Enable(EnableCap.DepthTest); + GL.Enable(EnableCap.Blend); + GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha); + m_glModel.Prepare(Context); } @@ -42,7 +45,8 @@ namespace TestApp { GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); - Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 1200, 500), Vector3.UnitZ, Vector3.UnitY); + //Matrix4 modelview = Matrix4.LookAt(new Vector3(1000, 600, 1000), new Vector3(1000, 0, 0), Vector3.UnitY); + Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 0, 200), new Vector3(0, 0, 0), Vector3.UnitY); GL.MatrixMode(MatrixMode.Modelview); GL.LoadMatrix(ref modelview); diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb Binary files differindex 4b3557d..1da622f 100644 --- a/TestApp/TestApp.pidb +++ b/TestApp/TestApp.pidb diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll Binary files differindex dbcb459..0fe74f3 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 b67ce24..f7eb0df 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 bafaf4c..b93d035 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 3f3b216..9c7cd21 100644 --- a/TestApp/bin/Debug/TestApp.exe.mdb +++ b/TestApp/bin/Debug/TestApp.exe.mdb |