Exemple #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // call LoadContent on all used components that implement it.
            testRasterizer.loadContent(GraphicsDevice, Content);

            // Load a triangle mesh.
            testMesh = new TriangleMesh("imrod_walk_high", Content);

            // Create a BFSOctree out of that mesh.
            testObj = new Object3D(testMesh.toBFSOctree(7), false);
            // Store the octree into a binary file.
            //testObj.getData().export("imrod.asvo");
            testObj.rotate(Vector3.UnitX, MathHelper.PiOver2);

            System.GC.Collect();
            ks = Keyboard.GetState();
        }