Author Topic: How do you make a material file for a object group?  (Read 1057 times)

Offline Justice

  • Dedicated Supporter
  • ***
  • Posts: 300
  • Floof-O-Meter: 23
  • What is dead may never die
    • View Profile
    • My DeviantArt
How do you make a material file for a object group?
« on: November 30, 2011, 02:26:36 am »
Yeeeeahhh, so making my own textures and making material files is like the only thing i cant ever get right. I've looked up on this forum how to do them and i still dont get it right. Lol! I'm awwwesome!


Sooo can anyone help me out here? Its all in the title of this post! =D


Also, still looking who can retexture a default flower red for me for free! =D I've tried like 3 different times...not good. e.e
Bane is my idol.


Offline smokey ash

  • Dedicated Supporter
  • ***
  • Posts: 393
  • Floof-O-Meter: 101
  • :D
    • View Profile
Re: How do you make a material file for a object group?
« Reply #1 on: November 30, 2011, 02:44:22 am »
The basic code for a material is:
Code: [Select]
material (insertname)Mat
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture (intsertimagenameAndFormat)
}
}
}
}
So edit what's in () and you should be good to go.
Make sure you make it a material file too, you can do that by copying another one.
THIS ACCOUNT IS NO LONGER IS USE.
IF YOU WISH TO FIND ME CONTACT;

Black_Veil_Brides on the forum.
Or blackVbrides ingame

Offline Justice

  • Dedicated Supporter
  • ***
  • Posts: 300
  • Floof-O-Meter: 23
  • What is dead may never die
    • View Profile
    • My DeviantArt
Re: How do you make a material file for a object group?
« Reply #2 on: November 30, 2011, 10:28:01 pm »
But do you use that same code when you make a material file for an object group? Cause an object group isnt a texture.
Bane is my idol.


Thierry

  • Guest
Re: How do you make a material file for a object group?
« Reply #3 on: November 30, 2011, 10:57:43 pm »
the code that Adjazz showed to you is for making a .material file, when you have the .material file, then go to object maker and put the material name to the selected mesh.

If you want to know more, in the .object file you will find some code like this:
[groupname]
mesh0=BasicCube.mesh;0 0 0;1 1 1;1 0 0 0;

if you want to change the material of a object directly editing the .object file is hard because you need to know the nunber of sub-meshes of each mesh, in the case of a basic cube is 1.
you can change the material doing this:
[groupname]
mesh0=BasicCube.mesh;0 0 0;1 1 1;1 0 0 0;
(insertname)Mat

is better if you use the object maker.