home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 May / PC Shareware 1997-05.iso / programy / diffract / readme.txt < prev    next >
Encoding:
Text File  |  1996-07-07  |  9.2 KB  |  169 lines

  1. Diffract - Version 1.3 - for Windows 95 only - 7/7/96
  2.  
  3.    David Bleecker
  4.    1440 Kapiolani Blvd #108-138
  5.    Honolulu, HI 96814
  6.  
  7.  
  8.    email: bleecker@math.hawaii.edu
  9.  
  10.  
  11. The idea behind Diffract:
  12.  
  13. This program generates color-enhanced pictures of diffraction patterns, which 
  14. I will call diffractals. One might guess that a diffractal is some kind of fractal,
  15. but this is not quite correct. If you have ever looked through a toy microscope 
  16. on high power, you must have noticed the wild colorful speckled patterns and rings 
  17. which resist any attempt to focus. Have you noticed the strange patterns of a street 
  18. lights through the finely rippled glass of a bathroom window? These too are diffraction 
  19. patterns. They are caused not only by cheap lenses, rippled glass or poor eyesight, but 
  20. also by the inherent wave-like nature of light.
  21.  
  22. A more complete explanation of the physics:
  23.  
  24. When light waves flow around an object or through lenses, they bend and interfere 
  25. with one another. The extent of bending depends on the color or wave-length of the 
  26. light. Expensive achromatic lenses compensate for this by focusing different colors 
  27. by different amounts, to produce a nearly naturally colored image. However there is a 
  28. fundamental limit to the power of even the most perfect optical microscope. Essentially, 
  29. one cannot resolve objects which are not much bigger than the wavelengths of visible 
  30. light. Instead, as power is increased, one observes more pronounced diffraction 
  31. patterns resulting from the disturbance of the waves by small objects. Quantum theory 
  32. tells us that all particles (e.g., electrons, protons, etc.) have wavelike attributes. 
  33. Electron waves have a much shorter wavelength than light and hence electron microscopes 
  34. can resolve much smaller objects, but again there is a limit. On a sufficiently small 
  35. microscopic level, one is tempted to say that the universe is a menagerie of interacting 
  36. waves and diffraction patterns. Actually, things are more complicated than that. Indeed, 
  37. there is another perspective in which particles are essentially point-like (or 
  38. string-like), but their positions are statistically governed by a probability cloud 
  39. which resembles a (possibly evolving) diffraction pattern. However, now we are 
  40. approaching the limit of what can be understood in a mundane way, without mathematics.
  41. Let it suffice to say that the natural appearance of diffractals is due to the 
  42. fact that they are built into the fabric of the universe.
  43.  
  44.  
  45. The Diffract Program:
  46.  
  47. Each pixel is colored according to a complex algorithm (and some parameters 
  48. that you enter) with one of up to 16,777,216 colors depending on your video card 
  49. (i.e., the output is true-color if you have it, and the best possible, if you don't). 
  50. Thus, the output is generally of much higher quality than you find with popular 
  51. fractal programs which are usually limitted to 256 colors per pixel. Also, 
  52. diffraction patterns are not fractals. Generally, they are more lifelike, natural 
  53. and flowing, and it is relatively easy to choose parameters which generate 
  54. prettier results than your average fractal. However, you will probably agree 
  55. that this is an understatement. 
  56.       
  57. Installation and Starting:
  58.  
  59. Besides this file, there is only one crucial file - diffract.exe, and some sample 
  60. data files (*.dff) are included. Include this file (unaltered) as well, if you 
  61. want to distribute or upload the program.
  62.  
  63. No installation is necessary. Just run the program from within 
  64. Windows 95, say by double-clicking in Explorer, even if the program 
  65. resides on a floppy. Of course, one may wish to copy the files to an 
  66. empty folder on the hard drive. Simply delete the folder and its contents 
  67. to uninstall without a trace left behind.
  68.  
  69.  
  70. Legalities:
  71.  
  72. Version 1.3 of Diffract is copyrighted freeware. Attempts to sell or distribute 
  73. the program for commercial gain must be approved me. If you find the program of value, 
  74. and you want to support my efforts to improve it, donations (however small) will be 
  75. appreciated. With a donation of $20 or more (check to David Bleecker or cash) sent to 
  76.  
  77.                    David Bleecker
  78.                    1440 Kapiolani Blvd #108-138
  79.                    Honolulu, HI 96814
  80.  
  81. I will try my best to implement a feature that you want added, or cure a behavior 
  82. that irks you. I will attach the resulting improved latest version to an email to you, 
  83. or explain why I've failed and send you the latest version anyway. Please give me a 
  84. few weeks. In case you have trouble receiving email with zipped attachments, I can 
  85. send the zip file on a disk. Please report any problems you are having. As far as I know, 
  86. there is no damage that the program can possibly do. However, if you use the program, you 
  87. must agree to hold me blameless for any mishap. Diffract was developed using Microsoft 
  88. Visual C++, Version 4.0.
  89.  
  90.  
  91. Basic instructions suggestions and comments:
  92.  
  93. 1.  The window should be sized small for fast generation. After resizing the 
  94. window, left-click the mouse inside the window to redraw the image to the 
  95. new window size. Subsequent left-clicks zoom the window by 200% centered about 
  96. the point which was clicked (see item 3 below). Right clicks always zoom out (50%). 
  97. Also, increasing the scattering factor in the Settings/Misc dialog box will 
  98. increase speed but may adversely affect the image. Features can change shape if 
  99. zoomed when the scattering is set high.
  100.  
  101. 2.  Experiment with different color settings in the Settings/Frequency 
  102. dialog box. Make sure the color radio button is on, unless you want 
  103. gray-scale. Also, try different types in the Settings/Pattern dialog box.  
  104. Before creating your own masterpiece from scratch, try loading some of 
  105. the included  dff  files from the File/Open dialog box.  You may wish 
  106. to use these files as a starting point when you change the settings.
  107.  
  108. 3.  Zoom in on an object with a left mouse click on the object. You will 
  109. have to uncheck the center horizontal and vertical boxes in the Settings/Misc 
  110. dialog box to zoom in on an off-center object. When checked, these boxes 
  111. constrain movement to a vertical or horizontal line through the center of the 
  112. default pattern for the given type. Zoom out (50%) with a right mouse click. 
  113. To pan out of the window, zoom in near an edge and immediately zoom out. Then 
  114. you've panned by half a window.
  115.  
  116. 4.  When you've got a winner, enlarge the window to the desired size and 
  117. left-click in the window to begin generation of the image to fit the window. 
  118. One can minimize the window, while the image is being computed in the background,
  119. and you can work on other applications. When an image is complete, it is a good 
  120. idea to immediately copy it to the Windows clipboard (via Edit/Copy or Ctrl + C). 
  121. Start a paint program such as Paint Shop Pro (if one is not already running) and 
  122. paste the image from the clipboard into the paint program. You can then process 
  123. the image and save it in the format of your choice. The resolution of images produced 
  124. by Diffract are the highest possible for your display. If you want to stretch a 
  125. small image (thereby introducing blockiness and jaggies), you may resize it in a 
  126. suitable paint program. However, unless you are short on time, memory or disk space, 
  127. just generate a larger image by resizing the Diffract window and left-clicking 
  128. in the window.  
  129.  
  130.  
  131. 5.  When you find something nice, you will want to save the settings in a  
  132. *.dff  file for future use.
  133.  
  134.  
  135. Advanced comments:
  136.  
  137. 1. Higher frequencies make for more delicate details. Since zooming makes 
  138. details larger, you may wish to raise the frequencies after zooming many times.
  139.  
  140. 2. If the RGB color frequencies are set equal, a much more focused image 
  141. results. One can then get different colors by making the RGB contours and/or 
  142. edges different. Also, if the RGB color frequencies are set equal, image 
  143. generation is about three times faster than if they are all different. Even 
  144. if only two RGB color frequencies are equal, image generation is 50% faster.
  145.  
  146. 3. Contours produce bands of smoothly changing colors. The higher the contours, 
  147. the more bands are obtained. Edges (if set greater than 1) produce abruptly 
  148. changing colors and intensities. You may find it challenging to produce colors 
  149. that you want. Generally, one can suppress a color by setting its contour 
  150. to a value less than 1, but often it is easier to paste the image in a paint 
  151. program and change the colors and introduce other effects using the filters 
  152. of your paint program.
  153.  
  154. 4. Polarization values (in the Settings/Misc dialog box) further from zero 
  155. tend to produce a wider variety of shapes.
  156.  
  157. 5. Experience may eventually lead you to produce desired effects, but more 
  158. often you must simply appreciate that what you get is typically stranger 
  159. (and perhaps better) than what you imagined. Often you can find some pattern you 
  160. like by panning and zooming in on some intriguing detail. Changing the texture 
  161. dilation in the Settings/Misc will shift the colors somewhat, without changing 
  162. the shapes too much.  If you've got something you like, you probably don't want 
  163. to make any big changes in any of the settings. When you happen to get colors 
  164. and/or patterns you like, save to a  dff  file with a descriptive name to recall 
  165. the settings for later use.
  166.  
  167. Enjoy! 
  168.  
  169.