Author Topic: Preset help?  (Read 1306 times)

Offline MementoMors

  • Curious Wanderer
  • *
  • Posts: 45
  • Country: us
  • Floof-O-Meter: 1
  • cursed goatman
    • Memento-Mors
    • View Profile
    • My Toyhou.se
Preset help?
« 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.



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



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
}
}
}
}
I'll be the hyena. You'll see.

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset help?
« Reply #1 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?
« Last Edit: August 23, 2017, 03:52:15 am by Morgra »
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline MementoMors

  • Curious Wanderer
  • *
  • Posts: 45
  • Country: us
  • Floof-O-Meter: 1
  • cursed goatman
    • Memento-Mors
    • View Profile
    • My Toyhou.se
Re: Preset help?
« Reply #2 on: August 23, 2017, 03:55:20 am »
The mane looks better now, thanks!

The wing texture is entirely transparent.
I'll be the hyena. You'll see.

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset help?
« Reply #3 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
   }
  }
 }
}
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline MementoMors

  • Curious Wanderer
  • *
  • Posts: 45
  • Country: us
  • Floof-O-Meter: 1
  • cursed goatman
    • Memento-Mors
    • View Profile
    • My Toyhou.se
Re: Preset help?
« Reply #4 on: August 23, 2017, 04:06:01 am »
That fixed it! Thanks!
I'll be the hyena. You'll see.

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset help?
« Reply #5 on: August 23, 2017, 04:44:17 am »
You're very welcome! Locking this thread.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.