Feral Heart
Help & Guidance => Game Help => Topic started by: Kalaban on May 21, 2016, 01:49:38 pm
-
(http://i68BannedImageSite/b8waar.png)
(http://i66BannedImageSite/2rykdvr.png)
Seeing from the beautiful display of pictures above, I have two /minor/ problems.
This is my first preset. I've had the help of tb's free preset maker. (Beautiful helper for organizing things) And my encouraging friend about 95% of the way. He is asleep right now. :) I just finished working on the mane. I am unsure if the code was incorrect after so many years (the topic was made in 2013) And that was the reason for it being see through? so I have come here.
Adding on to that, I have questions on how to fix the white blocks.
Please tell me if you need screenshots of the coloring/etc.
-
Off the top of m'head, I can say the reason to the white blocks is probably b'cause the image isn't a .png file. Be sure to export in .png's so that anything that needs to be invisible stays that way through the exporting step.
As f'er the code, I've rummaged through the forums - since I'm away from m'computer and all codes I normally use - and found this beaut.
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}
Compare y'er code with this one and if y'ers is any different, just r'place it with this. Be sure to r'move the #'s with the corresponding preset folder number.
-
Off the top of m'head, I can say the reason to the white blocks is probably b'cause the image isn't a .png file. Be sure to export in .png's so that anything that needs to be invisible stays that way through the exporting step.
Let me go try this and see if it works. The whole section as a 9, when I looked in "how to preset," was a .jpg. I guess the mane must stay .png. :)
As f'er the code, I've rummaged through the forums - since I'm away from m'computer and all codes I normally use - and found this beaut.
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}
Compare y'er code with this one and if y'ers is any different, just r'place it with this. Be sure to r'move the #'s with the corresponding preset folder number.
I'll go try it and see if it works! Will reply with pictures if it does/doesn't. Thank you, Enoki!
Edit: this is what I originally had, just for you all to beware if looking. Lol.
material preset_9_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_9mane.jpg
}
}
}
}
-
Update:
The preset mane is now messed up again. *Sigh.*
I tried switching it both to .png and .jpg with the same result happening, so I believe it 'tis the code.
(http://i64BannedImageSite/32zkl7n.png)
-
The image should indeed be a .png, but you'll also want to make sure you're using the correct mane mask. In your texture folders there should be a mane mask that looks like a black square with a few upside down triangles sticking out on the bottom, and a transparent area around those triangles. You want to lock the transparency on that mask so you can only color where it is black. It's important that the transparency around the black area stay transparent. Then save that as a .png. If you have already done this, then you might have a issue with your image corresponding to your code.
Its very important that your image name is exactly the same as what is written next to the texture part of your code. So for example, if your code says:
texture preset_9mane.png
Then your image must be: preset_9mane.png, otherwise it won't work.
Also make sure this part of the code at the top reads:
material preset_9_maneMat
-
The codes I use for a mane is;
[code]material preset_1_maneMat
{
technique
{
pass
{
ambient 2.0 2.0 2.0
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 250
texture_unit
{
texture [color=red]preset_1mane.png[/color]
}
}
}
}
You should change your texture name [file] to preset_1mane.png if you can.
Should fix the white part. Also don't forget to make the file png. [or jpg if you want. I highly suggest png but choose whatever. ;)
Like what was done here;
(http://i.imgur.com/h8zMHwY.png)
The reason for it being 'see through' is because of the code being used [my guess]. I noticed when you change the code it doesn't quite become as see through. While for a normal model without a preset the mane is just fine.[/code]
-
It's fixed! Thank you all. <3
-
So glad! :)
Have a good day!
-
I'm glad to see that you've fixed the issue. I'll be locking this up since your problem has been resolved.