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 (TipmyPip), 18,449 guests, and 6 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
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 | 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