Planes.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Planes</title>
  5. </head>
  6. <body>
  7. <center><h1><font face="Verdana">Introduction to Planes</font></h1></center>
  8. <p>
  9. <font face="Verdana">
  10. Planes are a simple way to add large, flat surfaces to the world. Planes are useful for such things as ground, sea, sky, clouds and so on. Just about every 3d game will use planes in some way or another.</font>
  11. </p>
  12. <h2><font face="Verdana"><span style="background-color: #6097C9">&nbsp;Creating Planes&nbsp;</span></font></h2>
  13. <p>
  14. <font face="Verdana">
  15. How do you create a plane ? - Easy, just use the <b>CreatePlane</b> instruction:</font>
  16. </p>
  17. <table border="1" width="100%" bordercolor="#FFFFFF">
  18. <tr>
  19. <td width="14%">&nbsp;</td>
  20. <td width="72%" bordercolor="#000000" bgcolor="#C0C0C0">&nbsp;<br>
  21. &nbsp;&nbsp;&nbsp;&nbsp;<font face="Arial">;create a simple plane.<br>
  22. &nbsp;&nbsp;&nbsp;&nbsp;<b>plane=CreatePlane()</b></font><br><br>
  23. </td>
  24. <td width="14%">&nbsp;</td>
  25. </tr>
  26. </table>
  27. <h2><font face="Verdana"><span style="background-color: #6097C9">&nbsp;Manipulating planes&nbsp;</span></font></h2>
  28. <p>
  29. <font face="Verdana">
  30. By default, a new Plane is positioned at 0,0,0 and faces upwards. However, you may want the plane to face a different direction, or to be moved up or down. To do this, you just need to use the standard entity commands.</font></p>
  31. <p>
  32. <font face="Verdana">
  33. For example, you might want to use a plane for a layer-of-clouds type effect. In this case, just rotate and position the plane as necessary:</font></p>
  34. <table border="1" width="100%" bordercolor="#FFFFFF">
  35. <tr>
  36. <td width="14%">&nbsp;</td>
  37. <td width="72%" bordercolor="#000000" bgcolor="#C0C0C0">&nbsp;<br>
  38. &nbsp;&nbsp;&nbsp;&nbsp;<font face="Arial">;create clouds plane.<br>
  39. &nbsp;&nbsp;&nbsp;&nbsp;<b>plane=CreatePlane()</b><br><br>
  40. &nbsp;&nbsp;&nbsp;&nbsp;;rotate plane so it faces downwards.<br>
  41. &nbsp;&nbsp;&nbsp;&nbsp;<b>RotateEntity clouds,0,0,180</b><br><br>
  42. &nbsp;&nbsp;&nbsp;&nbsp;;and position it up in the sky!<br>
  43. &nbsp;&nbsp;&nbsp;&nbsp;<b>PositionEntity clouds,0,100,0</b></font><br><br>
  44. </td>
  45. <td width="14%">&nbsp;</td>
  46. </tr>
  47. </table>
  48. <p>
  49. <font face="Verdana">
  50. So now we have a plane that is going to represent the sky, how can we make it look realistic ?</font></p>
  51. <p>
  52. <font face="Verdana">
  53. The easy answer would be to Texture it !, as you shall see later on in these tutorials - Blitz3D has ALL the answers.</font></p>
  54. <p>
  55. <font face="Verdana">
  56. If you take a careful look at most of todays top titles you will notice that most of the sky scenes contain more than one layer. Usually this consists of 2 - sometimes even 3 planes. The very top plane contains static objects such as the Sun, while the plane infront has a cloud layer. This can be achieved by using the BRUSHFX instuction (to make the texture slightly see-through) -in conjunction with an animated texture, that is slowly wrap-scrolling. (And YES, B3D can do this effect with ease!)</font></p>
  57. <p><center>
  58. <font color="#666666" face="Verdana">Copyright 2001 (c) Paul Gerfen -
  59. GamecodingUK</font></center></p>
  60. </body>
  61. </html>