Feral Heart

Help & Guidance => Game Help => Topic started by: MementoMors on August 23, 2017, 03:26:16 am

Title: Preset help?
Post by: MementoMors on August 23, 2017, 03:26:16 am
I'm trying to make a preset with transparent wings, but they show up white in-game. The image for the wings is a .PNG and the coding matches, so I'm not sure what is happening.

(http://i.imgur.com/RTv6LGj.png)

There's also something weird going on with the mane. It looks like the inside of the mesh is being shown or something.

(http://i.imgur.com/oiLcYwi.png)

This is what the code looks like:
Code: [Select]
material preset_12_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture EspurrBody.png
}
}
}
}
material preset_12_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture EspurrBody.png
}
}
}
}
material preset_12_headMatL
{
technique
{
pass
{
texture_unit
{
texture EspurrHead.png
}
}
}
}
material preset_12_headMatR
{
technique
{
pass
{
texture_unit
{
texture EspurrHead.png
}
}
}
}
material preset_12_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture EspurrEyes.png
}
}
}
}
material preset_12_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture EspurrEyes.png
}
}
}
}
material preset_12_tailMat
{
technique
{
pass
{
texture_unit
{
texture EspurrTail.png
}
}
}
}
material preset_12_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture EspurrHair.png
}
}
}
}
material preset_12_equipMatL
{
technique
{
pass
{
texture_unit
{
texture EspurrEquip.png
}
}
}
}
material preset_12_equipMatR
{
technique
{
pass
{
texture_unit
{
texture EspurrEquip.png
}
}
}
}
Title: Re: Preset help?
Post by: Morgra on August 23, 2017, 03:50:08 am
Here is the coding for the mane section that you should use...
I took your code and just changed the mane portion so feel free to copy and paste all of this and replace the old text in the material with this:
Code: [Select]
material preset_12_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrBody.png
   }
  }
 }
}
material preset_12_bodyMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrBody.png
   }
  }
 }
}
material preset_12_headMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrHead.png
   }
  }
 }
}
material preset_12_headMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrHead.png
   }
  }
 }
}
material preset_12_eyeMatL
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture EspurrEyes.png
   }
  }
 }
}
material preset_12_eyeMatR
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture EspurrEyes.png
   }
  }
 }
}
material preset_12_tailMat
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrTail.png
   }
  }
 }
}
material preset_12_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture EspurrHair.png
   }
  }
 }
}
material preset_12_equipMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrEquip.png
   }
  }
 }
}
material preset_12_equipMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrEquip.png
   }
  }
 }
}

As for your wings, I am currently unsure of the problem as the coding looks correct. Maybe show us the wing texture?

I might've misunderstood, is the full wing transparent or only part of the wing?
Title: Re: Preset help?
Post by: MementoMors on August 23, 2017, 03:55:20 am
The mane looks better now, thanks!

The wing texture is entirely transparent.
Title: Re: Preset help?
Post by: Morgra on August 23, 2017, 04:02:21 am
Well, in that case, try this code! ^^ Once again, erase the contents of your current code and copy/paste this one in:

Code: [Select]
material preset_12_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrBody.png
   }
  }
 }
}
material preset_12_bodyMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrBody.png
   }
  }
 }
}
material preset_12_headMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrHead.png
   }
  }
 }
}
material preset_12_headMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrHead.png
   }
  }
 }
}
material preset_12_eyeMatL
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture EspurrEyes.png
   }
  }
 }
}
material preset_12_eyeMatR
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture EspurrEyes.png
   }
  }
 }
}
material preset_12_tailMat
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture EspurrTail.png
   }
  }
 }
}
material preset_12_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture EspurrHair.png
   }
  }
 }
}
material preset_12_equipMatL
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   depth_write off
   texture_unit
   {
    texture EspurrEquip.png
   }
  }
 }
}
material preset_12_equipMatR
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   depth_write off
   texture_unit
   {
    texture EspurrEquip.png
   }
  }
 }
}
Title: Re: Preset help?
Post by: MementoMors on August 23, 2017, 04:06:01 am
That fixed it! Thanks!
Title: Re: Preset help?
Post by: Morgra on August 23, 2017, 04:44:17 am
You're very welcome! Locking this thread.