예제 #1
0
 protected void WritePtmo(PNGWriter pw)
 {
     pw.WriteTDCG();
     pw.WritePOSE();
     foreach (TSOFigure fig in TSOFigureList)
     {
         pw.WriteFTMO(fig.tmo);
     }
 }
예제 #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);
     }
 }
예제 #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);
        }
예제 #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);
            }
        }
예제 #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);
         }
     }
 }