Understanding Halo 2 Shaders
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)
Understanding Halo 2 Shaders
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
- neodos
- Posts: 1493
- Joined: Sun Dec 09, 2007 8:58 pm
Re: Understanding Halo 2 Shaders
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.
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.
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
Re: Understanding Halo 2 Shaders
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.
Changing the "usage" meta value to Height Map may be necessary to make the shader recognize the image as a bumpmap.
- Grimdoomer
- Admin
- Posts: 1835
- Joined: Sun Dec 09, 2007 9:09 pm
Re: Understanding Halo 2 Shaders
Cougar this is your app?
Don't snort the magic, we need it for the network.
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
- Grimdoomer
- Admin
- Posts: 1835
- Joined: Sun Dec 09, 2007 9:09 pm
Re: Understanding Halo 2 Shaders
Then whos?JacksonCougar wrote:No..
Don't snort the magic, we need it for the network.
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada