Author Topic: Solved Please lock.  (Read 3412 times)

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: ;-; Preset problem (I need a respond fast!)
« Reply #10 on: May 19, 2016, 10:31:23 pm »
Try changing the files into a .png where you have them as .jpg except for the wings.
When you make the changes, make sure you're saving the files as a .png as well in Gimp before testing it out.

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ;-; Preset problem (I need a respond fast!)
« Reply #11 on: May 20, 2016, 03:49:23 am »
It doesn't matter if the base images are .jpgs, just as long as the glowing markings layers are .pngs.

The problem is that your code is a mess. You've got random brackets either added in or missing, and parts of the code are entirely missing or starting inside other sections of code. Each section has a heading, followed by a number of opening brackets { and the SAME number of closing brackets }. I'm not sure how you ended up with something like this... but here's some of the issues:

material preset_3_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1.0
         texture_unit
         {
            texture preset_3body.jpg
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3bodyglow.png
         }
      }
   }
}
material preset_3_bodyMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1.0
         texture_unit
         {
            texture preset_3body.jpg
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3bodyglow.png
         }
      }
   }
}
material preset_3_headMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1.0
         texture_unit
         {
            texture preset_3head.jpg
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3headglow.png
         }
      }
   }
}
material preset_3_headMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1.0
         texture_unit
         {
            texture preset_3head.jpg
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3headglow.png
         }
      }
   }
}
material preset_3_eyeMatL    -> extra line and bracket???
{

material preset_3_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_3eye.jpg
         }
      }
   }
}
material preset_3_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_3eye.jpg
         }
      }
   }
}
        ambient 0.5 0.5 0.5 1.0  -> starting in the middle of the tail section??? completely missing a header? "material preset_3_tailMat," etc.
         texture_unit
         {
            texture preset_3tail.png
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3tailglow.png
         }
      }
   }
}

material preset_3_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_3mane.png
                        }
                }
        }
}
material preset_3_equipMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_3equip.jpg
   }
  }
 }
}
material preset_3_equipMatR
{
 technique
 {
  pass
  {
   texture_unit
   {   -> four opening brackets. good.
    texture preset_3equip.jpg
  }
  }
 } ->   only three closing brackets. not good.


Here's a fresh code, just replace your entire coding with this:
Code: [Select]
material preset_3_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3body.jpg
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3bodyglow.png
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3body.jpg
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3bodyglow.png
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3head.jpg
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3headglow.png
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3head.jpg
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3headglow.png
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3tail.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3tailglow.png
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
material preset_3_equipMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3equip.jpg
}
}
}
}
material preset_3_equipMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3equip.jpg
}
}
}
}
« Last Edit: May 20, 2016, 03:51:38 am by Phloxenfree~ »