Author Topic: How to texture an object with terrain?  (Read 2091 times)

Offline Wolflover224

  • Community Champion
  • ****
  • Posts: 1,582
  • Country: 00
  • Floof-O-Meter: 16
  • Im an IRL dolphin; On hiatus
    • the-sketchy-orca
    • View Profile
Re: How to texture an object with terrain?
« Reply #10 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

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: How to texture an object with terrain?
« Reply #11 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.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"