Author Topic: Material Files?  (Read 1831 times)

rawr_loud

  • Guest
Material Files?
« on: July 14, 2011, 08:01:22 pm »
How do I make a material file out of a .png image? Do I need a special program?

Offline Redlinelies

  • The FeralHeart Guru
  • Immortal Legend
  • *****
  • Posts: 7,077
  • Country: 00
  • Floof-O-Meter: 792
  • Modoru Pride
    • redlinelies
    • redlinelies
    • redlinelies
    • redlinelies
    • View Profile
Re: Material Files?
« Reply #1 on: July 14, 2011, 08:09:23 pm »
For what exactly do you plan on using this image for?
Former community manager of FeralHeart

rawr_loud

  • Guest
Re: Material Files?
« Reply #2 on: July 14, 2011, 08:19:13 pm »
For a custom mesh texture. I already have the image made, I just want to make it a .material file so I can use it in game

rawr_loud

  • Guest
Re: Material Files?
« Reply #3 on: July 14, 2011, 08:35:40 pm »
Oh, and sorry to double post but I forgot some information. I will download any program to convert it and the .png image is laid out correctly. I already have the .mesh files I just need the textures to get on them. :3

Offline DimensionGal

  • The Poison Dragon's Tainted Lily
  • Finest Floof
  • ***
  • Posts: 653
  • Floof-O-Meter: 80
  • aka Kerrigan the Mapmaker
    • View Profile
    • My Deviant Art page
Re: Material Files?
« Reply #4 on: July 14, 2011, 08:57:38 pm »
Depends on what kind of coding you want for the .material file. There's lots of codes that do different things.

This is the basic coding for a .material file:
Code: [Select]
material materialname
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture picturename.jpg
}
}
}
}

1. Copy all of that, paste it into a blank notepad file.

2. Replace the "materialname" with whatever you want your material to be called. It's case-sensitive, just keep that in mind.

3. Replace the "picturename.jpg" with your picture's name and extention. Materials can be a .jpg or a .png.

4. Save the file in Feral Heart's Objects folder somewhere, preferably in my_objects.

5. Open the place where you saved it, click on it so you can rename it. Get rid of .txt extention, and put .material instead.

6. You have a basic .material file! ^.^
« Last Edit: July 14, 2011, 09:01:36 pm by Kerrigan »
?Mapmaker serving 16,700+ Feral Heart users?

rawr_loud

  • Guest
Re: Material Files?
« Reply #5 on: July 14, 2011, 09:04:40 pm »
Thank you!

rawr_loud

  • Guest
Re: Material Files?
« Reply #6 on: July 14, 2011, 09:10:29 pm »
Wait... where do I put .material? I didn't quite understand. When I clicked on it in my_objects, the notepad came up and I couldn't save it as a .material. >.<

Thunderheart

  • Guest
Re: Material Files?
« Reply #7 on: July 14, 2011, 09:37:55 pm »
I guess you have to remove the .txt and put .material instead. I would do it while saving, instead of choosing 'txt files' (or whatever is there, in the lower box at the bottom) choose 'all file types' and put a .material in the upper box after the file name.