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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 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
how to apply fx files in scripts? #223122
08/22/08 12:45
08/22/08 12:45
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
how to apply fx files in scripts?
i mean the fx like"blur","toon" or something use for global
randering.
thx


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: how to apply fx files in scripts? [Re: Omicron_NEGA] #223162
08/22/08 14:21
08/22/08 14:21

M
mercuryus
Unregistered
mercuryus
Unregistered
M



An fx-file can be the "effect" for a material.
A material can be assigned to an entity:
(toon.fx is a fx-file countaining a toon shader)
(c-script, lite-c is similar but with pointers (MATERIAL*, ...))

Code:
BMAP bmap_toonlook = <toonlook.bmp>;

MATERIAL mtl_toon = {
	skin1 = bmap_toonlook;
	effect = "toon.fx";
}

//action: fx_toon
//title: Cartoon shading
//
//desc: 
//desc: Shades the object in two steps and paints a black line around it
//
function fx_toon() {
   my.material = mtl_toon;
}


Re: how to apply fx files in scripts? [Re: ] #223165
08/22/08 14:29
08/22/08 14:29
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
where should i put those code ?
in function main?


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: how to apply fx files in scripts? [Re: Omicron_NEGA] #223179
08/22/08 15:16
08/22/08 15:16

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Most important is to understand the code.
Then you know where to put.

Code:
MATERIAL* mtl_toon = {
	effect = "toon.fx";
}

...is a definition.
It is outside of a function.

Code:
  my.material = mtl_toon;

...is an assignment.
It's part of the entities action (inside the action/function)


Re: how to apply fx files in scripts? [Re: ] #223184
08/22/08 15:53
08/22/08 15:53
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
thank you!


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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