Feral Heart
Help & Guidance => Game Help => Topic started 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:
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
}
}
}
}
-
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:
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?
-
The mane looks better now, thanks!
The wing texture is entirely transparent.
-
Well, in that case, try this code! ^^ Once again, erase the contents of your current code and copy/paste this one in:
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
}
}
}
}
-
That fixed it! Thanks!
-
You're very welcome! Locking this thread.