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); }
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; }