Feral Heart

Help & Guidance => Game Help => Topic started by: Justice on November 30, 2011, 02:26:36 am

Title: How do you make a material file for a object group?
Post by: Justice 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
Title: Re: How do you make a material file for a object group?
Post by: smokey ash 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.
Title: Re: How do you make a material file for a object group?
Post by: Justice 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.
Title: Re: How do you make a material file for a object group?
Post by: Thierry 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.