Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Passing Skills? #89144
09/08/06 22:33
09/08/06 22:33
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Simple question: How can I pass a skill to an HLSL shader to use in an equation?

Re: Passing Skills? [Re: sheefo] #89145
09/09/06 00:27
09/09/06 00:27
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
look in manual for material skills 1..4, 5..8, 9..12, 13..16, 17.. 20 and entity skills 41..44
in shader:
...
float4 vecSkill41;
...
Out.Att1 = Light1 * vecSkill41.w;...
...

in c-script:
...
my.skill41 = float(...);

Re: Passing Skills? [Re: Lion_Ts] #89146
09/09/06 09:54
09/09/06 09:54
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Does it need to be a vector skill? Can I pass just one skill without the three?

Re: Passing Skills? [Re: sheefo] #89147
09/09/06 20:01
09/09/06 20:01
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
yes, vector. therefore, you can pass one component, if you want. (entity.skill41->vecSkill41.x or entity.skill42->vecSkill41.y, for example).

Re: Passing Skills? [Re: Lion_Ts] #89148
09/09/06 21:07
09/09/06 21:07
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Ah, I see. Thanks a lot.
I use vecSkill41.x and it works.


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