Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, TipmyPip), 3,248 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Material for only one skin ( in a model with two skins ) #423006
05/22/13 11:55
05/22/13 11:55
Joined: Jul 2008
Posts: 2,112
Germany
rayp Offline OP

X
rayp  Offline OP

X

Joined: Jul 2008
Posts: 2,112
Germany
Hi !

Cause iam a totally shader noob, i have a question. Maybe somebody of the graphic freaks around here, have a solution for me.
Iam using Shade-C object shader (normal and specular mapping). I have a palm model. It has two skins. The bark and the leaves. But i only want to apply the shader to the bark texture.
I dont want to use two models cause of performance.

Has anyone a idea how to accomplish this ( easy to use for a shader noob ) ?
thank u 4 all tips.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Material for only one skin ( in a model with two skins ) [Re: rayp] #423007
05/22/13 12:01
05/22/13 12:01
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
this is an easy task. assign the shader in your model, not in the script.
check out the skin settings. there you can set up the material and shader for each skin.

Don't forget to add the normalmap behind the skin that uses the normalmapping shader.

greets


Visit my site: www.masterq32.de
Re: Material for only one skin ( in a model with two skins ) [Re: MasterQ32] #423008
05/22/13 12:20
05/22/13 12:20
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
or use

my.material = mtl_something;
ent_mtlset(my,mtl_another,2);


Last edited by sivan; 05/22/13 12:21.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Material for only one skin ( in a model with two skins ) [Re: sivan] #423011
05/22/13 13:22
05/22/13 13:22
Joined: Jul 2008
Posts: 2,112
Germany
rayp Offline OP

X
rayp  Offline OP

X

Joined: Jul 2008
Posts: 2,112
Germany
Wow !
Thank you guys...and its soo easy ! Great ! Will try when iam at home.
greets


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Material for only one skin ( in a model with two skins ) [Re: rayp] #423071
05/23/13 17:31
05/23/13 17:31
Joined: Jul 2008
Posts: 2,112
Germany
rayp Offline OP

X
rayp  Offline OP

X

Joined: Jul 2008
Posts: 2,112
Germany
Worked pretty well ! Thanks again for this simple tip grin


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;

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