Author Topic: Preset coding help!!  (Read 2568 times)

Lavender

  • Guest
Preset coding help!!
« on: June 04, 2011, 10:46:23 am »
Well i'm trying to do this coding for a Snivy preset,but its not working!

So far iv only done the head so =w= Yeah iv done both sides but it only shows the right side?


Helpppp xC


Code: [Select]
material preset_4_bodyMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody1.png
         }
      }
   }
}

material preset_4_bodyMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody2.png
         }
      }
   }
}

material preset_4_headMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead1.png
         }
      }
   }
}

material preset_4_headMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead2.png
         }
      }
   }
}

material preset_4_eyeMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye1.png
         }
      }
   }
}

material preset_4_eyeMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye2.png
         }
      }
   }
}

material preset_4_tailMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivytail.png
         }
      }
   }
}

material preset_9_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture SnivyHair.png
}
}
}
}

(Yes iv made presets before)

Anyway,thats what the coding looks like..

This is what it looks like :/


Help anyone? D:
« Last Edit: June 04, 2011, 10:57:16 am by Lavender »

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset coding help!!
« Reply #1 on: June 04, 2011, 12:30:41 pm »
Well, your coding is messed up. Try this one:
Code: [Select]
material preset_4_bodyMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody1.png
         }
      }
   }
}

material preset_4_bodyMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody2.png
         }
      }
   }
}

material preset_4_headMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead1.png
         }
      }
   }
}

material preset_4_headMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead2.png
         }
      }
   }
}

material preset_4_eyeMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye1.png
         }
      }
   }
}

material preset_4_eyeMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye2.png
         }
      }
   }
}

material preset_4_tailMat
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivytail.png
         }
      }
   }
}

material preset_9_maneMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture SnivyHair.png
         }
      }
   }
}
And also, you don't need to make two images if the preset is going to be the same on both sides. If you are doing this then you can use this code, and only make 1 image for each body part:
Code: [Select]
material preset_4_bodyMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody1.png
         }
      }
   }
}

material preset_4_bodyMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivybody1.png
         }
      }
   }
}

material preset_4_headMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead1.png
         }
      }
   }
}

material preset_4_headMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyhead1.png
         }
      }
   }
}

material preset_4_eyeMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye1.png
         }
      }
   }
}

material preset_4_eyeMatR
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivyeye1.png
         }
      }
   }
}

material preset_4_tailMat
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture Snivytail.png
         }
      }
   }
}

material preset_9_maneMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture SnivyHair.png
         }
      }
   }
}
Good luck with your preset, it looks good so far! ^^