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
1 registered members (AndrewAMD), 1,213 guests, and 2 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
Page 1 of 3 1 2 3
Normal Mapping - need help #39360
01/18/05 06:18
01/18/05 06:18
Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
L
Locutus_of_Borg Offline OP
Member
Locutus_of_Borg  Offline OP
Member
L

Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
Hi, I have a problem.
I don't really get it with the normal mapping....
I want the Map react on static and dynamic light. But it won't react on both!
I will now post my screens, code and fx file!
GeForce FX 5900XT
3D GameStudio Comm A6.31






FX-File

Code:
bmap NORMALTEX = <floor1DOT3.tga>;

material floor1
{
skin1=NORMALTEX;
flags=tangent;
}

starter load_fx
{
bmap_to_mipmap(floor1.skin1);
effect_load(floor1,"bump_diffuse.fx");

}

And all that for 5 textures!

Now, how do I get the Textures look not so yellow and how do I get them realistic.
I tried other fx-files with that code, but the textures are all black!

Thanks for help!

Re: Normal Mapping - need help [Re: Locutus_of_Borg] #39361
01/18/05 06:32
01/18/05 06:32
Joined: May 2004
Posts: 157
Earth, for the moment
MASTERJUNOJET Offline
Member
MASTERJUNOJET  Offline
Member

Joined: May 2004
Posts: 157
Earth, for the moment
Ill take a stab at it, perhaps you forgot the action
Code:

action floor_lighting
{
my.material = floor1;
}


Just apply that to the floor, so the floor would have to be an entity or maybe a model. (Entity would work better in my opinion)

Hope this helps


Projects: Jet Force Gemini 2
Re: Normal Mapping - need help [Re: MASTERJUNOJET] #39362
01/18/05 06:35
01/18/05 06:35
Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
L
Locutus_of_Borg Offline OP
Member
Locutus_of_Borg  Offline OP
Member
L

Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
but then I'd have to do the whole house as an map-entity.
That would not be so good!

Re: Normal Mapping - need help [Re: Locutus_of_Borg] #39363
01/18/05 06:49
01/18/05 06:49
Joined: May 2004
Posts: 157
Earth, for the moment
MASTERJUNOJET Offline
Member
MASTERJUNOJET  Offline
Member

Joined: May 2004
Posts: 157
Earth, for the moment
Yeah its a shame that you can attach actions to blocks...however thats the only way to have it influenced by dynamic light. BTW, where did you get the FX file? Is it better that the ultimate lighting shader pack one? Because Im currently working with dynamic lights at this very moment in my project.


Projects: Jet Force Gemini 2
Re: Normal Mapping - need help [Re: MASTERJUNOJET] #39364
01/18/05 07:19
01/18/05 07:19
Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
L
Locutus_of_Borg Offline OP
Member
Locutus_of_Borg  Offline OP
Member
L

Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
found it in the forum!
Forgive me, but I don't know where!
It is not better, but the only thing I got working!

I don't get the "Ultimate Shader Pack" working!
How do you do that?

Last edited by Locutus_of_Borg; 01/18/05 07:23.
Re: Normal Mapping - need help [Re: Locutus_of_Borg] #39365
01/18/05 09:11
01/18/05 09:11
Joined: May 2004
Posts: 157
Earth, for the moment
MASTERJUNOJET Offline
Member
MASTERJUNOJET  Offline
Member

Joined: May 2004
Posts: 157
Earth, for the moment
It works almost the exact same way, only there are two seperate actions, one for world geometry and one for models.


Projects: Jet Force Gemini 2
Re: Normal Mapping - need help [Re: MASTERJUNOJET] #39366
01/18/05 11:02
01/18/05 11:02
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Quote:

Yeah its a shame that you can attach actions to blocks...however thats the only way to have it influenced by dynamic light.



No it's not, by using matt aufterheide's ultimate lighting pack, you can have up to 7 dynamic lights. And the floor doesn't have to be an entity, just a standard WED block. If the material name is the same as a texture's name, everything in the level with that texture will get that material. Simple enough.


--Eric
Re: Normal Mapping - need help [Re: Nadester] #39367
01/18/05 12:21
01/18/05 12:21
Joined: May 2004
Posts: 157
Earth, for the moment
MASTERJUNOJET Offline
Member
MASTERJUNOJET  Offline
Member

Joined: May 2004
Posts: 157
Earth, for the moment
I meant for the FX file he is using, Matts shader can illuminate anything.


Projects: Jet Force Gemini 2
Re: Normal Mapping - need help [Re: MASTERJUNOJET] #39368
01/18/05 12:26
01/18/05 12:26
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Oh I see, I assumed you made that statement in general to all material effects.


--Eric
Re: Normal Mapping - need help [Re: Nadester] #39369
01/18/05 14:59
01/18/05 14:59
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Having looked over this .fx file, the reason you dont get lights reacting is that the shader doesn't do dynamic lights.. this a "cheap" shader which uses lightmapping to fake the lights. Use my Ulimate Lighting Pack to do dynamic lighting.

Page 1 of 3 1 2 3

Moderated by  Blink, Hummel, Superku 

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