Page 1 of 1

Separating Shaders On Custom Models

Posted: Tue Jan 08, 2008 5:41 pm
by DarkShallFall
Intro:
This tutorial is going to explain how to separate shader groups on a custom model.

First extract the model you are going to be replacing, with entity(I'm using 1.4 for this tutorial)
Image

Every model in Halo 2 has at least one or more shaders. When you extract a model there will be mesh groups, these groups will identify the shader grouping. So open the extracted model in a modeling application(I will be using Misfit model 3d for this)
Image
Image
This is the group window:
Image
The bitmap that the group is dependent on is usually close or exactly the same as the shaders name that it represents.

There are two groups for each shader. The bottom group is the one that is the actual shader.
So it goes(Red is the used one)
0
0
1
1
2
2
Image

Merge your model into the extracted model.
Image
Image

Select the original mesh that you extracted form halo and hide it.
Image
Image

After that select part of the mesh you want as a different shader from the rest.
Image

Once selected you can add it to a group, to do that click the add to group button in the grouping menu and all the selected faces will be added to that group.
Image

After that, unhide the mesh you hid before. The reason we had to hide it is because if you delete it the groups that are there with it are also deleted.
Image
Then reselect the mesh and delete it.
Image
Image
Then save and inject back into your map and enjoy a model with separated shaders :)
Image
Image

Posted: Tue Jan 08, 2008 6:36 pm
by grimdoomer
fuckin nice :D

Posted: Tue Jan 08, 2008 8:35 pm
by DrXThirst
Wow, amazing!

Posted: Wed Jan 09, 2008 9:50 am
by G.I.R.
Great work! I've been wondering how to do this ever since model injection was released. :D

Posted: Wed Jan 09, 2008 10:43 am
by Tural
It appears that all it's doing is changing the material ID, which would be expected if you wanted to have different shaders on a single model. I'm rather surprised nobody posted something concerning this before, as that's a pretty basic concept.

Posted: Wed Jan 09, 2008 11:35 am
by Keablr
Awesome Dark!!!

Posted: Wed Jan 09, 2008 3:05 pm
by mr_penguin
hey thanks man for posting this, I now feel like an idiot for not taking notice of the groups.

Posted: Wed Jan 09, 2008 5:20 pm
by Rockymods
Tural wrote:It appears that all it's doing is changing the material ID, which would be expected if you wanted to have different shaders on a single model. I'm rather surprised nobody posted something concerning this before, as that's a pretty basic concept.
I did on two forums, including this one. Atleast it's here now, thanks argon! I needed this