Author Topic: Material File 1 sided marking help? xP  (Read 1793 times)

LadyLioness

  • Guest
Material File 1 sided marking help? xP
« on: October 21, 2012, 07:17:54 am »
I am trying to make markings on one side of my preset by editing the material file. I edited it so it said:
texture preset_5bodyl.jpg and texture preset_5bodyr.jpg
And I saved 1 marking to l and erased it and saved the other marking to r
Did I do something wrong? It won't show the markings at all. It just goes blank when I pull up preset 5.
« Last Edit: October 21, 2012, 07:37:54 am by Grace »

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: Material File 1 sided marking help? xP
« Reply #1 on: October 21, 2012, 07:59:01 am »
Hmm I will try to explain it to you the best way I can using an example from the preset I made today. The preset I made today has two different eyes types. My preset name is preset_5 and so I named the two different eye files like so:

Preset_5eye    (Left eye)
and
Preset_55eye  (Right eye)

Once I saved those two files with the proper names I went into the little preset_5 notepad and changed the code like so and only in the spot of the highlighted area down below:


material preset_5_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_5eye.jpg
         }
      }
   }
}



material preset_5_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_55eye.jpg
         }
      }
   }
}

As long as you do the same thing with your preset and only change the coding in that spot shown for your bodymat it should work. Hope that helps :) If you have any more trouble with it feel free to private message me and I'd be more than happy to help you.
ps: Rather ironic that we were both working on a preset_5 btw xD
« Last Edit: October 21, 2012, 08:09:02 am by LordSuragaha »

LadyLioness

  • Guest
Re: Material File 1 sided marking help? xP
« Reply #2 on: October 21, 2012, 08:27:59 am »
Lol yeah. Thanks I'll try it now :3
So I name 1 preset body whatever it would be 5, and then the other one 55?

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: Material File 1 sided marking help? xP
« Reply #3 on: October 21, 2012, 11:42:33 am »
Well no you dont have to give them those specific names, those are just the names I gave them. The most important thing is that you have a saved file for both sides of the preset and that you name them differently and code it in the same spots you see above that I highlighted but for the catagory of the part of the body you're working on which would be the bodymats. Then it should work. Goodluck and let me know if you fix it :)

LadyLioness

  • Guest
Re: Material File 1 sided marking help? xP
« Reply #4 on: October 21, 2012, 11:57:20 pm »
It isn't working for some reason. But I'll check everything I did again :3

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Material File 1 sided marking help? xP
« Reply #5 on: October 22, 2012, 10:40:59 pm »
So, if I understand correctly, you made two image files, one for the right side of the body, and one for the left.
Make sure they are indeed saved as .jpg files, and not somehow .png files?
If that's not the issue, try replacing the body section of your code with this one:
Code: [Select]
material preset_5_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_5bodyl.jpg
}
}
}
}
material preset_5_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_5bodyr.jpg
}
}
}
}

Offline LiesUnderOath

  • Experienced Traveler
  • **
  • Posts: 136
  • Floof-O-Meter: 13
  • Accidentially intentional.
    • View Profile
Re: Material File 1 sided marking help? xP
« Reply #6 on: October 22, 2012, 11:39:03 pm »
Just a little note to add on to everybody else's ideas:
it tends to work..better, I suppose..if you use PNG instead of JPG, though it requires the file to be changed a bit more.