<li><aclass="backlink"title="Click to do a full-text search for this title"href="/quake4/Effect_Creation_Walkthrough?action=fullsearch&value=linkto%3A%22Effect+Creation+Walkthrough%22&context=180">Effect Creation Walkthrough</a></li>
<spanclass="anchor"id="line-1"></span><pclass="line874">This is a step by step guide to creating a simple fire effect. <spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line862">Remember that once you have added a segment to an effect you can use binds with <strong>editfx_play</strong> and <strong>editfx_playlooping</strong> to test the effect. This document assumes that after adding one segment you start playing the effect looping on a ground surface in a test map. As the effect is changed in the editor, the looping effect in the world will update. <spanclass="anchor"id="line-4"></span><spanclass="anchor"id="line-5"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-6"></span><spanclass="anchor"id="line-7"></span><oltype="1"><li><pclass="line862">Open the <ahref="/quake4/FXEditor">FXEditor</a> with the <strong>+editfx</strong> console command. <spanclass="anchor"id="line-8"></span><spanclass="anchor"id="line-9"></span></li><liclass="gap"><pclass="line862">Click <strong>File>New</strong> or hit <strong>CTRL + N</strong>. <spanclass="anchor"id="line-10"></span><spanclass="anchor"id="line-11"></span></li><liclass="gap"><pclass="line862">Right click inside the Segment window and click <strong>Insert>Sprite</strong>. <spanclass="anchor"id="line-12"></span><spanclass="anchor"id="line-13"></span></li><liclass="gap"><pclass="line862">Click the <ahref="/quake4/FXEditor_Tab_-_Sprite">Sprite Tab</a> and in the <ahref="/quake4/ArtReference_Q4Shaders">material field</a> (where it says '_material') enter a path to your fire image shader. In our case, it will be: <strong>gfx/effects/fire/fire4a</strong><spanclass="anchor"id="line-14"></span><spanclass="anchor"id="line-15"></span></li><liclass="gap"><pclass="line862">Go to the <ahref="/quake4/FXEditor_Tab_-_Motion">Motion Tab</a> and clear out the existing Forward/Left/Up values. Replace them with a Forward range of 10 min, 50 max. Left of -5 min, 5 max, Up -5 min, 5 max. Make sure to give the Sprites a negative gravity value of -0.05 so they rise realistically. <spanclass="anchor"id="line-16"></span><spanclass="anchor"id="line-17"></span></li><liclass="gap"><pclass="line862">Click the <ahref="/quake4/FXEditor_Tab_-_Size">Size Tab</a> and give your sprite particles a size range of 15 min, 30 max for both height and width. Make sure to check <ahref="/quake4/FXEditor_Tab_-_Size#lineardistribution">Linear Distribution</a><spanclass="anchor"id="line-18"></span><spanclass="anchor"id="line-19"></span><spanclass="anchor"id="line-20"></span></li><liclass="gap"><pclass="line862">Go to the <ahref="/quake4/FXEditor_Tab_-_Rotate">Rotate Tab</a> and give the segment a 0 min, 360 max value for start rotation. On the dropdown box for <ahref="/quake4/Notes_about_Envelopes/Tables">Envelope</a>, select a Linear <ahref="/quake4/ArtReference_Q4Shaders_Tables">table</a>. Hint: Hit the L key with the dropdown box selected to hop to the first <ahref="/quake4/ArtReference_Q4Shaders_Tables">Table</a> that starts with the letter L. For the end rotation values, set -90 min and 90 max. Make sure to select <ahref="/quake4/FXEditor_Tab_-_Rotate#endrelativetostart">End Relative to Start</a>. <spanclass="anchor"id="line-21"></span><spanclass="anchor"id="line-22"></span></li><liclass="gap"><pclass="line862">Click the <ahref="/quake4/FXEditor_Tab_-_Alpha">Alpha Tab</a> and select an envelope for alpha fading. I recommend <strong>fastinslowout</strong>. This <ahref="/quake4/ArtReference_Q4Shaders_Tables">table</a> is similar to cosine except the alpha ramps up quickly and fades slowly. Set a start value of 0, and an end value of 1. Make sure you check <ahref="/quake4/FXEditor_Tab_-_Alpha#blendalphaandcolor">Blend Alpha and Color</a> As the fire <ahref="/quake4/ArtReference_Q4Shaders">shader</a> we are using is an additive blend. <spanclass="anchor"id="line-23"></span><spanclass="anchor"id="line-24"></span></li><liclass="gap"><pclass="line862">The fire is starting to
<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>