Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 24,750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sending variables from c-script to fx file? #48180
06/21/05 12:07
06/21/05 12:07
Joined: Mar 2005
Posts: 123
O
oronll Offline OP
Member
oronll  Offline OP
Member
O

Joined: Mar 2005
Posts: 123
Is there any way to send variables back and forth from the wdl to the fx file?

Re: sending variables from c-script to fx file? [Re: oronll] #48181
06/21/05 12:53
06/21/05 12:53
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
yes


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: sending variables from c-script to fx file? [Re: ello] #48182
06/21/05 13:06
06/21/05 13:06
Joined: Mar 2005
Posts: 123
O
oronll Offline OP
Member
oronll  Offline OP
Member
O

Joined: Mar 2005
Posts: 123
Quote:

yes




haha not even a hint? I guess what i am asking is do they automatically reconize them or do you have to SEND them and how do you declare them in the shader?

i guess this " mtl_bump.skill1 = float(time); " is how you would send it .. but is TIME declared as say " float4 time " in the actual shader ?


Ive spent the past few weeks studying how to write pixel shaders .. Now i need to get the gist of adding them to the GS c-script .. first thing will be to get the lighting to match up ..

Re: sending variables from c-script to fx file? [Re: oronll] #48183
06/21/05 13:21
06/21/05 13:21
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
use float4 vecTime;

look into the manual "new features"-section...


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: sending variables from c-script to fx file? [Re: ello] #48184
06/23/05 00:52
06/23/05 00:52
Joined: Mar 2005
Posts: 123
O
oronll Offline OP
Member
oronll  Offline OP
Member
O

Joined: Mar 2005
Posts: 123
ok .. lets say in the FX file i difined a light as ..

float3 light = {1,1,1};


how would i switch that to make it the GS diffuse light value ?

Ive tried simply renaming it to VecDiffuse .. but nothing happens ..


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