Feral Heart

Help & Guidance => Game Help => Topic started by: Abomine on December 24, 2012, 04:42:04 am

Title: Transparent Wings
Post by: Abomine on December 24, 2012, 04:42:04 am
I'm trying to create a preset that will make my character's wings completely invisible (so my character will look like it's floating instead of flapping its wings).

I've looked at this tutorial and followed the instructions. http://fc02.deviantart.net/fs70/f/2011/183/3/3/feral_heart_preset_script_tuto_by_happyshadow-d3ax1d2.html (http://fc02.deviantart.net/fs70/f/2011/183/3/3/feral_heart_preset_script_tuto_by_happyshadow-d3ax1d2.html)

I went to preset_11 in My Presets, opened the wing texture and turned it into a png file, added the alpha channel, and made the entire thing transparent (I erased it all, leaving the transparent background), but when I export the preset, it's white and textureless, turning not only the wings but my entire character white.

I'm probably doing something stupidly, obviously wrong, so I'll need to have any help explained to me as simply as possible. I'm no whiz with computer coding.

Thanks very much, and Happy Holidays. :3
Title: Re: Transparent Wings
Post by: -Rapid- on December 24, 2012, 04:52:53 am
Add this below everything else in your material file.

Code: [Select]
material preset_11_equipMatL
{
technique
{
pass
{
alpha_rejection greater_equal 12128
texture_unit
{
texture add-texture-here.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
alpha_rejection greater_equal 12128
texture_unit
{
texture add-texture-here.png
}
}
}
}
Title: Re: Transparent Wings
Post by: Abomine on December 24, 2012, 05:18:08 am
I copied that into the material file in the 'equip' section, but now my character looks like this:

(http://i1122.photobucket.com/albums/l527/justarandomperson1/Funny%20FH%20Screenshots/screenshot_12232012_211437741.png)
Title: Re: Transparent Wings
Post by: -Rapid- on December 24, 2012, 05:22:55 am
You put the wing preset name in the .texture in the code right? And make sure they're the right wings. There has to be a left wing on the left coding and a right wing on the right coding. Either one of those or both... but if not then I don't really know...

I hope you get this fixed.
Title: Re: Transparent Wings
Post by: Ruby1234 on December 24, 2012, 05:26:46 am
Try this code;
Code: [Select]
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
}
}
}
}

And then see.
Make sure your code doesn't have multiple sections or unnecessary characters.

Or, you are welcome to send/post the code and I can attempt a recode to see if I can get it to work. c:
Title: Re: Transparent Wings
Post by: Abomine on December 24, 2012, 05:55:58 am
Try this code;
Code: [Select]
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
}
}
}
}

And then see.
Make sure your code doesn't have multiple sections or unnecessary characters.

Or, you are welcome to send/post the code and I can attempt a recode to see if I can get it to work. c:

I copied that code, but I still have the same problem. I'll post what I have on my end in the material file.

Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11_body.png
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11body.jpg
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.jpg
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.jpg
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.jpg
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.jpg
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.jpg
}
}
}
}
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
}
}
}
}
Title: Re: Transparent Wings
Post by: Ruby1234 on December 24, 2012, 06:46:03 am
Here is the recode;
Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11body.png
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11body.png
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_11mane.png
}
}
}
}
material preset_11_equipMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_11equip.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_11equip.png
}
}
}
}

If pasting this in does not work, then you may have to just reinstall.
The easy way to do so would be to rename your FH folder to FeralHeart1 and then just launch the installer again, which would give you a new FeralHeart folder.
Take the images from your preset 11 folder in FH1, transfer them to the new FH folder, and then copy the code above and use that.
Title: Re: Transparent Wings
Post by: Abomine on December 24, 2012, 06:22:20 pm
I ended up having to reinstall FH. So now with the new game installed, the folder for preset_11 is there (in the new FH folder, not FH1), but it's not in the game. I go to Tools>Preset Maker, but it doesn't have Preset 11 or 12.

I'm sorry I'm being such a pain. I can mod the heck out of everything else on FH, but for some reason it just won't give me invisible wings! GAH!!!
Title: Re: Transparent Wings
Post by: JackobLoveu on December 24, 2012, 06:31:34 pm
I think you need to put it in your Notepad?
Title: Re: Transparent Wings
Post by: Abomine on December 24, 2012, 07:14:03 pm
I already did. Whenever I mod codes for anything, I always use Notepad. Thanks for the suggestion, though. :)
Title: Re: Transparent Wings
Post by: Ruby1234 on December 24, 2012, 08:09:32 pm
Do you have any other preset folders available?
Try just transferring your files to a different folder, preferably not 12, and renaming them.
Then using the code above, just use Ctrl+H (Replace) in Notepad to fix the code and then see.