PDA

View Full Version : Shader questions


Toasty Fresh
09-12-2009, 05:00 AM
I have a couple of questions referring to shaders.

First off: Does this game actually use normal mapping anywhere? I see things like shinyness on Sith armor but otherwise the models appear rather flat.

Secondly: Does it support specular mapping?

Thirdly: EDIT: NVM this one, instead could someone please tell me the filename of the sith armor texture? It's not armor nor robes and I can't find it under the clothes textures but it's really very difficult to find.

Thanks for your time.

TriggerGod
09-12-2009, 10:40 AM
First off: Does this game actually use normal mapping anywhere? I see things like shinyness on Sith armor but otherwise the models appear rather flat.
In some game files, I've found that the {texturename}b (or something like that) appears to be a normal map. I don't exactly know if they do anything noticeable. Its mainly in the textures for the areas, but I've noticed some others in the texture files for TSL (the gand texture comes to mind)

Secondly: Does it support specular mapping?
Unfortunately, not. The closest we'll ever get for KOTOR/TSL modding is using lightmaps in custom modeled modules (still being worked on) and using the shader files.

Thirdly: EDIT: NVM this one, instead could someone please tell me the filename of the sith armor texture? It's not armor nor robes and I can't find it under the clothes textures but it's really very difficult to find.
It should be under the N's in the textures. It should be "N_sithsolder01" or something like that. Most, if not all NPC's texture files (excluding your party members, animals/beasts (IIRC, not sure on this one), and droids' textures) are located in the N subtree.

Toasty Fresh
09-12-2009, 07:30 PM
Okay, cool. I wasn't expecting spec maps (this game is rather old :P) although I'd like to know how the Selkath's heads were done. They're kind of slimy-ish, it looks like spec mapping but I can't be sure.

TriggerGod
09-12-2009, 08:14 PM
Okay, cool. I wasn't expecting spec maps (this game is rather old :P) although I'd like to know how the Selkath's heads were done. They're kind of slimy-ish, it looks like spec mapping but I can't be sure.

They use CM_SpecMap, which is one of the shader files I mentioned earlier. SpecMap isn't like specular maps like 3ds Max and other, newer games can support.

IIRC, the Selkath uses this line in their .txi file:
bumpyshinytexture CM_SpecMap

I could be wrong, and it could just be
envmaptexture CM_SpecMap

Toasty Fresh
09-13-2009, 01:59 AM
Ah, okay.

Also, the question I asked earlier which I edited out, I discovered I shouldn't actually have edited out. So, here is my original question:

How do glow maps AKA illumination maps work? Is it done via one of the shader files as demonstrated in the post above this?

Achilles
09-13-2009, 03:42 AM
If you're asking about what I think you're asking about, try envmaptexture CM_Bright (ala the electromesh armors)