Ejemplo n.º 1
0
        public void randoLightmap()
        {
            Random rand = new Random();

            for (int i = 0; i < bsp.offsets[7].Value / 56; i++)
            {
                Dface_t face = new Dface_t(i, bsp);
                face.randoLightmaps(rand);
                face.writeLightmap();
            }
        }
Ejemplo n.º 2
0
 private void buttonUpdate_Click(object sender, EventArgs e)
 {
     //this method updates the bsp
     if (map != null)
     {
         //updates the model
         //surface.updateLightmap(richTextBox1.Text.Replace("\t", String.Empty).Split(';'), radioButtonLDR.Checked);
         //writes the updated model
         surface.writeLightmap();
         //updates the data in the UI with the new data from the bsp (useless, same data then before. but it reformats things)
         updateLightmapViewer();
     }
 }