Bump Mapping and light

Posted By: Loremaster

Bump Mapping and light - 01/25/13 00:26

I put my guestion here instead of "The Engine", since it is most probably a noob question.

My problem is: I currently test bump mapping via mtl_SpecBump and though the effect is quite nice, it seems, the surfaces ignore the color values of the light. (See the screenshots below, please.)

What am I doing wrong?



Posted By: ratchet

Re: Bump Mapping and light - 01/25/13 08:20

We can see a color change between your two screenshots.
Read the manual, i think Ambient map and sun map properties affects your shader ?
Do you have place the normal map on second skin ?
This is the alpha of 2nd map that is taken account for specular if i remember well ...
Posted By: 3run

Re: Bump Mapping and light - 01/25/13 11:07

Maybe changing the emissive and ambient colors in the material might help. Give it a try.
Posted By: Loremaster

Re: Bump Mapping and light - 01/25/13 23:46

@Ratchett:

It's not a model, it's a BSP-Brush. So no Skins, just the required Wood.tga and Wood_n.tga as texes. Sorry if that wasn't clear.

@3run;

Tinkering with the specular values in mtlFX.c just renders it red or whatever I change, totally unimpressed by ambient light. I am currently tinkering, however with ambient_blue etc. and this seems to at least point in the direction of the desired result. So maybe you fixed my problem, thank you (at least you gave me something to try ;)) Still tweaking, however.

If anyone wants to suggest something different here, I'll be all ears.
Posted By: Superku

Re: Bump Mapping and light - 01/26/13 00:23

If you upload a test level (including textures and code) I can have a look at it tomorrow.
Posted By: Loremaster

Re: Bump Mapping and light - 01/26/13 00:58

That is a very generous offer, and I feel impolite declining it for now. I just feel it will be better if I claw my way through this by myself to learn. May I come back to you if I fail and start to cry?
© 2024 lite-C Forums