home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / CDROM / Contents / READMEs / Peanuts-2 / X11 / clients / graphics / xmb.README next >
Encoding:
Text File  |  1996-11-09  |  2.5 KB  |  61 lines

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