Feral Heart
Help & Guidance => Game Help => Topic started by: Antidote on February 09, 2013, 05:15:21 pm
-
Hello,
So, okay as the title says I have kind of a preset problem. I was just wandering if my coding was wrong because in the game my character's head is darker than it should be, all the colours are right and all, it is a glowing kind of preset (the tongue is the part thats glowing on the head)/ It looks more brown than grey.
Pictures:
(http://i50BannedImageSite/9h5bsw.png)
(http://i46BannedImageSite/213eq2d.png)
Code:
material preset_4_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_4head.png
}
}
pass
{
emissive 0.0 0.0 1.0
scene_blend alpha_blend
texture_unit
{
texture glowmarkings2.png
}
}
}
}
material preset_4_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_4head.png
}
}
pass
{
emissive 0.0 0.0 1.0
scene_blend alpha_blend
texture_unit
{
texture glowmarkings2.png
}
}
}
}
The Second Part is that the mane looks strange.
Pictures:
What it should be like:
(http://i50BannedImageSite/15re05d.png)
What it is like:
(http://i45BannedImageSite/a0jeq1.png)
(If you can tell it doesn't look fluffy / it looks hollow)
Code:
material preset_4_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_4mane.png
}
}
}
}
That's it (well for now anyway)
Thanks for your help,
Antidote
-
Let me rephrase this..so you need help on the coding..?
Hmm..I found a thread to help c:
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=4246.150 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=4246.150)
-
The reason why your preset's head is darker than the body is most likely because a fur-texture was placed on there more than once, thus; making it darker x3.
As for the mane, I believe that you don't have transparent spots where it should be; or it might simply be the colours that make it appear to be 'hollow'.
-
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=4246.150 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=4246.150)
That is where I got the code from, but thanks anyway ^.^
-
When it comes to your mane issue can you also post up the file of your mane so we can see if there's something off with it that might be causing this problem.
In the meantime you can try replacing your mane code with the one below to see if it fixes that issue.
material preset_4_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4mane.png
}
}
}
}
-
I see what's wrong with the miscolouring of your preset head, the glowing code automatically adds shading to the preset. Or in code wise, it adds 'Ambient 0.5 0.5 0.5'
So, the solution? Replace your code with this:
material preset_4_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4head.png
}
}
pass
{
emissive 0.0 0.0 1.0
scene_blend alpha_blend
texture_unit
{
texture glowmarkings2.png
}
}
}
}
material preset_4_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_4head.png
}
}
pass
{
emissive 0.0 0.0 1.0
scene_blend alpha_blend
texture_unit
{
texture glowmarkings2.png
}
}
}
}
-
@LordSuragaha: Thank you for solving my Mane Problem ^.^ It's a lot better now.
@.General..: Still a little dark.
But it really made a difference.
Pic:
(http://i48BannedImageSite/r0wm5g.png)
Thanks ^.^