PDA

View Full Version : Shader help



Delta4907
July 20th, 2009, 11:36 AM
Ok so the Blue channel of the multipurpose map is the change color mask, correct? And Red is specular? I'm trying to redo the H2 Elite shaders, so I used the alpha map in the Red channel, since its used as the specular map anyway. I have the primary change color map in the Blue channel, and the illumination in the green channel. But when I go to test the shaders ingame, after setting up the minor colors in the biped, the whole diffuse is tinted blue, instead of where it should be. Am I misunderstanding what the multipurpose does or did I do something wrong? I didnt want to mask off the armor using an alpha, because then doing so the reflection cubemap would only appear on where the primary color would be, but then the color change would work right. Also, I noticed while re-reading the maps description in the shader_model tag, it mentions something about a secondary color change mask. I thought there could only be one color change mask?

teh lag
July 20th, 2009, 03:42 PM
The description in the tags is lying.

Change-color is the alpha, not blue.

Advancebo
July 20th, 2009, 04:26 PM
-Red is Specular
-Green is Self Illumination
-Blue has something to do with the detail map I think, or maybe how much color is changed in relation to Alpha
-Alpha is Color Change

Spartan094
July 20th, 2009, 04:38 PM
Red: Specular reflection mask (modulates reflections)
Green: is Self Illumination mask (adds lights)
Blue: primary change to color mask (recolors diffuse map)
Alpha: is Color Change (auxiliary mask)

What I said above is in the .shader_model

Just look what is in the shader_model.

Bleh I corrected advancedbo anyways.

teh lag
July 20th, 2009, 05:09 PM
Red: Specular reflection mask (modulates reflections)
Green: is Self Illumination mask (adds lights)
Blue: primary change to color mask (recolors diffuse map)
Alpha: is Color Change (auxiliary mask)

What I said above is in the .shader_model

Just look what is in the shader_model.

Bleh I corrected advancedbo anyways.


The description in the tags is lying.

Change-color is the alpha, not blue.

Upon further investigation, Blue and Red are both tied to specular. I think one affects overall reflection of light and the other affects the cubemap and coloration, but I don't know which. I usually make both the R and B channels whatever the specular map should be (in your case, the h2 map's alpha) and I've never had any real problems.

Spartan094
July 20th, 2009, 05:43 PM
Bleh sorry lag. I wasn't thinking atm for the color change. I think its the Blue channel that effects lighting more then the Red. But a purple multipurpose does just fine. But you need to apply a good cubemap to conteplment it. Then again lag knows more then me for what a good multi should be.

Delta4907
July 20th, 2009, 10:38 PM
Ah, Ok thanks lag. What did it mean by the secondary change color mask though? Is that untrue as well?