Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
First time to use shaders #323547
05/15/10 13:03
05/15/10 13:03
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I'm stuck here, I have obtained an fx file and can't apply the effect to my level walls, here is what I have done.

I'm posting my question here as I think this question is very trivial for the shader forum.

1- I put the fx file in the same directory as my game studio script file

2- created a material block with an effect pointing to the fx file

3- tried to assign the material to a wall in my level from the block properties then clicked material icon but the list is empty and I can't find my mterial in this list.

here is the code of my script

Click to reveal..

#include <acknex.h>
#include <default.c>


function main()
{
level_load("shop.wmb");
wait (2);
}


MATERIAL NormalMapped=
{
effect = "NormalMapped.fx";
}


Re: First time to use shaders [Re: Badrizmo] #323548
05/15/10 13:09
05/15/10 13:09
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That sounds like you've forgotten to attach your script to the map. Goto File -> Map Properties and select your script there.


Always learn from history, to be sure you make the same mistakes again...
Re: First time to use shaders [Re: Uhrwerk] #323549
05/15/10 13:27
05/15/10 13:27
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I forgot to mention that I have done that, but it still doesn't appear in the materials list

Re: First time to use shaders [Re: Badrizmo] #323551
05/15/10 13:37
05/15/10 13:37
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Just type the material name into the emtpy field manually then.

Re: First time to use shaders [Re: the_clown] #323553
05/15/10 13:47
05/15/10 13:47
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Shouldn't it be MATERIAL* NormalMapped = ....?


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: First time to use shaders [Re: ChrisB] #323561
05/15/10 14:52
05/15/10 14:52
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes, it should, but it even shows up in the material list when the * is missing.


"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: First time to use shaders [Re: Superku] #323569
05/15/10 16:09
05/15/10 16:09
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I have added the astrisk but no use, still didn't show up in the block materials list frown. my script extention is .c does this make a difference?

Re: First time to use shaders [Re: Badrizmo] #323573
05/15/10 16:17
05/15/10 16:17
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I just figured out how to make it work, all I did was removing the script file from the map properties, build the project, close WED, then open WED re-added the script file (with the .c extension). Now it shows up in the list. thanks a lot guys for all your quick help and support.

Re: First time to use shaders [Re: Badrizmo] #323577
05/15/10 16:36
05/15/10 16:36
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Then your files do not reload automatically, adjust this setting in WED's preferences.


"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

Gamestudio download | 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