Author Topic: Item material file not texturing custom items  (Read 967 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Item material file not texturing custom items
« on: October 04, 2017, 07:10:05 am »
I have made a material file, but it doesn't texture the item.

I've tried putting in the .material file name, the name inside the .material file, the name of the image, nothing's stopping the item from being textureless.
I carefully checked the spelling and the capital letters, it's spelled correctly and with the right capitalization.

Coding for the item:
Code: [Select]
[Backpack]
mesh=LifeJacketSoWeCanBeSa.mesh
material=VestFG
bone=spine1
offset_f=0.01 -0.20 2
rotation_f=-450 180 1
offset_c=0.01 -0.50 2
rotation_c=-f=-450 180 1

Material file:
Code: [Select]
material VestFG
{
technique
{
pass
{
diffuse 0.800000 0.800000 0.800000
specular 0.500000 0.500000 0.500000 12.500000
                }
                 texture RoboVest.png
}
}
   }
}
[/color]
« Last Edit: October 04, 2017, 07:13:37 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Item material file not texturing custom items
« Reply #1 on: October 04, 2017, 09:15:06 am »
Found you have to reverse engineer the custom items material in blender (i can't do this but you no doubt can) and write it into the mesh as on of the materials.
I've re-textured cookies ect but they show up as white to other people, even if they're wearing the same item.   i saw them as having the items default coolers/textures.  Is this what you're experiencing?  Or am i way off again?
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"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Item material file not texturing custom items
« Reply #2 on: October 04, 2017, 10:29:32 am »
i saw them as having the items default coolers/textures.  Is this what you're experiencing?  Or am i way off again?
I see the default white texture on my item, each polygon is visible.
Screenshot:

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Item material file not texturing custom items
« Reply #3 on: October 04, 2017, 08:59:58 pm »
Yeah, that looks like the time i made items and goofed up the material.  It'll show fine as a map object right?  I'm sure your or Vortex can figure out how to re-write the material in the mesh itself.
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"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Item material file not texturing custom items
« Reply #4 on: October 04, 2017, 11:49:17 pm »
It'll show fine as a map object right?
My custom item works as a map object, it can have a texture in the Object Maker.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.