protected override void LoadContent() { var factory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice); var thisAssembly = typeof(Game1).Assembly; _ModelTemplate = factory.LoadModelFromEmbeddedResource(thisAssembly, "CesiumMan.glb"); }
protected override void LoadContent() { var gltfFactory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice); _AvodadoTemplate = gltfFactory.LoadModel("Content\\Avocado.glb"); _BrainStemTemplate = gltfFactory.LoadModel("Content\\BrainStem.glb"); _CesiumManTemplate = gltfFactory.LoadModel("Content\\CesiumMan.glb"); _HauntedHouseTemplate = gltfFactory.LoadModel("Content\\haunted_house.glb"); _SharkTemplate = gltfFactory.LoadModel("Content\\shark.glb"); }
protected override void LoadContent() { var gltfFactory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice); var modelPath = SharpGLTF.Schema2.ModelRoot.Load($"Content{Path.DirectorySeparatorChar}WaterBottle.glb"); var contentMeshes = gltfFactory.ReadMeshContent(modelPath.LogicalMeshes.Take(1)); var factory = new MonoScene.Graphics.Pipeline.PBRMeshFactory(this.GraphicsDevice); _MeshCollection = factory.CreateMeshCollection(contentMeshes.Materials, contentMeshes.Meshes); }
protected override void LoadContent() { var factory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice); _ModelTemplate = factory.LoadModel("Content\\CesiumMan.glb"); }