Author Topic: Preset Problem  (Read 2692 times)

Antidote

  • Guest
Preset Problem
« 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:



Code:
Code: [Select]
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:

What it is like:

(If you can tell it doesn't look fluffy / it looks hollow)

Code:
Code: [Select]
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
« Last Edit: February 10, 2013, 03:11:34 pm by Antidote »

JackobLoveu

  • Guest
Re: Preset Problem
« Reply #1 on: February 09, 2013, 05:17:35 pm »
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

SoulRevenge

  • Guest
Re: Preset Problem
« Reply #2 on: February 09, 2013, 05:19:18 pm »
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'.

Antidote

  • Guest

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: Preset Problem
« Reply #4 on: February 09, 2013, 05:51:36 pm »
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
                }
          }
     }
}


Offline .General..

  • Experienced Traveler
  • **
  • Posts: 136
  • Country: 00
  • Floof-O-Meter: 23
  • Bowties are cool.
    • View Profile
    • Webbysite >83
Re: Preset Problem
« Reply #5 on: February 09, 2013, 06:03:06 pm »
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:

Quote
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
          }
       }
    }
}

Signature drawing by Cakeindafridge.
Avatar drawing by Zady.
Thanks for the drawings guys. <3
Whovian forever. <3

Antidote

  • Guest
Re: Preset Problem
« Reply #6 on: February 10, 2013, 03:39:59 pm »
@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:


Thanks ^.^