Author Topic: Metal Marking Preset Help?  (Read 1858 times)

Offline SL138197

  • Community Champion
  • ****
  • Posts: 1,799
  • Floof-O-Meter: 37
  • Thank ye' TinyTail.
    • View Profile
    • My DeviantArt
Metal Marking Preset Help?
« on: October 01, 2014, 06:05:01 pm »
Hey,

Ok, so I'm doing Jake for the Halloween party, and wanted to give him some metal leg stuff.  
Only problem is, I have a glow coding inside the material file as well, and when I go to test in-game, it screws up.  
I know I'm coding wrong, but with a glow marking on the body already, is there a way to add both?
DeviantArt: Riverthefluffybum
Minecraft: artsy_gamer906

Offline TheApplePie

  • Finest Floof
  • ***
  • Posts: 519
  • Country: 00
  • Floof-O-Meter: 32
  • I breathe dan howell
    • View Profile
Re: Metal Marking Preset Help?
« Reply #1 on: October 01, 2014, 08:21:20 pm »
I have no idea on how to fix stuff in presets, and I can say to ye' is  that when you make a double sided preset, and put the metal on one side then the glow markings on the other, it should fix the problem.. I'm not entirely sure though. My preset making skills are far worse than object making so that's basically allI can say.   

let's be emo in a gerard way

http://fiixl.deviantart.com/

S. Italy/Romano

  • Guest
Re: Metal Marking Preset Help?
« Reply #2 on: October 01, 2014, 10:18:49 pm »
This is probably your metal code
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.8 0.9 0.9
         specular 1.0 1.0 1.0 128
         texture_unit
         {
            METALTEXTURE.jpg
            env_map spherical
         }
      }
   }
}
Ok and this is your glowing code, correct?
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture NORMALTEXTURE.png
         }
      }
      pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture GLOWINGTEXTURE.png
         }
      }
   }
}

Now if you want to put a glowing marking ONTO the metal, your base texture would derive the metal code, like so:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.8 0.9 0.9
         specular 1.0 1.0 1.0 128
         texture_unit
         {
            texture METALBASETEXTURE.png
            env_map spherical
         }
      }
 pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture GLOWINGTEXTURE.png
         }
      }
   }
}
But in this case, your whole body would be metallic.

Now as for a "leg only" metal code WITH glowing markings, it would be:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         specular 0.5 0.5 0.5 1
         texture_unit
         {
            texture METALTEXTURE.png
            env_map spherical
         }
      }
      pass
      {
         ambient 0.5 0.5 0.5 1
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture NORMALTEXTURE.png
         }
      }
 pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture GLOWINGTEXTURE.png
}
}
}
}

At least I THINK it's supposed to be like this. I remember on my old account, one of my presets had a metallic eye that glowed in the center, so I may not remember the EXACT coding CORRECTLY.

EDIT: I think I may have found a guide that may help you: Metallic Markings Glow Markings

EDIT2: Tested, it works, just remember, your base body texture has to be a png and have transparent areas where the metal texture shows up underneath.
« Last Edit: October 01, 2014, 10:31:10 pm by Lovino Vargas »

Offline SL138197

  • Community Champion
  • ****
  • Posts: 1,799
  • Floof-O-Meter: 37
  • Thank ye' TinyTail.
    • View Profile
    • My DeviantArt
Re: Metal Marking Preset Help?
« Reply #3 on: October 01, 2014, 10:37:28 pm »
Darn it, nope.

The reason  I need both together on the same part of the body is because there are scars on both sides, and the paw pads glow.  I added the coding in, and while it didn't mess anything up, it didn't add the metal.
DeviantArt: Riverthefluffybum
Minecraft: artsy_gamer906

S. Italy/Romano

  • Guest
Re: Metal Marking Preset Help?
« Reply #4 on: October 01, 2014, 10:41:37 pm »
Did you erase the parts where the metal is supposed to show up on your base texture? I did and it worked fine.



The metal is a separate texture that is made to look metallic, like a picture of steel of something. In the case of my screenshot, it was black with white lines.

Offline SL138197

  • Community Champion
  • ****
  • Posts: 1,799
  • Floof-O-Meter: 37
  • Thank ye' TinyTail.
    • View Profile
    • My DeviantArt
Re: Metal Marking Preset Help?
« Reply #5 on: October 01, 2014, 10:42:08 pm »
Wait, what do you mean by erase?
O_O
DeviantArt: Riverthefluffybum
Minecraft: artsy_gamer906

S. Italy/Romano

  • Guest
Re: Metal Marking Preset Help?
« Reply #6 on: October 01, 2014, 10:44:33 pm »
So, your base texture is a PNG file with Transparency enabled.

On that image, anything that's supposed to be metal must be erased, so that the grey "checkerboard" shows up underneath.

MAKE BACKUPS IN CASE IT DOESN'T WORK FOR YOU.

EDIT:
« Last Edit: October 01, 2014, 10:48:04 pm by Lovino Vargas »

Offline SL138197

  • Community Champion
  • ****
  • Posts: 1,799
  • Floof-O-Meter: 37
  • Thank ye' TinyTail.
    • View Profile
    • My DeviantArt
Re: Metal Marking Preset Help?
« Reply #7 on: October 01, 2014, 10:54:34 pm »
Ok, so then I have the texture of the metal as the metal texture, and it replaces things that are erased?
DeviantArt: Riverthefluffybum
Minecraft: artsy_gamer906

S. Italy/Romano

  • Guest
Re: Metal Marking Preset Help?
« Reply #8 on: October 01, 2014, 10:56:47 pm »
It's supposed to. We are "layering" these textures in the coding. So that the metal is the bottommost texture, covered by the base, which has transparent areas through which the metal texture is visible and finally, the topmost texture is the glow.

Remember: Backup files. I was working once on a preset and unknowingly forgot to make a backup folder. The result wasn't pretty. They teach us this in animation class: Computers are stupid.

Offline SL138197

  • Community Champion
  • ****
  • Posts: 1,799
  • Floof-O-Meter: 37
  • Thank ye' TinyTail.
    • View Profile
    • My DeviantArt
Re: Metal Marking Preset Help?
« Reply #9 on: October 01, 2014, 11:00:54 pm »
Hmm, I get what you're saying.

I'm doing that, in the coding this is what I have:
material preset_3_bodyMatL
{
   technique
   {
      pass
      {
         specular 0.5 0.5 0.5 1
         texture_unit
         {
            texture background-brushed2.png
            env_map spherical
         }
      }
      pass
      {
         ambient 0.5 0.5 0.5 1
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_3body.png
         }
      }
 pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3bodymarkings.png
}
material preset_3_bodyMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_3body.png
         }
      }
pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_3bodymarkings.png
         }
      }
   }
}

And in GIMP the layers are
Glow
Body
Metal

I export it to a .png and it isn't showing up in-game

DeviantArt: Riverthefluffybum
Minecraft: artsy_gamer906