Author Topic: How to retexture?  (Read 2089 times)

Smiling.Sin

  • Guest
How to retexture?
« on: July 12, 2013, 03:35:27 am »
Hello there. c: I'm looking to retexture meshes, but I've never done so before so I would like to ask for some help. I have the texture in the my_objects folder, but when I type in it's name it says it cannot be found. Apparently I need to do something with a .material folder, but what? Thank you for your time. o.o

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: How to retexture?
« Reply #1 on: July 12, 2013, 05:13:58 am »
Let me show you an example to help. Let's say we made a texture, and we want to put it on an object.
Let's just use this code sturf in notepad for our material, eh?

Code: [Select]
material [MATERIALNAMEYOUWANT]
{
technique
{
pass
{
alpha_rejection greater 128
cull_hardware none
cull_software none

texture_unit
{
texture [TEXTURENAME].png or .jpg, any type of file really like .gif
}
}

}

}

Take away alpha_rejection greater 128 if you want, if the object has no transparency really. You can leave it there though. ^^
There are other object material codes too, but let's just load the material name in Object Maker after adding a mesh to the scene.
I hope this made sense and well... helped. >_<

Smiling.Sin

  • Guest
Re: How to retexture?
« Reply #2 on: July 12, 2013, 05:03:56 pm »
Let me show you an example to help. Let's say we made a texture, and we want to put it on an object.
Let's just use this code sturf in notepad for our material, eh?

Code: [Select]
material [MATERIALNAMEYOUWANT]
{
technique
{
pass
{
alpha_rejection greater 128
cull_hardware none
cull_software none

texture_unit
{
texture [TEXTURENAME].png or .jpg, any type of file really like .gif
}
}

}

}

Take away alpha_rejection greater 128 if you want, if the object has no transparency really. You can leave it there though. ^^
There are other object material codes too, but let's just load the material name in Object Maker after adding a mesh to the scene.
I hope this made sense and well... helped. >_<

How do you make a Mat file, though? Do you just use notepad?

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: How to retexture?
« Reply #3 on: July 12, 2013, 05:42:37 pm »
Yes. ^^ I think so.

Smiling.Sin

  • Guest
Re: How to retexture?
« Reply #4 on: July 12, 2013, 09:40:43 pm »
It still didn't work. DX I did what you said but it still cannot be found.

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: How to retexture?
« Reply #5 on: July 12, 2013, 10:24:17 pm »
Are you sure you put the caps in there, and put the .material in my_objects?
Make sure [TEXTURENAME].png is the exact name of your texture file, including the end after the dot.
Also, [MATERIALNAMEYOUWANT] is the exact name you put in under Material, and be sure to include the caps: it's caps sensitive.
Get rid of the wording I put after the [TEXTURENAME].png too, because that's just part of the tutorial. :P
Then put it in Feralheart>media>objects>my_objects and name it [MATERIALNAME].material and also, do not forget the .material at the end. XD
Hope this made sense and helped, hurr. Don't forget to open it with notepad and save it! ^^

Smiling.Sin

  • Guest
Re: How to retexture?
« Reply #6 on: July 12, 2013, 10:44:45 pm »
Okay, I think I got it to work. Thank you. ^^;

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: How to retexture?
« Reply #7 on: July 12, 2013, 11:26:38 pm »
You're welcome. ^^ *derp*