Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Normal Mapping without shader?! [Re: Cjreek] #369062
05/01/11 08:17
05/01/11 08:17
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Im not going to download the files, shouldnt be necessairy, however, do u have any dynamic light sources or do u use the sun feature? If not, it's no wonder that you dont see any effect.

Last edited by the_clown; 05/01/11 08:17.
Re: Normal Mapping without shader?! [Re: the_clown] #369067
05/01/11 09:26
05/01/11 09:26
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
I've written this at least two times now (above):

There's 1 dynamic light in range of my mtl_bump block.

Re: Normal Mapping without shader?! [Re: Cjreek] #369075
05/01/11 12:53
05/01/11 12:53
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Some hints:
- Increase light range.
- Press [F11] twice at runtime to display blocks without their textures (you will see only their normal maps then). Maybe the effect is already active but you somehow cannot see it, f.i. because of bad normal maps.


"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: Normal Mapping without shader?! [Re: Superku] #369160
05/02/11 09:53
05/02/11 09:53
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
I'm not really sure what I did, but if I run my level in WED the shader is used. But if I load my level in SED or Delphi (SDK) then there's no shader visible (?!)

Maybe because of the command line WED uses per default:

testlevel.c -nx 30

Maybe "-nx 30" does something important?
What does "-nx 30" mean and where can I read about the command line options?

Re: Normal Mapping without shader?! [Re: Cjreek] #369162
05/02/11 10:21
05/02/11 10:21
Joined: May 2009
Posts: 5,367
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
"nx - 30" means that nexus is set to 30


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Normal Mapping without shader?! [Re: Cjreek] #369163
05/02/11 10:29
05/02/11 10:29

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Originally Posted By: Cjreek
...and where can I read about the command line options?


you can read about that in the manual. Press Ctrl + F for searching. Search for Engine Options. Klick on Engine Options and scroll down to Command line options. Voila

Re: Normal Mapping without shader?! [Re: 3run] #369164
05/02/11 10:30
05/02/11 10:30
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
OK, but does someone know why normal mapping is only visible if I run my level in WED (Run Level) but not if I run my script and load the level via load_level?

Screenshots:

Script:

Code:
function main()
{
  level_load("TestLevel.wmb");
}





WED:


Last edited by Cjreek; 05/02/11 10:36.
Re: Normal Mapping without shader?! [Re: Cjreek] #369165
05/02/11 11:00
05/02/11 11:00
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
make sure your shader file is at the same folder as your script.


3333333333
Re: Normal Mapping without shader?! [Re: Quad] #369166
05/02/11 11:05
05/02/11 11:05
Joined: Apr 2011
Posts: 15
Germany
C
Cjreek Offline OP
Newbie
Cjreek  Offline OP
Newbie
C

Joined: Apr 2011
Posts: 15
Germany
Thanks!

I had to add

Code:
#include <acknex.h>
#include <default.c>
#include <mtlFX.c>



to my script and now it works!

But: How can I use these shaders if I want to use the acknex SDK? smirk

Page 3 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