⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 docs.html

📁 3D的Boids效果演示源程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  Increase Flyer Size<br>
  Decrease Flyer Size<br>
  Set Flyers to Tetrahedrons<br>
  Set Flyers to Small Birds<br>
  Set Flyers to Animated Birds<br>
  Set Flyers to White<br>
  Set Flyers to Yellow<br>
  Set Flyers to Pink<br>

 <td width="34%" valign="top" align="left">

  F5<br>
  F6<br>
  F7<br>
  F8<br>
  =<br>
  -<br>
  ]<br>
  [<br>
  CTRL+T<br>
  CTRL+S<br>
  CTRL+A<br>
  1<br>
  2<br>
  3<br>

 </tr>
</table><br><br>


<hr>


<a name="Landscape"></a><br>


<b><font face="Arial" size="4">6. Landscape Options</font></b><br><br>


<font size="3" face="Arial">


<table border="0" width="590">
 <tr><td>
  There are two ways to manipulate the landscape:<br><br>

  &nbsp; &nbsp; 1. The 'Landscape' drop down menu contains many commands including:<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   - 'None' deactivates the landscape completely removing it from the scene.<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   - Four different rendering styles to choose from.<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   The landscape can have both a wire-frame and solid appearance<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   enabled simultaneously.<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   - The geometry of the landscape can be recalculated.<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   - The colouring style can be set to either green or checkerboard.<br><br>

  &nbsp; &nbsp; 2. All the commands on the landscape menu also have keyboard accelerators.<br>
 </td></tr>
</table><br>


<b>The Landscape Menu Accelerator Keys:</b><br>


<table border="0" width="300">
 <tr><td width="53%" valign="top" align="left">

  None<br>
  Wireframe<br>
  Unlit Flat<br>
  Flat<br>
  Gouraud<br>
  Green<br>
  Checkered<br>
  Recalculate<br>

 <td width="47%" valign="top" align="left">

  CTRL+N<br>
  F9<br>
  F10<br>
  F11<br>
  F12<br>
  6<br>
  7<br>
  CTRL+R<br>

 </td></tr>
</table><br><br>


<hr>


<a name="BoidBehaviour"></a><br>


<b><font face="Arial" size="4">7. Controlling the Boid's Behaviour</font></b><br><br>


<font size="3" face="Arial">


<table border="0" width="590" height="240">
 <tr><td width="647" height="236">

  The 'Behaviour' drop down menu gives all the available options for changing the boids
  behaviour including the following:<br><br>

  &nbsp; &nbsp; - Three checked menu items that enable/disable the boid behaviours.<br>
  &nbsp; &nbsp; - A menu item to display the flyer attributes dialog box.<br><br><br>

  <b>Flyer attributes and their default values:</b><br><br>

  <table border="1" width="367" height="241">

   <tr>
    <td width="246" valign="middle" align="left" height="26">Acceleration Rate</td>
    <td width="107" valign="middle" align="left" height="26">2.0</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="26">Angle of Vision (deg)</td>
    <td width="107" valign="middle" align="left" height="26">90</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Collision Distance</td>
    <td width="107" valign="middle" align="left" height="27">50</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Flock Forming Distance</td>
    <td width="107" valign="middle" align="left" height="27">500</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Flocking Radius</td>
    <td width="107" valign="middle" align="left" height="27">150</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Maximum Speed</td>
    <td width="107" valign="middle" align="left" height="27">350</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Minimum Speed</td>
    <td width="107" valign="middle" align="left" height="27">150</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Range of Flock Headings</td>
    <td width="107" valign="middle" align="left" height="27">60</td>
   </tr>

   <tr>
    <td width="246" valign="middle" align="left" height="27">Wing Strokes Per Second</td>
    <td width="107" valign="middle" align="left" height="27">1.5</td>
   </tr>

  </table><br><br>


  The 'Range of Flock Headings' is the horizontal heading range that determines whether a certain
  boid is heading in a similar enough direction to become part of the flock.&nbsp; If the difference
  between the boids headings does not exceed this range, they can join together in a flock.&nbsp;
  Having this feature allows boids traveling in totally different directions to ignore each other.
  &nbsp;Making the boids more selective about flocking with other boids.&nbsp; Therefore allowing
  different flocks going in different directions, to pass each other without splitting up or
  interfering with each other.<br><br>

  Please note that there is no input validation for the flyer attributes.&nbsp; This allows maximum
  flexibility but can cause the simulation to crash in extreme cases.

 </tr>
</table><br><br>


<hr>


<a name="Configurations"></a><br>


<b><font face="Arial" size="4">8. Saving and Restoring Boid Configurations to and from Disk</font></b><br><br>


<table border="0" width="590">
 <tr><td width="100%"><font face="Arial" size="3">

   The 'Main' drop down menu contains two menu items for loading and saving
   configurations of boids to and from disk.&nbsp; The configuration files
   are produced in a human readable format that allows detailed examination
   and alteration of their contents.&nbsp; It is worth noting that if a
   configuration is loaded and it contains more boids than there is
   currently active, only the active number of boids will be loaded
   in.&nbsp; This feature is to prevent any overloading that could be
   caused by transferring files to a less powerful workstation.&nbsp;
   Therefore it is worth checking beforehand, how many boids there are to
   load in.&nbsp; Then possibly increase the active number of boids to accommodate
   them.

 </font></td></tr>
</table><br><br>


<hr>


<a name="Display"></a><br>


<b><font face="Arial" size="4">9. Display Mode Options</font></b><br><br>


<table border="0" width="590">
 <tr><td width="100%"><font face="Arial" size="3">

  The 'Display Mode' drop down menu gives the following options:<br><br>

  &nbsp; &nbsp; - Full screen mode (default), also activated by pressing ALT+ENTER.<br>
  &nbsp; &nbsp; - Select mode dialog, which sets the default full screen mode resolution.<br>
  &nbsp; &nbsp; - Window sizing commands, which are useful for benchmarking a workstation.<br>
  &nbsp; &nbsp; - Toggle Show / Hide the control panel, also activated by pressing TAB.<br>

 </font></td></tr>
</table><br><br>


<hr>


<a name="KnownIssues"></a><br>


<b><font face="Arial" size="4">10. Known Issues or Problems</font></b><br><br>


<table border="0" width="590">
 <tr><td><font size="3" face="Arial">

  There are no known bugs or errors in the code, but there are the following issues:<br><br>

  &nbsp; &nbsp; - There is no input validation for the flyer attributes.&nbsp; This allows maximum<br>
  &nbsp; &nbsp; &nbsp; &nbsp;flexibility but can cause the simulation to crash in the worst case.<br>
  &nbsp; &nbsp; - The rendering of the landscape creates a very significant performance<br>
  &nbsp; &nbsp; &nbsp; &nbsp;overhead.&nbsp; Rewriting the project to use Direct3D immediate mode or<br>
  &nbsp; &nbsp; &nbsp; &nbsp;OpenGL would solve this.<br>

 </td></tr>
</table><br><br>


<hr>


<a name="Author"></a><br>


<b><font face="Arial" size="4">11. About the Author</font></b><br><br>


<table border="0" width="590">
 <tr><td><font face="Arial" size="3">

  The simulation was designed and programmed by <a href="mailto:robert@abs2net.com">Robert Platt</a>,
  a mature student of BSc (Hons) Software Engineering at the

  <a href="http://www.westminster.ac.uk/">University of Westminster</a>,

  London, England.&nbsp; It constituted for the final year project for the academic year 1999/2000.<br>

 </tr>
</table><br>


<b>www:</b> <a href="http://www.roberts-resource.com/">www.roberts-resource.com</a><br>
<b>email:</b> <a href="mailto:robert@abs2net.com">robert@abs2net.com</a><br>


<hr>


<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>



</body>


</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -