Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, Ayumi, AndrewAMD), 1,092 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
unique material per entity ? #394200
02/10/12 21:44
02/10/12 21:44
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
I need to do some changes in the shaders of my entities, stuff like bump strength and so on, i noticed however, that changes done to one MATERIAL affects every entity with that material, first solution that came to mind was to use MTL_CREATE for individual entities, that works.. but theres a visual delay when the entities get created, so with that i looked into using PRELOAD_MODE=3+4; not much difference with that either, i was looking ant ent_cloneskin but didnt seem to get any results, so question here is, what can be done to get this working for varying meshes? Is ent_cloneskin the way but i'm not using it right?

Re: unique material per entity ? [Re: darkinferno] #394203
02/10/12 21:47
02/10/12 21:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use vecSkill41 and set skill41 to 45 via script (with the floatv command). There's vecSkill45 for four additional skills.


"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: unique material per entity ? [Re: Superku] #394215
02/10/12 23:06
02/10/12 23:06
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
that is what i do to change shader parameters, via using skills and floatv ... for example: vec_set( myMtl_AiShader.skill17, vector(floatv(tmpVar), floatv(tmpVar), floatv(tmpVar) ));

Re: unique material per entity ? [Re: darkinferno] #394216
02/10/12 23:08
02/10/12 23:08
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
use the entity skills inside the shader, not the material skills.

Re: unique material per entity ? [Re: Rei_Ayanami] #394288
02/11/12 16:58
02/11/12 16:58
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
how would i go about doing that?
i cant just change: mtl_Shader.skill18 = floatv(1) to my.skill18 = floatv(1) right? because i got no results... i would have to make changes in the shader file also i assume right ?

Re: unique material per entity ? [Re: darkinferno] #394291
02/11/12 17:18
02/11/12 17:18
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
OK i got it, thanks people, made use of entity skill41 .. skill44 and skill45 .. skill48 laugh

Didnt think of that before, first time i'm jumping this much into shaders


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