From 1d5fa5585f08dd82a6722af3dd8ab360fd161151 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 21 Feb 2011 03:17:08 +0100 Subject: this is a pain in the ass --- TestApp/Main.cs | 3 ++- TestApp/RenderWindow.cs | 6 +++++- TestApp/TestApp.pidb | Bin 3039 -> 4285 bytes TestApp/bin/Debug/NW4RTools.dll | Bin 173568 -> 175616 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 93825 -> 94193 bytes TestApp/bin/Debug/TestApp.exe | Bin 5632 -> 5632 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 992 -> 994 bytes 7 files changed, 7 insertions(+), 2 deletions(-) (limited to 'TestApp') 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 index 4b3557d..1da622f 100644 Binary files a/TestApp/TestApp.pidb and b/TestApp/TestApp.pidb differ diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll index dbcb459..0fe74f3 100755 Binary files a/TestApp/bin/Debug/NW4RTools.dll and b/TestApp/bin/Debug/NW4RTools.dll differ diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb index b67ce24..f7eb0df 100644 Binary files a/TestApp/bin/Debug/NW4RTools.dll.mdb and b/TestApp/bin/Debug/NW4RTools.dll.mdb differ diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe index bafaf4c..b93d035 100755 Binary files a/TestApp/bin/Debug/TestApp.exe and b/TestApp/bin/Debug/TestApp.exe differ diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb index 3f3b216..9c7cd21 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3