/// <summary> /// Initialize debug data<para/> /// Инициализация отладочной иноформации /// </summary> public static void Init() { //Entities.Camera.Position = new OpenTK.Vector3(375.604f, 58.78056f, -585.3889f); rend = new Graphics.Renderers.DebugRenderer(); box = new Graphics.Renderers.DebugRenderer.Box(); box.LineSize = 2f; box.Size = Vector3.One * 0.5f; //rend.Primitives.Add(box); AnimationFile fg = new AnimationFile(PathManager.GetAbsolute("anim/ped.ifp")); animation = fg["WALK_player"]; man = new Model(new ModelFile(ArchiveManager.Get("HFYST.dff"), true), true, true); manTex = new TextureDictionary(new TextureFile(ArchiveManager.Get("HFYST.txd"), true), true, true); ApplyAnimationFrame(man.Children, animation, 2); re = new Graphics.Renderers.SkinnedRenderer(); lines = new List <Graphics.Renderers.DebugRenderer.Line>(); }
public override T Import <T>(System.IO.Stream source, string source_name, ResourceManager man) { Glorg2.Graphics.Model ret = new Graphics.Model(); ret.VertexBuffer = new Graphics.OpenGL.VertexBuffer <Graphics.VertexPositionTexCoordNormal>(Graphics.VertexPositionTexCoordNormal.Descriptor); System.IO.BinaryReader rd = new System.IO.BinaryReader(source); Chunk c = ReadChunk(rd); return(ret as T); }
/// <summary> /// Initialize debug data<para/> /// Инициализация отладочной иноформации /// </summary> public static void Init() { //Entities.Camera.Position = new OpenTK.Vector3(-1647.534f, 26.54692f, -667.5128f); rend = new Graphics.Renderers.DebugRenderer(); box = new Graphics.Renderers.DebugRenderer.Box(); box.LineSize = 2f; box.Size = Vector3.One * 0.5f; //rend.Primitives.Add(box); AnimationFile fg = new AnimationFile(PathManager.GetAbsolute("anim/ped.ifp")); man = new Model(new ModelFile(ArchiveManager.Get("cop.dff"), true), true, true); manTex = new TextureDictionary(new TextureFile(ArchiveManager.Get("cop.txd"), true), true, true); re = new Graphics.Renderers.SkinnedRenderer(); RenderBonesRecursively(man.Children); }
public Graphics.Model GetModel(BinaryReader br) { Graphics.Model model = new Graphics.Model(); return(model); }