Author Topic: Preset/Scripting help!  (Read 1006 times)

Offline B335

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: 00
  • Floof-O-Meter: 5
  • Hot chocolate enthusiast.
    • View Profile
Preset/Scripting help!
« on: October 12, 2013, 12:35:00 am »
I'm fairly new to preset making, well, the transparent type anyway. When I finished making this preset, I done the preset maker thing, and saw this.

The head was created exactly the same as the rest of the body, but appears to be missing. Help would be appreciated! Thanks. uvu

Take us with you, Beyonce.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Preset/Scripting help!
« Reply #1 on: October 12, 2013, 12:37:07 am »
Could you please post the material code you have used as well as the names and formats of your images?
Will be inactive due to work and exams.

Offline B335

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: 00
  • Floof-O-Meter: 5
  • Hot chocolate enthusiast.
    • View Profile
Re: Preset/Scripting help!
« Reply #2 on: October 12, 2013, 12:46:07 am »
Of course! Here it is.
Quote
material preset_11_bodyMatL
{
    receive_shadows on
    technique
    {
        pass
        {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
            {
             texture preset_11body.png
                         tex_address_mode wrap
                         filtering trilinear
            }
        }
    }
}         texture_unit
         {
            texture preset_11body.png
         }
      }
   }
}
material preset_11_bodyMatR
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11body.png
         }
      }
   }
}
material preset_11_headMatL
{
        receive_shadows on
   technique
   {
      pass
      {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
{
            texture preset_11head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11head.png
         }
      }
   }
}
material preset_11_headMatR
{
   
        receive_shadows on
   technique
   {
      pass
      {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
         {
            texture preset_11head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11head.png
         }
      }
   }
}
material preset_11_eyeMatL
{ receive_shadows on
   technique
   {
      pass
      {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
{
            texture preset_11eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11eye.png
         }
      }
   }
}
material preset_11_eyeMatR
{
    receive_shadows on
   technique
   {
      pass
      {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
         {
            texture preset_11eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11eye.png
         }
      }
   }
}
material preset_11_tailMat
{
   receive_shadows on
   technique
   {
      pass
      {
            scene_blend alpha_blend
            fog_override true
            ambient 1.000000 1.000000 1.000000 1.000000
            diffuse 1.000000 1.000000 1.000000 1.000000
            specular 0.050000 0.050000 0.050000 1.000000
            emissive 0.000000 0.000000 0.000000 1.000000
            alpha_rejection greater_equal 128
            cull_hardware none
            cull_software none
            texture_unit
         {
            texture preset_11tail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11tail.png
         }
      }
   }
}
material preset_11_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_11mane.png
         }
      }
   }
}
material preset_11_equipMatL
{
   technique
   {
      pass
      {       alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_11equip.png
         }
      }
   }
}
material preset_11_equipMatR
{
   technique
   {
      pass
      {       alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_11equip.png
         }
      }
   }
}

They are all saved in Png format.

I hope you can read the names from the code, as I can only currently type so much.

Take us with you, Beyonce.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Preset/Scripting help!
« Reply #3 on: October 12, 2013, 01:05:03 am »
Hmm, I don't see anything wrong there, I assume the image names are preset_11head.png?

I also have a transparent preset, you could try the code I have:

Quote
material preset_11_bodyMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}                       alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_11body.png
         }
      }
   }
}
material preset_11_bodyMatR
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11body.png
         }
      }
   }
}
material preset_11_headMatL
{
        receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11head.png
         }
      }
   }
}
material preset_11_headMatR
{
   
        receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11head.png
         }
      }
   }
}
material preset_11_eyeMatL
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11eye.png
         }
      }
   }
}
material preset_11_eyeMatR
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11eye.png
         }
      }
   }
}
material preset_11_tailMat
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11tail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11tail.png
         }
      }
   }
}
material preset_11_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_11mane.png
         }
      }
   }
}
material preset_11_equipMatL
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11equip.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11equip.png
         }
      }
   }
}
material preset_11_equipMatR
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_11equip.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_11equip.png
         }
      }
   }
}


If that doesn't work you could try using a different preset number instead of 11?
Will be inactive due to work and exams.

Offline B335

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: 00
  • Floof-O-Meter: 5
  • Hot chocolate enthusiast.
    • View Profile
Re: Preset/Scripting help!
« Reply #4 on: October 12, 2013, 01:20:53 am »
Thanks, I'll see how it goes! ^u^
(EDIT) Unfortunately, the problem remains. I'll try to re-make the head texture, and see how that goes. But thanks anyways~
« Last Edit: October 12, 2013, 01:24:03 am by Vernillah »

Take us with you, Beyonce.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Preset/Scripting help!
« Reply #5 on: October 12, 2013, 01:36:32 am »
Hmm, my apologies but I'm not sure what else I can do to help. Hopefully someone might know the answer and will be able to solve the problem for you.
Will be inactive due to work and exams.