<li><aclass="backlink"title="Click to do a full-text search for this title"href="./Basic_FX_file_structure?action=fullsearch&value=linkto%3A%22Basic+FX+file+structure%22&context=180">Basic FX file structure</a></li>
<liclass="wikilink"><ahref="./GettingStarted.html">GettingStarted</a></li><liclass="wikilink"><ahref="./ScriptFile.html">ScriptFile</a></li><liclass="wikilink"><ahref="./MakeAMod.html">MakeAMod</a></li><liclass="wikilink"><ahref="./LevelEditor.html">LevelEditor</a></li><liclass="wikilink"><ahref="./FXEditor.html">FXEditor</a></li><liclass="wikilink"><ahref="./GUIEditor.html">GUIEditor</a></li><liclass="wikilink"><ahref="./Sounds.html">Sounds</a></li><liclass="wikilink"><ahref="./Animations.html">Animations</a></li><liclass="wikilink"><ahref="./ArtReference.html">ArtReference</a></li><liclass="wikilink"><ahref="./DownloadableContent.html">DownloadableContent</a></li><liclass="wikilink"><ahref="./RecentChanges.html">RecentChanges</a></li><liclass="wikilink"><ahref="./FindPage.html">FindPage</a></li><liclass="wikilink"><ahref="./HelpContents.html">HelpContents</a></li><liclass="current"><ahref="./Basic_FX_file_structure.html">Basic FX file structure</a></li>
<spanclass="anchor"id="line-1"></span><pclass="line862">An effect file is made up of Segments. A segment can be one of the following: <ahref="#sprite">Sprite</a>, <ahref="#orientedsprite">Oriented Sprite</a>, <ahref="#model">Model</a>, <ahref="#line">Line</a>, <ahref="#linkedline">Linked Line</a>, <ahref="#decal">Decal</a>, <ahref="#electricity">Electricity</a>, <ahref="#sound">Sound</a>, <ahref="#light">Light</a>, <ahref="#debris">Debris</a>, <ahref="#effect">Effect</a>, <ahref="#visioneffect">Vision Effect</a> and <ahref="#delay">Delay</a>. <spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line874">Segments can be hidden by removing the check to the left of their name in the segment list. This does not remove the segment from an effect, but will hide it temporarily while you are working on the effect. This is useful while working on a specific segment of an effect. <spanclass="anchor"id="line-4"></span><spanclass="anchor"id="line-5"></span><pclass="line867"><imgclass="attachment"src="./Basic_FX_file_structure?action=AttachFile&do=get&target=fx_check.jpg"title="attachment:fx_check.jpg"/><spanclass="anchor"id="line-6"></span><spanclass="anchor"id="line-7"></span><pclass="line867"><strong>Fx segment order is important:</strong> Fx segments at the top of the list will be last in the Z-Order. This means to have your sparks segments sort on top of your smoke, adjust your smoke segment layer to be above your sparks segment layer. This can be done by selecting segments and hitting CTRL + ] to move a segment forward, and CTRL + [ to move a segment backwards. <spanclass="anchor"id="line-8"></span><spanclass="anchor"id="line-9"></span><pclass="line867"><imgclass="attachment"src="./Basic_FX_file_structure?action=AttachFile&do=get&target=fx_sortorder.jpg"title="attachment:fx_sortorder.jpg"/><spanclass="anchor"id="line-10"></span><spanclass="anchor"id="line-11"></span><pclass="line867">
<spanclass="anchor"id="line-15"></span><ul><listyle="list-style-type:none">A segment consisting of polygons that always face the player. <spanclass="anchor"id="line-16"></span><spanclass="anchor"id="line-17"></span></li></ul><pclass="line867"><spanclass="anchor"id="orientedsprite"></span><spanclass="anchor"id="line-18"></span>
<spanclass="anchor"id="line-19"></span><ul><listyle="list-style-type:none">A segment made of polygons that face a direction specified in the segment properties. (Usually the normal of the effect.) <spanclass="anchor"id="line-20"></span><spanclass="anchor"id="line-21"></span></li></ul><pclass="line867"><spanclass="anchor"id="model"></span><spanclass="anchor"id="line-22"></span>
<spanclass="anchor"id="line-23"></span><ul><listyle="list-style-type:none">Models can be placed in segments and given motion/gravity effects. <spanclass="anchor"id="line-24"></span><spanclass="anchor"id="line-25"></span></li></ul><pclass="line867"><spanclass="anchor"id="line"></span><spanclass="anchor"id="line-26"></span>
<spanclass="anchor"id="line-27"></span><ul><listyle="list-style-type:none">A segment of lines. Lines differ from Sprites in that they have length and size (width), and can be made into very long rectangles. A sprite with a different height than width will be a diamond shape. <spanclass="anchor"id="line-28"></span><spanclass="anchor"id="line-29"></span></li></ul><pclass="line867"><spanclass="anchor"id="linkedline"></span><spanclass="anchor"id="line-30"></span>
<spanclass="anchor"id="line-31"></span><ul><listyle="list-style-type:none">Linked lines are used to have a set of lines linked together at their ends. Mostly used for arcing and curved effects attached to models or as projectiles such as the Quake4 Nailgun. <spanclass="anchor"id="line-32"></span><spanclass="anchor"id="line-33"></span></li></ul><pclass="line867"><spanclass="anchor"id="decal"></span><spanclass="anchor"id="line-34"></span>
<spanclass="anchor"id="line-35"></span><ul><listyle="list-style-type:none">This segment places a decal on the surface the effect plays from. (note: some decal shaders have a specific lifetime in their material and as such are normally used only for weapon impact effects) <spanclass="anchor"id="line-36"></span><spanclass="anchor"id="line-37"></span></li></ul><pclass="line867"><spanclass="anchor"id="electricity"></span><spanclass="anchor"id="line-38"></span>
<spanclass="anchor"id="line-39"></span><ul><listyle="list-style-type:none">Special case segment with Jitter and Forks settings allow easy simulation of electricity. <spanclass="anchor"id="line-40"></span><spanclass="anchor"id="line-41"></span></li></ul><pclass="line867"><spanclass="anchor"id="sound"></span><spanclass="anchor"id="line-42"></span>
<spanclass="anchor"id="line-43"></span><ul><listyle="list-style-type:none">Effects can have sound segments that play sounds at specific times during the effect. <spanclass="anchor"id="line-44"></span><spanclass="anchor"id="line-45"></span></li></ul><pclass="line867"><spanclass="anchor"id="light"></span><spanclass="anchor"id="line-46"></span>
<spanclass="anchor"id="line-47"></span><ul><listyle="list-style-type:none">A pointlight within the effect that has size/color/light shader/timing options <spanclass="anchor"id="line-48"></span><spanclass="anchor"id="line-49"></span></li></ul><pclass="line867"><spanclass="anchor"id="debris"></span><spanclass="anchor"id="line-50"></span>
<spanclass="anchor"id="line-51"></span><ul><listyle="list-style-type:none"><pclass="line862">Debris defined in <ahref="./DefinitionFile.html">.def files</a> can be used in place of models, in the event of more complex debris interactions. This segment allows the placement of Debris in an effect. <spanclass="anchor"id="line-52"></span><spanclass="anchor"id="line-53"></span></li></ul><pclass="line867"><spanclass="anchor"id="effect"></span><spanclass="anchor"id="line-54"></span>
<spanclass="anchor"id="line-55"></span><ul><listyle="list-style-type:none">Effects can be nested inside one another. By pressing the + plus button in the properties for this effect you can add complete effects to this segment, while the – minus button removes effects. <spanclass="anchor"id="line-56"></span><spanclass="anchor"id="line-57"></span></li></ul><pclass="line867"><spanclass="anchor"id="visioneffect"></span><spanclass="anchor"id="line-58"></span>
<spanclass="anchor"id="line-59"></span><ul><listyle="list-style-type:none">Camera Shake, Double Vision and Tunnel Vision can all be added to an effect. <spanclass="anchor"id="line-60"></span><spanclass="anchor"id="line-61"></span></li></ul><pclass="line867"><spanclass="anchor"id="delay"></span><spanclass="anchor"id="line-62"></span>
<spanclass="anchor"id="line-63"></span><ul><listyle="list-style-type:none">By using a delay, an entire effect can have its looping state altered to include a delay. A delay segment affects every segment within an effect. <spanclass="anchor"id="line-64"></span></li></ul><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">Basic FX file structure (last edited 2005-11-04 00:31:34 by <spantitle="MattVainio @ 67.129.250.254[67.129.250.254]"><aclass="nonexistent"href="./MattVainio.html"title="MattVainio @ 67.129.250.254[67.129.250.254]">MattVainio</a></span>)</p>
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>