mohaa-spearhead-sdk/tutorials/Creating collision for a Static Mesh.htm

318 lines
13 KiB
HTML
Raw Permalink Normal View History

2003-02-06 00:00:00 +00:00
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List
href="Creating%20collision%20for%20a%20Static%20Mesh_files/filelist.xml">
<link rel=Edit-Time-Data
href="Creating%20collision%20for%20a%20Static%20Mesh_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Creating collision for a Static Mesh:</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>vmerci</o:Author>
<o:LastAuthor>vmerci</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>100</o:TotalTime>
<o:Created>2002-12-12T20:01:00Z</o:Created>
<o:LastSaved>2002-12-12T20:01:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>153</o:Words>
<o:Characters>876</o:Characters>
<o:Company>EALA</o:Company>
<o:Lines>7</o:Lines>
<o:Paragraphs>2</o:Paragraphs>
<o:CharactersWithSpaces>1027</o:CharactersWithSpaces>
<o:Version>10.3501</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:GrammarState>Clean</w:GrammarState>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1604916242;
mso-list-type:hybrid;
mso-list-template-ids:-1960549400 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:
normal'><u>Creating collision for a Static Mesh<o:p></o:p></u></b></p>
<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:
normal'><u><o:p><span style='text-decoration:none'>&nbsp;</span></o:p></u></b></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>1)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Step
One convert your new model to a static mesh <span class=GramE>with<span
style='mso-spacerun:yes'><3E> </span>the</span> tools provided.</p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>2)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Open
Moh Radiant</p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>3)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Select
the new mesh from the model selection it should appear in the radiant window. </p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'>Fig1</p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:405.1pt;
height:306.15pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image001.jpg"
o:title="fig1"/>
</v:shape><![endif]--><![if !vml]><img width=540 height=408
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image002.jpg" v:shapes="_x0000_i1025"><![endif]></p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<span style='font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always'>
</span>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>4)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Open
the appropriate texture, for this example we will use the metal texture under
the common texture directory. </p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'><!--[if gte vml 1]><v:shape id="_x0000_i1030"
type="#_x0000_t75" style='width:414.45pt;height:310.55pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image003.jpg"
o:title="fig1b"/>
</v:shape><![endif]--><![if !vml]><img width=553 height=414
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image004.jpg" v:shapes="_x0000_i1030"><![endif]></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<span style='font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='mso-special-character:line-break;
page-break-before:always'>
</span>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>5)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Begin
to the trace the model with brushes making sure you have the metal texture
selected. </p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'>Fig3a</p>
<p class=MsoNormal style='margin-left:.25in'><!--[if gte vml 1]><v:shape id="_x0000_i1026"
type="#_x0000_t75" style='width:6in;height:324.3pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image005.jpg"
o:title="fig3a"/>
</v:shape><![endif]--><![if !vml]><img width=576 height=432
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image006.jpg" v:shapes="_x0000_i1026"><![endif]></p>
<p class=MsoNormal style='margin-left:.25in'><span
style='mso-spacerun:yes'><3E></span></p>
<span style='font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always'>
</span>
<p class=MsoNormal style='margin-left:.25in'>Fig3b</p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'><span
style='mso-spacerun:yes'><3E></span><!--[if gte vml 1]><v:shape id="_x0000_i1027"
type="#_x0000_t75" style='width:6in;height:324.3pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image007.jpg"
o:title="fig3b"/>
</v:shape><![endif]--><![if !vml]><img width=576 height=432
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image008.jpg" v:shapes="_x0000_i1027"><![endif]></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<span style='font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always'>
</span>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>6)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Select
the model that was being used as the template, and delete it from your level.</p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'>Fig4</p>
<p class=MsoNormal style='margin-left:.25in'><!--[if gte vml 1]><v:shape id="_x0000_i1028"
type="#_x0000_t75" style='width:6in;height:324.3pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image009.jpg"
o:title="fig4"/>
</v:shape><![endif]--><![if !vml]><img width=576 height=432
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image010.jpg" v:shapes="_x0000_i1028"><![endif]></p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>7)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Save
the final version as a .map file with same name as the static mesh, and then
place it in the mainta\models\static directory. Once this has been completed
anytime this model is placed in a level it will reference the newly created
collision.</p>
<span style='font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always'>
</span>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>8)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Create
a test room with the new model, use the wuss console command to give your self
all the weapons. </p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'>Fig5</p>
<p class=MsoNormal style='margin-left:.25in'><!--[if gte vml 1]><v:shape id="_x0000_i1029"
type="#_x0000_t75" style='width:6in;height:324.3pt'>
<v:imagedata src="Creating%20collision%20for%20a%20Static%20Mesh_files/image011.jpg"
o:title="fig5"/>
</v:shape><![endif]--><![if !vml]><img width=576 height=432
src="Creating%20collision%20for%20a%20Static%20Mesh_files/image012.jpg" v:shapes="_x0000_i1029"><![endif]></p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1;
tab-stops:list .5in'><![if !supportLists]><span style='mso-list:Ignore'>9)<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Fire
the different weapons testing to make sure that the collision is working as
designed with each weapon.</p>
<p class=MsoNormal style='margin-left:.25in'><span
style='mso-spacerun:yes'><3E></span></p>
<p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>