Feral Heart

Help & Guidance => Game Help => Topic started by: VortexAlive on December 30, 2016, 06:45:52 pm

Title: Needing Help Making Items For FeralHeart That Have More Than One Texture(SOLVED)
Post by: VortexAlive on December 30, 2016, 06:45:52 pm
This problem is related to making /Items/ not objects.

I can make multi-textured objects just fine but I can't seem to make a multi-textured item!

A quick example of what I have so far for reference:
[Couch] #WIP
mesh=vtxSimpleCouch.mesh
material=vtx1xGrayMat
bone=Main
offset_f=0 -5 8
rotation_f=85 -180 0
offset_c=0 -5 8
rotation_c=85 -180 0

This Couch item was made with two materials/textures in Blender and they both show up in object maker but when I make it an item it just covers the entire object with one texture, I know why but I don't know what to change to make it display 2 textures instead of one.
In the material section, what would I do to specify the second texture like I would when making it in object maker? Or do I need to do something in the .material file for it to make it notice two mats instead of one, how would I do that?

Edit: I've noticed that the items that come with the Legendary Items Pack have multiple textures. However, many of them don't even specify a material in items.cfg but have .material files?... this is really confusing because their textures work just fine until you rename a couple of files relating to the specific item but normally if no material is specified it would simply use the BaseWhite texture and when I re-organized the items.cfg, all of the multi-textured items stopped displaying their textures.

The many things I've tried so far that don't work:

material=name1 name2

materials=name1 name2

material=name1
material=name2

material1=name1
material2=name2

material 1=name1
material 2=name2

material(s)=CouchMats #I did this is the .material file: material CouchMats/tex1 & material CouchMats/tex2
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture
Post by: Kuri on December 30, 2016, 07:13:22 pm
i have retextured objects, you need the material to specify 2 textures, like if you examine the default flowers you'll see they have 2 leaves & 3 petals specified.  Just copy what they did.
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture
Post by: VortexAlive on December 30, 2016, 07:19:11 pm
I appreciate the help Kuri but like I said, this is about wearable items which are made differently... not objects. I am well aware of how the objects work.
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture
Post by: Kuri on December 30, 2016, 07:48:08 pm
Oh right...  i retextured the glowsticks and stuff once but the material for them is different.  Never mind me then...  *Goes to corner*
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture
Post by: Morgra on December 30, 2016, 08:15:02 pm
Okay Vortex, I am actually pretty clueless, as I have no experience with this but I thought I'd input some information about materials. You say you were trying to add different textures in the items.cfg file, correct? And that you've tried changing to a different texture in the .material file? Well, I wasn't sure by the way it sounds, but it sounds like you haven't tried layering the different textures. Now, I've only worked with presets on this, so for objects, I have extremely minimal knowledge in the technicalities of how to get two to show up, but in most of the material files I looked through that had two textures, it looked a little something like this (i.e. it had multiple passes/texture_units):

(http://puu.sh/t62q6/5de9753637.png)



That image is just one item's material, but it has two different "layers" (I call them that but I don't really know the actual terminology) with two different textures. Now as for trying to get them to appear correctly from blender onto there, I would have no idea. I've never worked with that before. However, try experimenting with adding a second pass above the other one with your two different textures and see how it looks. (If you need a little bit better description I can do my best to do so)


Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture
Post by: VortexAlive on December 30, 2016, 08:40:34 pm
I FIGURED IT OUT!
Here is an explanation of what I had to do:

To start with, it had /nothing/ to do with the .material files or the items.cfg! I saw that some items in the items.cfg had no material line and then it hit me, those items have .material files that are specified in the .mesh files themselves! I had to make 2 materials in blender like this:
(http://rs38.pbsrc.com/albums/e104/VortexAlive/Specify%20Two%20Materials%20In%20Blender_zpsfg29ytpc.png?w=280&h=210&fit=crop)
(http://rs38.pbsrc.com/albums/e104/VortexAlive/A%20Multi-Textured%20Item%20for%20FH_zpsthhily3m.png?w=280&h=210&fit=crop)

and then I removed the material line from the items.cfg since the mesh itself already specified them:

[Couch] #WIP -multi-texture works!
mesh=vtxSimpleCouch.mesh
bone=Main
offset_f=0 -5 8
rotation_f=85 -180 0
offset_c=0 -5 8
rotation_c=85 -180 0


Unfortunately I am going to have to fix a ton of changes I made to get all those multi-textured items working again... x'D

Thank you very much everyone! All of your input helped very much! ^.^

---(For Morgra) That is actually just having multiple materials in the same file to help keep the folder that the .material files are in from having thousands of files. It can really help keep things organized. The word "pass" is the same as the word "layer" in this case but all that does is slap a new texture on top of the previous layer. =)
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture(SOLVED)
Post by: Morgra on December 30, 2016, 08:53:24 pm
So glad you got it to work! Even though it must've taken you a lot to figure out to remove the material line, it makes sense in a way, doesn't it?

And your response to me: I thought it could have something to do with it, but wasn't sure. I'll have to work with objects a bit and it'll all probably make some more sense to me. 

Congrats for figuring it out! ^^
Title: Re: Needing Help Making Items For FeralHeart That Have More Than One Texture(SOLVED)
Post by: Kerriki on December 31, 2016, 12:11:26 am
Have fun with the items! I'll go ahead and lock this up now~