home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma45.dms / ma45.adf / Clouds / Doc / Clouds.doc next >
Text File  |  2002-10-23  |  15KB  |  413 lines

  1. Copyright
  2. ---------
  3.  
  4. Clouds v1.0 software and documentation are copyright 1994 Krzysztof Kobus.
  5. All Rights Reserved.
  6.  
  7.  
  8.  
  9. Disclaimer
  10. ----------
  11.  
  12. No responsibility or liability will be accepted for any damage that may
  13. appear to have resulted from use of this program.  All use is at your own
  14. risk.  The software is provided "as is" without any warranty implied or
  15. otherwise to the fitness or accuracy of the software and documentation.
  16. The author reserves the right to update the software and/or documentation
  17. without notice.
  18.  
  19.  
  20.  
  21. The Program
  22. -----------
  23.  
  24. 1. Overview.
  25.  
  26. "Clouds" is the first program on Amiga platform, giving you visual
  27. modeling and realistic animation of turbulent motion of clouds.  It is
  28. based on spectral synthesis method.  The method employs a variety of
  29. intuitive parameters describing natural properties of clouds phenomena, as
  30. cloudiness, contrast, wind direction, strength of wind and turbulent
  31. changes.  Such wide range of controls allows a creative animator to
  32. generate all kinds of clouds, gases, mists and so forth.  Resulting images
  33. can then be used as backgrounds, textures in 3-D programs or alpha channel
  34. information - to mention just a few possibilities.  The program has
  35. standardized user interface and is fully controlled via ARexx.  "Clouds" is
  36. Kickstart 1.3/2.0/3.0 compatible although its all possibilities can be
  37. achieved only under 2.0+.  Additionally, program takes advantage of AGA
  38. chipset.
  39.  
  40.  
  41. 2. Getting started.
  42.  
  43.   2.1 Size of the image.
  44.  
  45. Spectral synthesis, which the entire idea is based on, requires Fourier
  46. Transformation calculations to be made.  In order not to calculate single
  47. frame by several hours, Fast Fourier Transform (FFT) has been implemented
  48. in the program, what apart from major speed up, gave rise to some
  49. restrictions concerning picture size.  With FFT, only square regions can be
  50. calculated and then their width must be equal to natural power of two (16,
  51. 32, 64, 128, 256, 512, 1024 in this case).
  52.  
  53. To get rid of this limitation "Clouds" is equipped with Goraud scaling
  54. engine, and is able to produce smooth images of any size supported by IFF
  55. picture format.  Yet, it shouldn't be forgotten that original picture is
  56. always a square, which side's length is equal to FFT parameter, thus this
  57. is the parameter of the highest importance for detail's level of the final
  58. picture.  Its value can be changed by pressing cycle gadget with FFT on it,
  59. located in the bottom part of the main screen.  Size of the output picture
  60. can be defined by typing needed values in "Width" and "Height" gadgets.
  61.  
  62. In the further part of this manual the original picture will be referred
  63. to as "texture", and the final picture, defined by "Height" and "Width"
  64. simply as "the picture" or "the image".
  65.  
  66.   2.2 The "Control" parameter.
  67.  
  68. The state of "Control" gadget determines what happens to calculated
  69. images.  Actually there are three possibilities:
  70.  
  71.   - Only Save    : Pictures go only to the disk.
  72.   - Only Display : Pictures are displayed on the screen which opens
  73.                    especially for this purpose.
  74.   - Display&Save : This is the combination of above two.
  75.  
  76.  
  77.   2.3 Opening the project.
  78.  
  79. When image and texture size have been set and gadget "Control" is in
  80. required position, one can attempt to open the project.  It should be
  81. stated here that as "the project" we mean not only animation, but single
  82. pictures as well.  To accomplish this please select "Project/Open project"
  83. from  the  menu.   What  happens  now  depends mostly on text that reads on
  84. the "Control" gadget:
  85.  
  86.   - Only Save.  The file requester appears asking you to specify path and
  87. root filename for storing image data.  This means that should select volume
  88. and drawer where you want images to be written and then type the name that
  89. is "base name" and which will be appended with frame number (according to
  90. "Config/Save format" option - see 6.2.3) when saved.  Quickly after that,
  91. program starts to allocate memory required for calculations.  In case of
  92. failure, message "Sorry, not enough memory..." appears.  If so, you should
  93. decrease parameter FFT, as its value is strongly related to amount of used
  94. memory (the higher value the more RAM you need) and then try again to
  95. select "Project/Open project".
  96.  
  97.   - Only Display. Programs immediately starts to allocate needed memory,
  98. and short after that tries to open screen for graphical visualization of
  99. the calculations (this means you will see the clouds on it). If any
  100. problems occur, message "Cannot open graphics environment..." is displayed
  101. on the screen. Usually, this happens as the result of insufficient memory.
  102.  
  103.   - Display&Save. Actions taken will be combination of above two.
  104.  
  105. If everything went right gadget "Calculate" becomes unghosted and
  106. "Control", "FFT", "Width", "Height" and "Quit" gadgets - ghosted (i.e. you
  107. can't change them).
  108.  
  109.  
  110. 3. Parameters.
  111.  
  112. Having the project successfully opened one can proceed with settings
  113. describing directly cloud's appearance and controlling animation system.
  114.  
  115.   3.1 Spatial structure parameters.
  116.  
  117.     3.1.1 Seed.
  118.           This is the start value for random number generator. By changing
  119.           this value you can obtain different shapes of basic cloud's
  120.           structure.
  121.  
  122.     3.1.2 Roughness.
  123.           As the name indicates describes roughness level of cloud.
  124.           The smaller values the stronger level of roughness and vice versa.
  125.  
  126.     3.1.3 Granularity.
  127.           By increasing this parameter, "water-color" effect can be
  128.           achieved and clouds appear to be some more "delicate".
  129.  
  130.   3.2 Turbulence parameters.
  131.  
  132.     3.2.1 Globality.
  133.           Observations conducted in the past show that during real motion
  134.           of clouds (and other gases) turbulent changes happen in the very
  135.           first row to smallest eddies.  All in all it wasn't so hard to
  136.           notice that on cloudy and windy day, when clouds move across the
  137.           sky, large structures are nearly unmodified and these are small
  138.           ones that undergo changes.  The "Globality" parameter is expressed
  139.           in percents and specifies how big structures are to be modified
  140.           in turbulent way (e.g.  5 percent means only very small ones, 100
  141.           percent - all of the structures).
  142.  
  143.     3.2.2 Strength.
  144.           Determines speed of turbulent changes measured in pixels of
  145.           texture per frame.
  146.  
  147.     3.2.3 Abruptness.
  148.           Small values of this parameter additionally strengthen movement of
  149.           large structures. Big ones - decrease.
  150.  
  151.   3.3 Wind parameters.
  152.  
  153.     3.3.1 Velocity.
  154.           Defines speed of translative changes. It is measured in pixels
  155.           per  frame  and this value corresponds to the texture, not to the
  156.           image  defined  by "Width", and "Height" parameters.  For example
  157.           if you specify "FFT" equal to 128, Width = 256, Height = 256 and
  158.           Velocity equal to 1.00, then resulting speed on the image,
  159.           measured in pixels per frame will be equal to 2.00.
  160.  
  161.     3.3.2 Direction.
  162.           This parameter indicates direction of translative motion. It is
  163.           measured in degrees. This parameter also corresponds to texture.
  164.  
  165.   3.4 Cloud parameters.
  166.  
  167.     3.4.1 Density.
  168.           Specifies white to blue ratio. The higher value - the more white
  169.           color in the image.
  170.  
  171.     3.4.2 Contrast.
  172.           As the name indicates - specifies contrast of the resulting image.
  173.  
  174. 4. Calculating
  175.  
  176. Just before you start producing your images, number of frames to be
  177. generated should be specified in the "Frames" gadget.  It not necessarily
  178. means that your finished animation will be of that length, because if you
  179. want to change some cloud's properties in time, you should set this field
  180. to some small value, calculate, then modify required properties (as density
  181. or speed) and calculate again, possibly changing "frames" to new value.
  182. This will result in length of your animation being a sum of specified frame
  183. values.  To easily achieve interesting results we advise you to use ARexx,
  184. which greatly simplifies the process.
  185.  
  186. Depressing "Calculate" gadget starts the calculation procedure.  The
  187. first frame may take longer to compute as some precalculations have to be
  188. made.
  189.  
  190.  
  191.  
  192. 5. Menus.
  193.  
  194.   5.1 Project
  195.  
  196.     5.1.1 Open Project.
  197.           Opens project, possibly asking you for path/filename and/or
  198.           opening the screen for graphics output.
  199.  
  200.     5.1.2 Close Project.
  201.           Closes project, frees memory and closes rendering screen if it
  202.           was present.
  203.  
  204.     5.1.3 About.
  205.           Displays some information about "Clouds'" author and
  206.           ARexx's port name.
  207.  
  208.     5.1.4 Quit.
  209.           Ends session with "Clouds".
  210.  
  211.  
  212.   5.2 Config
  213.  
  214.     5.2.1 Display colors.
  215.           This allows you choose how many colors will be present in images
  216.           rendered by "Clouds".  The option allows for 16 or 256 color
  217.           screen.  The 256-colors rendering is only available on AGA machines.
  218.  
  219.     5.2.2 Save colors.
  220.           This options selects how many colors will be present in frames
  221.           saved to disk. This time the 256-colors are accessible for all
  222.           Amigas, moreover - it is recommended.
  223.  
  224.     5.2.3 Save format.
  225.           Specifies format of filenames used for saving frames.
  226.  
  227.     5.2.4 Priority.
  228.           Specifies program's task priority while calculating.
  229.  
  230.     5.2.5 Screen mode.
  231.           This option is available only under System 2.1+. It allows you
  232.           specify display screen's mode.
  233.  
  234.     5.2.6 Load config.
  235.           Can be used to load configuration files other than
  236.           "clouds.config", which is loaded automatically. File requester
  237.           which will appear should be used to select file previously saved
  238.           with the "Save config" option.
  239.  
  240.     5.2.7 Save config.
  241.           Saves actual settings of config menu, and state of all
  242.           other parameters including "Control" and "FFT". File
  243.           requester will appear allowing you to specify configs' file name.
  244.           When "Clouds" is invoked, it automatically looks for "clouds.config"
  245.           file in the actual directory, to use it as a default config.
  246.  
  247.  
  248.  
  249. ARexx
  250. -----
  251.  
  252. "Clouds" features a full ARexx interface. All functions can be
  253. controlled from ARexx, and there are even some additional commands
  254. accessible only from ARexx. There is a brief description of all
  255. available commands. Parameters given in "{}" are required, while
  256. parameters in "[]" are optional and may be omitted. Every command
  257. returns 0 in RC if everything went right,  else it returns 10 in RC
  258. and short note in CLOUDS.LASTERROR prompting why an error occurred.
  259.  
  260. Following ARexx commands have identical meaning as theirs GUI equivalents
  261. described above: 
  262.  
  263.   * cl_Seed           {n}
  264.   * cl_Roughness      {n}
  265.   * cl_Granularity    {n}
  266.   * cl_Globality      {n}
  267.   * cl_Strength       {n}
  268.   * cl_Abruptness     {n}
  269.   * cl_Velocity       {n}
  270.   * cl_Direction      {n}
  271.   * cl_Density        {n}
  272.   * cl_Contrast       {n}
  273.  
  274.   * cl_Frames         {n}
  275.   * cl_Width          {n}
  276.   * cl_Height         {n}
  277.   * cl_Fft            {16 | 32 | 64 | 128 | 256 | 512 | 1024}
  278.   * cl_Control        {DisplayAndSave | OnlyDisplay | OnlySave}
  279.  
  280.   * cl_Quit
  281.   * cl_About
  282.  
  283.   * cl_DisplayColors  {16 | 256}
  284.   * cl_SaveColors     {16 | 256}
  285.  
  286.   * cl_ScreenMode
  287.   * cl_Priority       {-1 | 0 | 1}
  288.   * cl_SaveFormat     {%s%d | %s%03d | %s%04d | %s.%d | %s.%03d | %s.%04d}
  289.  
  290.   * cl_CloseProject
  291.  
  292.   * cl_OpenProject    [filename]
  293.  
  294.   * cl_LoadConfig     [filename]
  295.   * cl_SaveConfig     [filename]
  296.  
  297.   * cl_Calculate
  298.     This command can also return value 5 in RC. This case means that
  299.     calculations have been cancelled by the user.
  300.  
  301. Following commands are accessible only from ARexx level:
  302.  
  303.   * cl_QuitNow
  304.     Causes program to quit unconditionally. No questions asked.
  305.  
  306.   * cl_Information    {information}
  307.     Brings up a text requester displaying short, one line long information.
  308.  
  309.   * cl_Question       {question}
  310.     Brings up a text requester displaying short, one line long question.
  311.     The user will have two possible answers: 'OK' and 'Cancel'. The command
  312.     returns 5 in RC if 'OK' was pressed, otherwise RC is equal to 0.
  313.  
  314.  
  315.  
  316. Additional Notes
  317. ----------------
  318.  
  319. To run "Clouds v1.0" you need some libraries installed in your "LIBS:"
  320. drawer. These are:
  321.   - mathtrans.library
  322.   - asl.library (V36+, preferably V38+) required only under Kick2.0+
  323.   - req.library required under Kick1.3, not used under Kick2.0+
  324.   - rexxsyslib.library, mathieeedoubbas.library required only if you
  325.     want to take advantage of ARexx interface.
  326.  
  327.  
  328.  
  329. Acknowledgements
  330. ----------------
  331.  
  332. The author wishes to express his thanks to Georgios Sakas for development
  333. of the method.
  334.  
  335.  
  336.  
  337. Distribution
  338. ------------
  339.  
  340. Clouds v1.0 is a shareware program.  You may freely distribute it as long
  341. as all of its files are included in their original form without additions,
  342. deletions, or modifications of any kind, and only a nominal fee is charged
  343. for its distribution.  It cannot be distributed as a part of commercial
  344. product without author's written permission.  If you like it and use it,
  345. the author encourage you to register.  The shareware fee is USA $20 or 20
  346. DM.  Registered users will be shipped a disk containing the latest release
  347. version of Clouds and also version optimized for math coprocessor.  By
  348. cooperating with this concept you help to ensure continued development of
  349. this product.  Please send your registration card (Orderform) and money
  350. (cash) to address below.
  351.  
  352.  
  353.  
  354. Contact addresses
  355. -----------------
  356.  
  357. e-mail: kk@felix.univ.szczecin.pl
  358.  
  359. Krzysztof Kobus
  360. ul. Chopina 38/2
  361. 71-450 Szczecin
  362. POLAND
  363.  
  364.  
  365.  
  366. Orderform
  367. ---------
  368.  
  369. For registration, send this form along with USA $20 or 20 DM to:
  370. Krzysztof Kobus, ul. Chopina 38/2, 71-450 Szczecin, POLAND.
  371.  
  372.  
  373.  **********************************************************************
  374.  
  375.       Krzsztof Kobus             *** **    ****  **  ** ****    ***
  376.                                 **   **   **  ** **  ** **  ** **
  377.       ul. Chopina 38/2          **   **   **  ** **  ** **  **  ***
  378.       71-450 Szczecin           **   **   **  ** **  ** **  **    **
  379.       Poland                     *** ****  ****   ****  ****   **** 
  380.  
  381.  **********************************************************************
  382.  
  383.       Name: _______________________________________________________
  384.  
  385.    Address: _______________________________________________________
  386.  
  387.       City: ___________________________ State: ____________________
  388.  
  389.         PC: ___________________________ Country: __________________
  390.  
  391.     E-Mail: _______________________________________________________
  392.     
  393.     Config: _______________________________________________________
  394.  
  395.    I use Clouds v ___.___ and love / hate the following things:
  396.  
  397.             _______________________________________________________
  398.  
  399.             _______________________________________________________
  400.  
  401.             _______________________________________________________
  402.  
  403.             _______________________________________________________
  404.  
  405.                                     __                __
  406.           Shareware fee included:  (__) DM20,-   or  (__) $20,-
  407.  
  408.  
  409.       I have read the Copyright and Distribution notes and do agree.
  410.  
  411.  
  412.       Date: _____________________     Signature: __________________
  413.