Author Topic: Preset Troubles... Again.  (Read 2387 times)

Offline hellbent

  • Curious Wanderer
  • *
  • Posts: 22
  • Country: us
  • Floof-O-Meter: 1
  • formerly XxMidnightX
    • heilbent
    • View Profile
Preset Troubles... Again.
« on: September 06, 2014, 02:25:57 am »
Oh, how wonderful. I'm back to the Help board once more. xD

Okay, so, I'm not sure how to explain it. I copy/pasted the files from Preset 7 {Downloaded a pre-made file which has "YourNamebody_Left, YourNamebody_Right etc. in it, and renamed the files to: "preset_1body_Left" and etc.. So after doing that and editing the material code to this:

material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}
material preset_1_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}
material preset_1_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1head.png
         }
      }
   }
}
material preset_1_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1head.png
         }
      }
   }
}
material preset_1_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_1eye.png
         }
      }
   }
}
material preset_1_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_1eye.png
         }
      }
   }
}
material preset_1_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1tail.png
         }
      }
   }
}
material preset_1_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_1mane.png
         }
      }
   }
}

But when I go to see how the preset looks it turns out all white. Can someone correct my mistake and help with this problem?

Big thanks in advance.

AlphaEclipse

  • Guest
Re: Preset Troubles... Again.
« Reply #1 on: September 06, 2014, 02:33:44 am »
Make sure the actual files are .png file types. If not, change the .png at the end of the textures in the material to whatever it is. So if it is a .jpg, change it to that. And, if that material is not already in preset folder "preset_1," make sure you edit the names to the folder, and same goes for the .mat. Everything has to match. :3

Hope that helps!

Offline hellbent

  • Curious Wanderer
  • *
  • Posts: 22
  • Country: us
  • Floof-O-Meter: 1
  • formerly XxMidnightX
    • heilbent
    • View Profile
Re: Preset Troubles... Again.
« Reply #2 on: September 06, 2014, 02:50:48 am »
All the files are .png.

As for the folders, I re-named everything to:

preset_1_body_Left.png
preset_1_body_Right.png
preset_1_eye_Left.png
preset_1_eye_Right.png
preset_1_head_Right.png
preset_1_head_Left.png
preset_1_mane.png
etc.

Not entirely sure what else to do.

AlphaEclipse

  • Guest
Re: Preset Troubles... Again.
« Reply #3 on: September 06, 2014, 02:53:22 am »
They have to be the same in the material. So rename that "preset_1_body_Left.png" to preset_1body and so on. All of the names in the material files have to match. :3

Offline hellbent

  • Curious Wanderer
  • *
  • Posts: 22
  • Country: us
  • Floof-O-Meter: 1
  • formerly XxMidnightX
    • heilbent
    • View Profile
Re: Preset Troubles... Again.
« Reply #4 on: September 06, 2014, 02:57:03 am »
That makes sense. My only problem now, is, if I want 1 eye to be a different color, what do I do with those?

AlphaEclipse

  • Guest
Re: Preset Troubles... Again.
« Reply #5 on: September 06, 2014, 02:58:09 am »
That makes sense. My only problem now, is, if I want 1 eye to be a different color, what do I do with those?

I'll make the code really quickly and edit this post in a moment.~

Code: [Select]
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}
material preset_1_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}
material preset_1_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1head.png
         }
      }
   }
}
material preset_1_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1head.png
         }
      }
   }
}
material preset_1_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_1eye2.png
         }
      }
   }
}
material preset_1_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_1eye.png
         }
      }
   }
}
material preset_1_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1tail.png
         }
      }
   }
}
material preset_1_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_1mane.png
         }
      }
   }
}

Enter this entire thing into the material file. Name one eye file "preset_1eye2" and the other "preset_1eye." Make sure you nme everything else corresponding to the material.
« Last Edit: September 06, 2014, 03:00:57 am by AlphaEclipse »

Offline hellbent

  • Curious Wanderer
  • *
  • Posts: 22
  • Country: us
  • Floof-O-Meter: 1
  • formerly XxMidnightX
    • heilbent
    • View Profile
Re: Preset Troubles... Again.
« Reply #6 on: September 06, 2014, 03:10:24 am »
This helped a lot! Thank you! :D If I have another problem I'll let you know. cx

AlphaEclipse

  • Guest
Re: Preset Troubles... Again.
« Reply #7 on: September 06, 2014, 03:12:39 am »
No problem!! Gald I could help. :)