Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bump Mapping and light #415870
01/25/13 00:26
01/25/13 00:26
Joined: Jan 2013
Posts: 63
Loremaster Offline OP
Junior Member
Loremaster  Offline OP
Junior Member

Joined: Jan 2013
Posts: 63
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?




Re: Bump Mapping and light [Re: Loremaster] #415883
01/25/13 08:20
01/25/13 08:20
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
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 ...

Re: Bump Mapping and light [Re: ratchet] #415901
01/25/13 11:07
01/25/13 11:07
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Maybe changing the emissive and ambient colors in the material might help. Give it a try.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Bump Mapping and light [Re: 3run] #415940
01/25/13 23:46
01/25/13 23:46
Joined: Jan 2013
Posts: 63
Loremaster Offline OP
Junior Member
Loremaster  Offline OP
Junior Member

Joined: Jan 2013
Posts: 63
@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.

Re: Bump Mapping and light [Re: Loremaster] #415941
01/26/13 00:23
01/26/13 00:23
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
If you upload a test level (including textures and code) I can have a look at it tomorrow.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Bump Mapping and light [Re: Superku] #415942
01/26/13 00:58
01/26/13 00:58
Joined: Jan 2013
Posts: 63
Loremaster Offline OP
Junior Member
Loremaster  Offline OP
Junior Member

Joined: Jan 2013
Posts: 63
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?


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1