[Crossfire-wiki] [Crossfire DokuWiki] page changed: map-technical

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Oct 17 22:11:07 CDT 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/10/17 22:11
User        : kbulgrien
Edit Summary: Type fixes and more de-texing.

@@ -197,9 +197,9 @@
  So, we come to the...
  
  ===First Rule of Smoothing===
  
- An object O may draw itself above a neighbor object V if, and only if, 0 as a <<smoothlevel>> higher than V. See the things like that:
+ An object O may draw itself above a neighbor object V if, and only if, O has a <<smoothlevel>> higher than V. See the things like that:
  
    {img/smoothlevel.eps}
  
  O in the example picture has a higher priority than V so O will overlap V a bit but V will not overlap O.
@@ -215,29 +215,27 @@
  Take a look at the canvas below:
  
    {img/canvas_smooth.eps}
  
- Each square have a size of 32x32, which is the size used by the current image sets. This canvas handles all cases of corner, borders, L shaped, U shaped and O shaped transitions. The picture is made of 16 elements by 2. The first line is all broder related transition. The second line is corner related transitions. Here is an example picture for grass (yeah really need someone to rework it):
+ Each square have a size of 32x32, which is the size used by the current image sets. This canvas handles all cases of corner, borders, L shaped, U shaped and O shaped transitions. The picture is made of 16 elements by 2. The first line is all border related transition. The second line is corner related transitions. Here is an example picture for grass (yeah really need someone to rework it):
  
    {img/sgrass.base.111.eps}
  
  The picture is named sgrass.base.111.png and located in the ground/smooth/grasslike directory of archetype. Ok, now you have a picture for smoothing grass, you have a smoothlevel for grass. There is only one last thing to do:
  
  ===Final Rule of Smoothing===
  
- Tell the server which picture to send the client. There is, in the server SVN directory a file named lib/smooth. This file is where you set this information. Each line in the file beginning with \emph{\#} is a comment. Other line should be made of 2 elements:
+ Tell the server which picture to send the client. There is, in the server SVN directory a file named lib/smooth. This file is where you set this information. Each line in the file beginning with ''#'' is a comment. Other lines should be made of 2 elements:
  
- The first is the picture you want to smooth (here it is grass.111%
+ The first is the picture you want to smooth (here it is grass.111), and the second is the 512x64 picture drawn at rule 2 and used when smoothing.
  
- \footnote{Please note we suppressed the .png and the .base. elements of grass.base.111.png filename. Since what the server needs is the internal names. Take care of this. If the new picture you drawn didn't appear on the GUI, this is perhaps due to error in this file. And don't forget to copy this file, afterwards, to the install directory of server, using a make~install.%
- 
- }) the second is the 512x64 picture drawn at rule 2 and used when smoothing.
+   * Note Please note we suppressed the .png and the .base. elements of grass.base.111.png filename. Since what the server needs is the internal names. Take care of this. If the new picture you drawn didn't appear on the GUI, this is perhaps due to an error in this file. And don't forget to copy this file, afterwards, to the install directory of server, using a make~install.
  
  And example line might be as follows:
  
    grass.111 sgrass.111
  
- The entry default\_smoothed.111 is used when the server can not find an appropriate entry for an object. This correspond to the black canvas above so mapmakers or drawers can see immediately there is a problem.
+ The entry default ''smoothed.111'' is used when the server can not find an appropriate entry for an object. This correspond to the black canvas above so mapmakers or drawers can see immediately there is a problem.
  
  Now, drawers know everything. Coders might want to read following part.
  
  ====Smoothing in the Code====


IP-Address  : 70.254.34.228
Old Revision: http://wiki.metalforge.net/doku.php/map-technical?rev=1192676681
New Revision: http://wiki.metalforge.net/doku.php/map-technical

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list