Ejemplo n.º 1
0
        public static void Init(TestContext context)
        {
            // Loads COLLADA document for testing
            XmlDocument apcDocument = TestBase.LoadDocument("APC_animation.DAE");

            SkeletonImporter importer = new SkeletonImporter();

            importer.Import(apcDocument.DocumentElement, apcModel);
        }
Ejemplo n.º 2
0
        public static void Init(TestContext context)
        {
            // Loads COLLADA document for testing
            XmlDocument apcDocument = TestBase.LoadDocument("APC_animation.DAE");
            XmlDocument boxDocument = TestBase.LoadDocument("vertex-painted-box.dae");

            // Geometry Importer needs skeleton data (joints) for joint weight & index streams
            SkeletonImporter skeletonImporter = new SkeletonImporter();

            skeletonImporter.Import(apcDocument.DocumentElement, apcModel);
            skeletonImporter.Import(boxDocument.DocumentElement, boxModel);

            // Import actual geometry
            GeometryImporter importer = new GeometryImporter();

            importer.Import(apcDocument.DocumentElement, apcModel);
            importer.Import(boxDocument.DocumentElement, boxModel);
        }