Пример #1
0
        protected override void LoadContent()
        {
            var factory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice);

            var thisAssembly = typeof(Game1).Assembly;

            _ModelTemplate = factory.LoadModelFromEmbeddedResource(thisAssembly, "CesiumMan.glb");
        }
Пример #2
0
        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");
        }
Пример #3
0
        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);
        }
Пример #4
0
        protected override void LoadContent()
        {
            var factory = new MonoScene.Graphics.Pipeline.GltfModelFactory(this.GraphicsDevice);

            _ModelTemplate = factory.LoadModel("Content\\CesiumMan.glb");
        }