From 1486ba6625452b0765502b6a72849191b300cbab Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 15 Oct 2020 18:20:41 -0700 Subject: [PATCH] testing beau's toon export --- Kav | 2 +- KavTest/Content/ToonShadeRuins.glb | 3 ++ KavTest/KavTestGame.cs | 73 ++++++++++++++++++------------ 3 files changed, 47 insertions(+), 31 deletions(-) create mode 100644 KavTest/Content/ToonShadeRuins.glb diff --git a/Kav b/Kav index 1f10698..19a6198 160000 --- a/Kav +++ b/Kav @@ -1 +1 @@ -Subproject commit 1f10698811a57b11d343dee62a47ec1b5610b626 +Subproject commit 19a61985ca25a7562a7f62e03186f0ccfdc1c8ef diff --git a/KavTest/Content/ToonShadeRuins.glb b/KavTest/Content/ToonShadeRuins.glb new file mode 100644 index 0000000..1bb4294 --- /dev/null +++ b/KavTest/Content/ToonShadeRuins.glb @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7354917c7556bc5d6494f036215b6aad7a3303e27af084901faf5f4a3bdf7323 +size 1729868 diff --git a/KavTest/KavTestGame.cs b/KavTest/KavTestGame.cs index ca6689e..48e8dad 100644 --- a/KavTest/KavTestGame.cs +++ b/KavTest/KavTestGame.cs @@ -111,6 +111,14 @@ namespace KavTest ) ); + var toonShadeRuinsModel = Kav.ModelLoader.Load( + GraphicsDevice, + Smuggler.Importer.ImportGLB( + GraphicsDevice, + File.OpenRead("Content/ToonShadeRuins.glb") + ) + ); + WorldBuilder.AddEngine(new InputEngine(this)); WorldBuilder.AddEngine(new AngularVelocityEngine()); WorldBuilder.AddEngine(new MoveAlongCurve3DEngine()); @@ -137,40 +145,45 @@ namespace KavTest // new Vector3(-1, 1, 1) // )); - WorldBuilder.SendMessage(new StaticModelSpawnMessage( - new Transform3D(new Vector3(0, 1, 0), Quaternion.Identity, new Vector3(1f, 1f, 1f)), - rustyBallModel - )); + // WorldBuilder.SendMessage(new StaticModelSpawnMessage( + // new Transform3D(new Vector3(0, 1, 0), Quaternion.Identity, new Vector3(1f, 1f, 1f)), + // rustyBallModel + // )); - WorldBuilder.SendMessage(new StaticModelSpawnMessage( - new Transform3D(new Vector3(0, -3, 0), Quaternion.Identity, new Vector3(10f, 1f, 10f)), - floorModel - )); + // WorldBuilder.SendMessage(new StaticModelSpawnMessage( + // new Transform3D(new Vector3(0, -3, 0), Quaternion.Identity, new Vector3(10f, 1f, 10f)), + // floorModel + // )); - WorldBuilder.SendMessage(new StaticModelSpawnMessage( - new Transform3D( - new Vector3(-3, 1, 0), - Quaternion.CreateFromAxisAngle( - Vector3.Right, - -Microsoft.Xna.Framework.MathHelper.PiOver2 - ), - new Vector3(1f, 1f, 1f) - ), - blueTorusModel - )); + // WorldBuilder.SendMessage(new StaticModelSpawnMessage( + // new Transform3D( + // new Vector3(-3, 1, 0), + // Quaternion.CreateFromAxisAngle( + // Vector3.Right, + // -Microsoft.Xna.Framework.MathHelper.PiOver2 + // ), + // new Vector3(1f, 1f, 1f) + // ), + // blueTorusModel + // )); - WorldBuilder.SendMessage(new StaticModelSpawnMessage( - new Transform3D( - new Vector3(3, 1, 0), - Quaternion.CreateFromAxisAngle( - Vector3.Right, - -Microsoft.Xna.Framework.MathHelper.PiOver2 - ), - new Vector3(1f, 1f, 1f) - ), - cubeModel - )); + // WorldBuilder.SendMessage(new StaticModelSpawnMessage( + // new Transform3D( + // new Vector3(3, 1, 0), + // Quaternion.CreateFromAxisAngle( + // Vector3.Right, + // -Microsoft.Xna.Framework.MathHelper.PiOver2 + // ), + // new Vector3(1f, 1f, 1f) + // ), + // cubeModel + // )); + WorldBuilder.SendMessage(new StaticModelSpawnMessage( + Transform3D.Identity, + toonShadeRuinsModel + )); + for (var i = 0; i < 1; i++) { var start = RandomHelper.RandomVector3(-5, 5);