Author Topic: Preset Material Problem?  (Read 1152 times)

Offline Prideland

  • Curious Wanderer
  • *
  • Posts: 35
  • Floof-O-Meter: 0
    • View Profile
Preset Material Problem?
« on: March 10, 2013, 05:59:23 pm »
Hello, i was trying to make a preset, (this one with 2 different sides not the same sides) And when i tried to change the coding in the material file, i accidently saved it as a .txt file, and it changed all the others into a notepad file =/ What should i do now? Anyway i can save it back to a material file?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Material Problem?
« Reply #1 on: March 10, 2013, 07:26:17 pm »
It changed all the others to a text file? That doesn't sound right.
Are you sure it didn't just change the icon?
If you opened a material file using "choose default program" and chose notepad, it just makes it have a notepad icon from then on. Like this;


But it should still be a material file.
If not, then just open the file, and then choose Save as...
and click All Files from the dropdown,
and type .material after the name.

Offline Prideland

  • Curious Wanderer
  • *
  • Posts: 35
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Material Problem?
« Reply #2 on: March 10, 2013, 07:51:05 pm »
I cant exactly remember now, i will check when my laptop is less laggy, but i do not remember being a ,material option in the drop down list

Offline Prideland

  • Curious Wanderer
  • *
  • Posts: 35
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Material Problem?
« Reply #3 on: March 10, 2013, 08:12:30 pm »

It still is a meterial file (whoops) but it still is not working? I mean, all i see is a marshmellow, again =/ I only did the head to see if it was working.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Preset Material Problem?
« Reply #4 on: March 10, 2013, 08:23:44 pm »

It still is a meterial file (whoops) but it still is not working? I mean, all i see is a marshmellow, again =/ I only did the head to see if it was working.

Please avoid double posting and use the Modify button c:

It's most likely because your image names do not match with the names in the .material file. You will have to open it up, scroll down until you see this:

material preset_5_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_5head.jpg
         }
      }
   }
}
material preset_5_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_5head.jpg
         }
      }
   }
}

The text in purple is the left side of the preset. Where it says preset_5.jpg change to it to the image name (presetleft_5head) Make sure you include the format, if your image is a .png you should change it to a .jpg like in the .material file.

The text in red is the right side of your preset. Change the preset_5head on the second code to the name of your image, presetright_5head. When you're done, click File then Save to save it ;)



Hope that makes sense :)
« Last Edit: March 10, 2013, 08:25:59 pm by Ingredient »
Will be inactive due to work and exams.

Offline Prideland

  • Curious Wanderer
  • *
  • Posts: 35
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Material Problem?
« Reply #5 on: March 10, 2013, 08:42:15 pm »
Ah, alright, i saved the images as .png, thank you, you seem really good at presets, this is the secound time you helped me :P (With my first preset when i done a typo in the name)

If this does not work i'll modify this post.
(It worked, thank you again ^^;;)
« Last Edit: March 10, 2013, 08:46:09 pm by Rizzz »

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Preset Material Problem?
« Reply #6 on: March 10, 2013, 08:47:40 pm »
Ah, alright, i saved the images as .png, thank you, you seem really good at presets, this is the secound time you helped me :P (With my first preset when i done a typo in the name)

If this does not work i'll modify this post.
(It worked, thank you again ^^;;)

You're welcome, Rizzz :) I'm glad you've got it working now, happy preset making ^^
Will be inactive due to work and exams.