Understanding Halo 2 Shaders

Post Reply
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Understanding Halo 2 Shaders

Post by JacksonCougar »

Understanding Halo 2 Shaders
Image
All similarly coloured items should be considered linked, and should be changed to mirror each other. Although leaving them different will not destroy a map necessarily it may have adverse effects.
Stem - Determines how all the bitmaps are blended and used within the shader. Changing this should rarely be done, and will rarely result in desirable results as each stem needs certain bitmaps, and perhaps certain shader layouts.

Basemap - the basemap is usually the colour bitmap: it will be rendered almost always as-is by the shader: basemap can be considered the Diffuse map.

Unknown [0] [bitm] - The bumpmap for the shader: can be any bitmap type and the engine will try to convert it into a bumpmap: using normal maps results in working bumps in-game. Bump maps ("black & white" or height maps) may work here as well, although that is untested.

Unknown [3] [bitm] - The detail map for the shader: this bitmap will be rendered much smaller then the basemap and will tile within. It is used to give textures more detail when viewed up close.

In all a shader can contain any of the following bitmap types:
Basemap (diffuse map)
Illuminaton map (self-illume map)
Opacity (usually, if not always, contained within the basemap or bumpmap alpha channel)
Bumpmap (usually, if not always, a normal map)
Reflectionmap (Usually a cubemap, also)
Specularity map (Usually, if not always, contained within the basemap or bumpmap alpha channel)
User avatar
neodos
Posts: 1493
Joined: Sun Dec 09, 2007 8:58 pm

Re: Understanding Halo 2 Shaders

Post by neodos »

Stem:

tex_bump = texture + bumpmap

tex_bump_env = texture + bumpmap + cubemap + rasterizer

tex_bump_env_color_change = texture + bumpmap + cubemap + rasterizer + color change bitm

etc

The stem uses almost same structure but some change the order of the bitmaps in the shad tag.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Understanding Halo 2 Shaders

Post by JacksonCougar »

Bumpmaps: Can be made with any image image format: ARGB8, DXT1,3,5, And any other 3 channel compression format can store a normal map type image.

Changing the "usage" meta value to Height Map may be necessary to make the shader recognize the image as a bumpmap.
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Understanding Halo 2 Shaders

Post by Grimdoomer »

Cougar this is your app?
Don't snort the magic, we need it for the network.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Understanding Halo 2 Shaders

Post by JacksonCougar »

No..
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Understanding Halo 2 Shaders

Post by Grimdoomer »

JacksonCougar wrote:No..
Then whos?
Don't snort the magic, we need it for the network.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Understanding Halo 2 Shaders

Post by JacksonCougar »

The image is of Entity.
Post Reply