Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Normal Mapping without shader?! #368764
04/28/11 10:08
04/28/11 10:08
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Hi,

I'm new to game development and now I'm trying to get familiar with Gamestudio and the hole 3D thing.

The user manual shows how to use shaders (particulary normal mapping) (-> http://www.conitec.net/beta/WED_shaderguide.htm). Paragraph 2 and 3 explain how to apply a material (= shader?!) to an existing surface.

It's working very well, but there's no visible difference if I remove the shader and only use the normal-mapped texture.

Can you explain this? Am I doing anything wrong? Does it actually not matter wether I assign a shader or not?

Cjreek

Re: Normal Mapping without shader?! [Re: Cjreek] #368769
04/28/11 10:39
04/28/11 10:39

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Originally Posted By: Cjreek
Hi,
It's working very well, but there's no visible difference if I remove the shader and only use the normal-mapped texture.
Cjreek

If thats the case, then im sure you did not apply the shader correctly.
What you mean by "only use the normal-mapped texture"?
Normaly on Block you apply the Deffuse Texture on the Block, and store the normalmap Texture with the ending "_n" in the WAD folder.
For Models, you have to set the normalmap as 2nd Skin.

make sure you add atlest the sun and/or 1 dynamic in the range of the block/model with normalmap shader.

Last edited by chris_oat; 04/28/11 10:41.
Re: Normal Mapping without shader?! [Re: ] #368772
04/28/11 10:50
04/28/11 10:50
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Well I created a new .wad file (mytextures.wad).
Then I chose one texture (tex.tga) and I used the normal map generator to create a normal map texture (tex_n.tga). I added both of them to my mytextures.wad and assigned tex_n to my block (WED).

Then I followed the instructions from the manual to assign the shader. (But it doesn't change the result if I skip this)

There's 1 dynamic light (in range of this block)
I'd post a screenshot but this won't be possible until this evening.

The result of this looks very much like successful normal-mapping (as far as I can judge this).

Last edited by Cjreek; 04/28/11 10:51.
Re: Normal Mapping without shader?! [Re: Cjreek] #368774
04/28/11 10:55
04/28/11 10:55

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Originally Posted By: Cjreek
and assigned tex_n to my block (WED).

DONT assign the normalmap to the Block. Just the deffuse map, in your case tex.tga!

Re: Normal Mapping without shader?! [Re: ] #368775
04/28/11 10:57
04/28/11 10:57
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Ok, can you explain this? grin
It seems to work real well this way..

Re: Normal Mapping without shader?! [Re: Cjreek] #368776
04/28/11 11:00
04/28/11 11:00

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Well if it works real well why do we need to help you??
You cant have normalmappin without assigning a Material, unless you use automaterial?!
Maybe you can post a screenshot, so we can tell if it is normalmapping or not.

Re: Normal Mapping without shader?! [Re: ] #368812
04/28/11 16:26
04/28/11 16:26
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Hi,

I'm feeling a little bit stupid right now.
I think I made some kind of fake-normal-mapping or something...

I don't get normal mapping working. I don't have to make any special things in my code, do I?

I've got 2 texture files:
http://www.file-upload.net/download-3393161/floor.tga.html
http://www.file-upload.net/download-3393162/floor_n.tga.html

I added both of them to my .wad file and assigned "floor" (without "_n") to a block. I assigned the shader "mtl_bump" to this block, compiled the map (with 1 dynamic light) and startet my "game".

=> No normal mapping

I don't understand what's wrong with this approach :-(

Last edited by Cjreek; 04/28/11 16:26.
Re: Normal Mapping without shader?! [Re: Cjreek] #368815
04/28/11 16:54
04/28/11 16:54
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
I'm just guessing here: The file floor_n.tga is maybe not included in the .wmb file and can't be read from the .wad file at runtime. Could you copy the file floor_n.tga to the folder where your main script is?


Always learn from history, to be sure you make the same mistakes again...
Re: Normal Mapping without shader?! [Re: Uhrwerk] #368816
04/28/11 17:05
04/28/11 17:05
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Hi,

I tried this (but I'm using Delphi and A8 SDK) and copied floor_n.tga into my app-folder.
I also assigned the _n-textures to a dummy block in my .wmp file to force the textures beeing included in the .wmb file.
But both methods did not work.

I'm using the A8 trial version, but normal mapping should be possible with this version, shouldn't it?

Last edited by Cjreek; 04/28/11 17:06.
Re: Normal Mapping without shader?! [Re: Cjreek] #368876
04/29/11 05:38
04/29/11 05:38

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Normalmapping in the trail version is only available for i guess 30 or 45 Days, after that i think it become automatically the free version and you cant use shaders anymore.

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