Ejemplo n.º 1
0
        public static OpsModel FromFile(Device device, string path)
        {
            OpsModel result = new OpsModel();

            OpsAllocateHierarchy alloc = new OpsAllocateHierarchy();

            AnimationRootFrame arf = Mesh.LoadHierarchyFromFile(path, MeshFlags.SystemMemory | MeshFlags.Use32Bit, device, alloc, null);

            result.HierarchyRoot  = arf.FrameHierarchy;
            result.AnimationMixer = arf.AnimationController;

            result.Name = System.IO.Path.GetFileNameWithoutExtension(path);

            return(result);
        }
Ejemplo n.º 2
0
        public static OpsModel FromFile( Device device, string path)
        {
            OpsModel result = new OpsModel();

            OpsAllocateHierarchy alloc = new OpsAllocateHierarchy();

            AnimationRootFrame arf= Mesh.LoadHierarchyFromFile( path, MeshFlags.SystemMemory|MeshFlags.Use32Bit, device, alloc, null);

            result.HierarchyRoot = arf.FrameHierarchy;
            result.AnimationMixer = arf.AnimationController;

            result.Name = System.IO.Path.GetFileNameWithoutExtension(path);

            return result;
        }