Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Ayumi, Akow, monk12, AndrewAMD), 1,398 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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