Feral Heart

Help & Guidance => Game Help => Topic started by: Wolflover224 on August 16, 2017, 10:15:54 pm

Title: How to texture an object with terrain?
Post by: Wolflover224 on August 16, 2017, 10:15:54 pm
So I need to know how to texture an object with the brownish stone terrain texture. Help?
Title: Re: How to texture an object with terrain?
Post by: VortexAlive on August 16, 2017, 10:51:29 pm
What you would do is make a new .material file in "FeralHeart > media > objects > my_objects" that uses the said texture and then you will be able to use the texture on any object by typing in the material name.
Title: Re: How to texture an object with terrain?
Post by: Wolflover224 on August 17, 2017, 09:36:05 pm
What you would do is make a new .material file in "FeralHeart > media > objects > my_objects" that uses the said texture and then you will be able to use the texture on any object by typing in the material name.

I don't really know how to make materials or anything like that
You know how when you type something like mount1.mesh in the object maker and it has the default savannah grass texture on it? I wanted to find a way to get the stone texture on there instead of the default texture.
Title: Re: How to texture an object with terrain?
Post by: VortexAlive on August 17, 2017, 09:54:11 pm
Go to "FeralHeart > media > objects > myRocks".
Copy the rock.material file.
Go to "FeralHeart > media > objects > my_objects".
Paste the file in there.
Now right click on the file and Rename it to something else, then open it and change the first entry to this:
Code: [Select]
material yourMat
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture yourTex.jpg
}
}
}
}

and remove all the other entries. (you can add more of your own if you want to.)

Then go to "FeralHeart > media > terrains > textures" and find the texture you want to use.
Copy it & paste it into "FeralHeart > media > objects > my_objects".

Now you should be able to load the ground texture you want by typing yourMat into the material field of the object maker.
Title: Re: How to texture an object with terrain?
Post by: Wolflover224 on August 18, 2017, 09:22:46 pm
Go to "FeralHeart > media > objects > myRocks".
Copy the rock.material file.
Go to "FeralHeart > media > objects > my_objects".
Paste the file in there.
Now right click on the file and Rename it to something else, then open it and change the first entry to this:
Code: [Select]
material yourMat
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture yourTex.jpg
}
}
}
}

and remove all the other entries. (you can add more of your own if you want to.)

Then go to "FeralHeart > media > terrains > textures" and find the texture you want to use.
Copy it & paste it into "FeralHeart > media > objects > my_objects".

Now you should be able to load the ground texture you want by typing yourMat into the material field of the object maker.

I don't really understand it
I remember that people could texture caves to have the flower terrain on them (I did it before) and I want to do that but make it the brownish stone tex instead of the flower pattern.
It didn't require making a material file you could just type in the tex and go
Title: Re: How to texture an object with terrain?
Post by: Kuri on August 18, 2017, 09:48:33 pm
Just put "material rockmat" in the item maker (as it's a default mat' it should work)
Title: Re: How to texture an object with terrain?
Post by: Wolflover224 on August 19, 2017, 12:54:53 am
Just put "material rockmat" in the item maker (as it's a default mat' it should work)

No not the default rock texture I'm talking about texturing an item the same texture as the terrain texture called brownish stone.
Title: Re: How to texture an object with terrain?
Post by: Morgra on August 19, 2017, 01:43:31 am
I don't really understand it
I remember that people could texture caves to have the flower terrain on them (I did it before) and I want to do that but make it the brownish stone tex instead of the flower pattern.
It didn't require making a material file you could just type in the tex and go

For clarification, you definitely do need to make a .material file for a new object that's using the terrain texture that you wanted. When making objects in Object Maker, the object looks for a .material file and not a plain image. That's why VortexAlive's instructions are the way to go. Paste the brownishstone texture into my_objects, make a new .material file as shown by Vortex, also having that .material into my_objects and then type in what's next to material into the Material input box in Object Maker.
He showed it as "yourMat" <----what you type in.
Title: Re: How to texture an object with terrain?
Post by: Wolflover224 on August 20, 2017, 03:22:42 am
I don't really understand it
I remember that people could texture caves to have the flower terrain on them (I did it before) and I want to do that but make it the brownish stone tex instead of the flower pattern.
It didn't require making a material file you could just type in the tex and go

For clarification, you definitely do need to make a .material file for a new object that's using the terrain texture that you wanted. When making objects in Object Maker, the object looks for a .material file and not a plain image. That's why VortexAlive's instructions are the way to go. Paste the brownishstone texture into my_objects, make a new .material file as shown by Vortex, also having that .material into my_objects and then type in what's next to material into the Material input box in Object Maker.
He showed it as "yourMat" <----what you type in.

How do you make a material file and how do you implement the textures into it? It's just super confusing lol
Also I didn't realize how much the modding and stuff changed from the old feralheart haha
Title: Re: How to texture an object with terrain?
Post by: VortexAlive on August 20, 2017, 08:25:55 am
This is how you Create a new Material file:
Go to "FeralHeart > media > objects > myRocks".
Right click on the "rock.material" file.
Left click "Copy"
Go to "FeralHeart > media > objects > my_objects".
Right click in that folder.
Left click "Paste" to create a new material file.
Now right click on the file you just made and "Rename" it to something else.

This is how you use the Ground Textures in that newly created material file:
Then open your new material file and change the first entry to this:
Code: [Select]
material yourMat
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture yourTex.jpg
}
}
}
}

and remove all the other entries. (you can add more of your own if you want to.)

Then go to "FeralHeart > media > terrains > textures" and find the texture you want to use.
Copy it & paste it into "FeralHeart > media > objects > my_objects".

Now you should be able to load the ground texture you want by typing yourMat into the material field of the object maker.

It really hasn't changed, the difference is that you are trying to use a Ground Texture which does not already have a Material set up. All the default Object Textures already have these and you would only need to know their material name to use their texture.

Please let us know if there is a certain part you are not understanding. =)
Title: Re: How to texture an object with terrain?
Post by: Wolflover224 on August 21, 2017, 11:48:01 pm
This is how you Create a new Material file:
Go to "FeralHeart > media > objects > myRocks".
Right click on the "rock.material" file.
Left click "Copy"
Go to "FeralHeart > media > objects > my_objects".
Right click in that folder.
Left click "Paste" to create a new material file.
Now right click on the file you just made and "Rename" it to something else.

This is how you use the Ground Textures in that newly created material file:
Then open your new material file and change the first entry to this:
Code: [Select]
material yourMat
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture yourTex.jpg
}
}
}
}

and remove all the other entries. (you can add more of your own if you want to.)

Then go to "FeralHeart > media > terrains > textures" and find the texture you want to use.
Copy it & paste it into "FeralHeart > media > objects > my_objects".

Now you should be able to load the ground texture you want by typing yourMat into the material field of the object maker.

It really hasn't changed, the difference is that you are trying to use a Ground Texture which does not already have a Material set up. All the default Object Textures already have these and you would only need to know their material name to use their texture.

Please let us know if there is a certain part you are not understanding. =)

Thank you!! I'm not understanding how to implement it into the game and I don't know how to make a .material file to put onto the object.
Thanks! :D
Title: Re: How to texture an object with terrain?
Post by: Kuri on August 22, 2017, 04:29:39 am
Does it help if you open, like... notepad or something, and copy-paste the code Vortex left, then save it as "Yourcustomtexturename+yourname.material" and save as "All file types" instead of a word document and save it in the "Feralheart/media/materials" location? Because that's with i do.