home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3406 / ReadMe < prev    next >
Encoding:
Text File  |  1991-05-24  |  2.5 KB  |  64 lines

  1.  
  2. This is a Mandelbrot/Julia program for X-windows. I think
  3. it might interest somebody because it is very fast and
  4. it looks very nice, at least on color displays.
  5.  
  6. I originally thought I would post this to comp.sources.x but
  7. the rules for posting were too strict ;)
  8. No kidding, I am not going to construct an Imakefile nor
  9. patchlevel.h because I do not know how to.
  10.  
  11. Secondly, this program will probably compile OK only on
  12. Sun 3's, Sun sparcstations and IBM RS/6000's because those
  13. are the only machines I have access to. I still do not
  14. know how to make programs portable ;)
  15.  
  16. This program is designed under BSD unix, and there is at least
  17. one BSD-specific select() call that you may need to modify if
  18. porting to sysV environment. And I really do not know why
  19. the includes have different names under differenct environments...
  20. sys/termio.h? sys/termios.h? termios.h? what the heck, I'll
  21. leave it up to you to figure it out ;)
  22.  
  23. Compiling instructions:
  24. Sun3/sparc:    make "CC=gcc"  OR
  25.                 make
  26.  
  27. IBM RS/6000: make "CC=bsdcc"
  28.  
  29. It should not be too difficult in other environments either.
  30.  
  31. This will produce two programs, xmb and xnetmb;
  32. they are essentially the same program but xnetmb can
  33. distribute the calculations to other machines using
  34. unix-style stream sockets. See the manual page for more details.
  35.  
  36. The speed of this program is for three reasons:
  37. 1) fixed point math when possible (first 16-bit, then 32-bit and
  38.    doubles only as the last possibility)
  39. 2) contour crawling algorithm... follows the edges of different ares
  40.    and thus reduces the number of pixels that must be calculated.
  41. 3) distributed calculation in an network, xnetmb only.
  42.  
  43. The first of these had to be done in somewhat unportable manner.
  44. If your system has problems with signed bit-shifts
  45. or 2's complement math, you may have to #undef USE_INTEGER_MATH
  46. from mb.h.
  47.  
  48. One of the options is undocumented, namely "-guru fast" ;)
  49. That is because it will increase the net traffic of xnetmb by over
  50. 100%, and it is not meant to be used lightly.
  51. Normally xnetmb will use only about 100 K of net traffic for an 1000x1000
  52. picture by 32767 color, pretty little, eh? ;)
  53.  
  54. I might as well advertise the "mandel" program which is a similar
  55. mandelbrot program for Amiga... it too uses fixed-point math and
  56. contour crawling. But do not contact me to get it!! It can probably
  57. be found in abcfd20, but I do not remenber its name.. mandel.lzh?
  58.  
  59. Author: Hannu Helminen, Finland
  60. Email: dm@stekt.oulu.fi
  61. (or dm@otitsun.oulu.fi or dm@rainbow.oulu.fi)
  62.  
  63.  
  64.