Exemplo n.º 1
0
 protected void WritePtmo(PNGWriter pw)
 {
     pw.WriteTDCG();
     pw.WritePOSE();
     foreach (TSOFigure fig in TSOFigureList)
     {
         pw.WriteFTMO(fig.tmo);
     }
 }
Exemplo n.º 2
0
 protected void WritePose(PNGWriter pw)
 {
     pw.WriteTDCG();
     pw.WritePOSE();
     pw.WriteCAMI(cami);
     foreach (TSOFigure fig in TSOFigureList)
     {
         pw.WriteLGTA(fig.lgta);
         pw.WriteFTMO(fig.tmo);
     }
 }
Exemplo n.º 3
0
        void WritePose(PNGWriter pw, TMOFile tmo)
        {
            byte[] cami = ReadFloats(GetCameraPath());
            byte[] lgta = ReadFloats(GetLightAPath());

            pw.WriteTDCG();
            pw.WritePOSE();
            pw.WriteCAMI(cami);
            pw.WriteLGTA(lgta);
            pw.WriteFTMO(tmo);
        }
Exemplo n.º 4
0
        protected void WriteFTMO(PNGWriter pw)
        {
            string tmo_file = dest_path + @"\" + numTMO + ".tmo";

            Console.WriteLine("TMO Load File: " + tmo_file);

            using (Stream tmo_stream = File.OpenRead(tmo_file))
            {
                pw.WriteFTMO(tmo_stream);
            }
        }
Exemplo n.º 5
0
 protected void WriteScne(PNGWriter pw)
 {
     pw.WriteTDCG();
     pw.WriteSCNE(FigureCount());
     pw.WriteCAMI(cami);
     foreach (TSOFigure fig in TSOFigureList)
     {
         pw.WriteLGTA(fig.lgta);
         pw.WriteFTMO(fig.tmo);
         pw.WriteFIGU(fig.figu);
         foreach (TSOData tso in fig.TSOList)
         {
             pw.WriteFTSO(tso.opt1, tso.ftso);
         }
     }
 }