Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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 (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shader questions #276662
07/05/09 21:28
07/05/09 21:28
Joined: Jan 2007
Posts: 67
Deutschland
chris0101 Offline OP
Junior Member
chris0101  Offline OP
Junior Member

Joined: Jan 2007
Posts: 67
Deutschland
hey guys

i've got some qustions about shader.

How can I use a shader with lite-C?
I used
Code:
MATERIAL* metal_shine = 
{
   effect = "normalmap.fx";
}



and then in wed i go to "material" and it's clear (script is in the map properties) so i type in "metal_shine" and press Enter. Nothing happen in the level.

Can anyone help?
Data normalmap.fx will loaded

Re: shader questions [Re: chris0101] #276681
07/05/09 22:30
07/05/09 22:30
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
You write an action like this:

aciton MyMaterial
{

... //other code
my.material = metal_shine;

}

Last edited by Schmerzmittel; 07/05/09 22:31.

A7 Com V7.80
Re: shader questions [Re: Schmerzmittel] #276683
07/05/09 22:37
07/05/09 22:37
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
he's assigning it through wed instead which still works. but im not sure he yet knows how shaders work.
for that shader you need to have a normal map set for the second skin on your model, and you need the normal.fx model in your folder.

Re: shader questions [Re: lostclimate] #276732
07/06/09 08:36
07/06/09 08:36
Joined: Jan 2007
Posts: 67
Deutschland
chris0101 Offline OP
Junior Member
chris0101  Offline OP
Junior Member

Joined: Jan 2007
Posts: 67
Deutschland
ok i have now installed crazybumb where i can make normal maps from the texture.
where can i give the model a second skin in wed? i just got on properties "file" "path" "attached" and "material"

Re: shader questions [Re: chris0101] #276741
07/06/09 09:06
07/06/09 09:06
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
nope, in med.

Re: shader questions [Re: lostclimate] #276750
07/06/09 09:28
07/06/09 09:28
Joined: Jan 2007
Posts: 67
Deutschland
chris0101 Offline OP
Junior Member
chris0101  Offline OP
Junior Member

Joined: Jan 2007
Posts: 67
Deutschland
under "skin settings" ?

Re: shader questions [Re: chris0101] #276751
07/06/09 09:34
07/06/09 09:34
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Under "edit skin", then "add new skin"; then under "skin settings" a hook at "texture", and browsing for your normal map. Dunno if you have to make another hook at "extern", I always do, so I suppose you have to.

Re: shader questions [Re: the_clown] #276763
07/06/09 10:14
07/06/09 10:14
Joined: Jan 2007
Posts: 67
Deutschland
chris0101 Offline OP
Junior Member
chris0101  Offline OP
Junior Member

Joined: Jan 2007
Posts: 67
Deutschland
ok step by step what i do
open the model in med. skin editor and export skin to bmp. than make a normalmap with crazybump. than to "edit skin" and "new skin" the standart skin was called "Skin0" and the normalmapskin is now called "Skin1"
i open the model in wed and give the material "metal_shine" like this:

MATERIAL* metal_shine =
{
effect = "normalmap.fx";
}

data normalmap.fx exists


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