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
2 registered members (AndrewAMD, TipmyPip), 16,005 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
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