Each different hair mesh has its own material. They use the same diffuse texture though. The only difference in each material is the alpha mask texture they use.
So essentially you can copy the material for "hair 1", rename it to "hair 2", change the alpha mask texture to "hide hair 2" and then apply this new material to the "hair 2" mesh.
Lol still working on these textures can you look at this picture and tell me if this is right?
I have created 2 Sc2 Standard Materials and called them Hair 1 Show and Hair 1 Hide is this how you mean its set up?
Currently trying to set these materials up then im gonna work with my java bot to automate keyframe swapping in 3DS max
Also after i have completed one of these models ill upload the .max file for others to use i think and my Java Bot as well.
The texture is correct but you only need one material for each mesh. You dont need a show and hide in 3ds max, just a show OR hide. You swap the texture in starcraft.
Hey Daara After a lot of Trial and Error and tweeking my Program i have finally got a .Max version that looks promising
Ive attached it because for whatever reason i cant seem to export it but i havent done anything strange any idea what it mightbe?
this ones not scaled up in size it just crashes with no errors for me
At first I couldn't get it to even let me preview it in the editor. I went down the list and found that there was something wrong with your Hide Hair 1.dds. After changing that everything seems to work for me. I was able to preview it and commit to a mod. Let me know if it's still not working after checking out that texture.
I switched your Hide Hair 1.dds, to my version of it.
Other than that I saw nothing else wrong with the file.
So following these steps i have managed to almost complete both the Female and Male Troll Models
However im having some issues with one of the textures on the female.
When using Texture Select By Id it works fine on the male model but on the female it replaces one of the hair diffuse files making it black.
Ive Attached the zip file which contains the .m3 Files i have been using it has the models and textures
The main problem seems to be when changing the texture for cloak 2 using the hair slot
maybe if some one has time they can take a look?
EDIT:
By the sounds of it that's exactly what is happening
When the error occurs sometimes i can nolonger show or hide the hair textures
I had an issue with one my female human when I started doing more hair styles. For some reason it just decided that it no longer wanted to allow certain meshes to be shown or hidden.
After setting up your declarations go ahead and create a texture in the data editor that resembles each declaration. You must have one for each individual texture or you can/will have issues. I found this out the hard way when I changed the main texture for a model and it would no longer swap textures. It's simple and takes a few seconds.
Examples:
Naked Human Male
(Baisc) Editor Name: Naked Human Male
(Basic) Editor Prefix: Human -
(Basic) File: Assets\Textures\Naked Human Male.dds
Next I create a behavior that will let the actor know when to show, hide, or swap a texture. This too only takes a few seconds.
Example:
Show Back
Behavior type: Buff
(Basic) Behavior Name: Show Back
Anything else you want to do to the behavior
Hide Back
Behavior type: Buff
(Basic) Behavior Name: Hide Back
Anything else you want to do to the behavior
After creating the behavior I go to the units actor and add events. Some of these can be used for all sets of cloth armor. The behavior is applied by having an item equipped in your inventory.
Examples:
Swap to Cloth Texture
Behavior.Cloth1.On
TextureSelectByID Cloth1
Behavior.Cloth1.On
Create Cloth1 Helmet
Behavior.Cloth1.On
Create Cloth1 Left Shoulder
Behavior.Cloth1.On
Create Cloth1 Right Shoulder
Behavior.ShowClothPants.On
TextureSelectByID ShowClothPants
Behavior.ShowClothGloves1.On
TextureSelectByID ShowClothGloves1
Behavior.ShowClothPants.On
TexutureSelectByID Hide Pants
Behavior.ShowClothPants.On
TextureSelectByID Hide Legs
Behavior.ShowClothGloves1.On
TextureSelectByID Hide Arms
This is almost exactly how mine looks and this is the result.
@zaysite: Go
Each different hair mesh has its own material. They use the same diffuse texture though. The only difference in each material is the alpha mask texture they use.
So essentially you can copy the material for "hair 1", rename it to "hair 2", change the alpha mask texture to "hide hair 2" and then apply this new material to the "hair 2" mesh.
Lol still working on these textures can you look at this picture and tell me if this is right?
I have created 2 Sc2 Standard Materials and called them Hair 1 Show and Hair 1 Hide is this how you mean its set up?
Currently trying to set these materials up then im gonna work with my java bot to automate keyframe swapping in 3DS max
Also after i have completed one of these models ill upload the .max file for others to use i think and my Java Bot as well.
Heres a screenshot of my SC2 Standard Materials
I just gave the link as to not take up a lot of forum space
http://img842.imageshack.us/img842/5765/98sq.jpg
@zaysite: Go
The texture is correct but you only need one material for each mesh. You dont need a show and hide in 3ds max, just a show OR hide. You swap the texture in starcraft.
I've been having a hard time trying to get this to work. Could you please give a detailed guide on how to do this?
Hey Daara After a lot of Trial and Error and tweeking my Program i have finally got a .Max version that looks promising
Ive attached it because for whatever reason i cant seem to export it but i havent done anything strange any idea what it mightbe?
this ones not scaled up in size it just crashes with no errors for me
It crashes at converting to M3
@zaysite: Go
At first I couldn't get it to even let me preview it in the editor. I went down the list and found that there was something wrong with your Hide Hair 1.dds. After changing that everything seems to work for me. I was able to preview it and commit to a mod. Let me know if it's still not working after checking out that texture.
I switched your Hide Hair 1.dds, to my version of it.
Other than that I saw nothing else wrong with the file.
You can also apply a Visibility track in the Dope Sheet to a mesh, turn it to On/Off and hide what you don't need.
T.
My Starcraft II Tutorials Youtube Channel
My Basic Moddeling Tutorials Youtube Channel
My assets here
@Daara87: Go
Hmm im really not sure whats up with mine it crashes when exporting the animations
It can preview the model but not model and animations
Edit: Weird so your right nothing is wrong with it crashes on my computer with XP but opens with Windows 7
So following these steps i have managed to almost complete both the Female and Male Troll Models
However im having some issues with one of the textures on the female.
When using Texture Select By Id it works fine on the male model but on the female it replaces one of the hair diffuse files making it black.
Ive Attached the zip file which contains the .m3 Files i have been using it has the models and textures
The main problem seems to be when changing the texture for cloak 2 using the hair slot
maybe if some one has time they can take a look?
EDIT: By the sounds of it that's exactly what is happening
When the error occurs sometimes i can nolonger show or hide the hair textures
I'll check it out when I get time.
I had an issue with one my female human when I started doing more hair styles. For some reason it just decided that it no longer wanted to allow certain meshes to be shown or hidden.
Since it sounds like the same problem with the showing and hiding,
was there any specific way you fixed it?
Done some updating to the way I do these models.
Here's a list of all of the texture declarations I use to hide and show the different meshes.
After setting up your declarations go ahead and create a texture in the data editor that resembles each declaration. You must have one for each individual texture or you can/will have issues. I found this out the hard way when I changed the main texture for a model and it would no longer swap textures. It's simple and takes a few seconds.
Examples:
Naked Human Male
Show Back
Hide Back
Next I create a behavior that will let the actor know when to show, hide, or swap a texture. This too only takes a few seconds.
Example:
Show Back
Hide Back
After creating the behavior I go to the units actor and add events. Some of these can be used for all sets of cloth armor. The behavior is applied by having an item equipped in your inventory.
Examples:
Swap to Cloth Texture
This is almost exactly how mine looks and this is the result.