home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / f / fracxtr4.zip / 24BIT.TXT < prev    next >
Text File  |  1993-02-15  |  7KB  |  136 lines

  1. Info on making 24-bit fractals (other than the light transform outputs)
  2. ------------------------------------------------------------------------
  3. ------------------------------------------------------------------------
  4. ------------------------------------------------------------------------
  5.  
  6. Entry #209 of SCI.FRACTALS
  7. Re: 24 bit fractals
  8. From: cwm@Turing.ORG (Chris W. Morris)
  9. Date: 30 Nov 92 19:46:54 GMT
  10.  
  11. In article <133960001@acf3.NYU.EDU> reznick@acf3.NYU.EDU (Daniel Reznick)
  12. writes:
  13. >With the advent of affordable 24 bit color for the PC, there exists
  14. >a very noticeable niche (read CHASM) which needs to be filled..
  15. >A 24 bit fractal (or even just Mandelbrot) generator for the PC.
  16. >preferably running under Windows, as most 24 bit color boards
  17. >only supply drivers for Windows.
  18. >MOST preferabbly a 24 bit friendly WinFract.
  19. >
  20. >For now, I would be happy with any program which will produce 24
  21. >bit fractal images on the PC, even under DOS, which hopefully would
  22. >then allow for some sort of 8-bit preview.
  23.  
  24. As some of you may remember, I asked about this a while back. Althought I did
  25. not find a 'quick & easy' way to do this, I did find a way.
  26. Special thanks to Kerry Mitchell for the following information.
  27. I hope this proves of use to you all.
  28.  
  29. -Chris W. Morris
  30. cwm@Turing.org
  31.  -------------------------------------------------------------------------------
  32.  
  33. Date:    Sun, 8 Nov 1992 23:24:56 -0500 (EST)
  34. From:    MITCHELL@ACODVAX.LARC.NASA.GOV
  35. Subject: Re:  high-color fractals
  36. To:      cwm@turing.org
  37.  
  38. I've been working with high- & true-color images for about a year now.  As you
  39. realize, most fractal programs (like Fractint) don't support 16- or 24-bit
  40. color.  Your basic escape-time fractal wouldn't benefit much from it anyway,
  41. since the dynamic range for most fractal zooms isn't more than a few hundred.
  42. That is, if you zoom in on any part of the Mandelbrot set, the range of
  43. iteration cycles that you'd need to color would span a few hundred or so.
  44.  
  45. What I did was to come up with different ways to render various fractals.
  46. It's handy at this point to get an image-processing program, like Piclab,
  47. that can handle Targa format files.  I also have CSHOW, a picture viewer that
  48. supports both high- & true-color.
  49.  
  50. Essentially, what I do is generate 3 separate images for each fractal:  one in
  51. reds, one in greens, and one in blues.  Then, I use the image-processing
  52. program to combine these into one image.  Since these pictures are not mapped
  53. like GIF files are, it's not a simple task to change to color palette.
  54. Fortunately, Piclab allows the user to negate any one color component (R, G,
  55. or B) or all 3.  Thus, 8 perturbations are immediately available for each
  56. image.
  57.  
  58. There are various ways to generate the red, green, and blue screens.  If you
  59. use Fractint, you probably know about the 'outside=' parameters.  The usual
  60. choice is 'iter', but there are also 'real', 'imag', 'mult', and 'summ'.  An
  61. easy thing to do is the generate a fractal, say a Julia set for c = 0.28.  Do
  62. this with outside=iter and color it in greens, say.  Then, use outside=real
  63. with a blue palette.  Now, try outside=imag in reds.  Finally, lump them all
  64. together for the final picture.  If you do this type of thing well, you can
  65. wind up with many thousands of colors in your 640 x 480 image.
  66.  
  67. Whether or not you use Fractint, I find the key is to investigate other
  68. characteristics of the fractal to use for coloring.  You can change the
  69. escape boundary from a circle to a horizontal or vertical band.  You can use
  70. the 'decomp=' option to break each iteration band up into angular pieces.  You
  71. can write your own routines to decompose each band by the size of the iterate
  72. once it diverges.  Etc., etc., etc.
  73.  
  74. For those points that don't diverge, Fractint offers a few different coloring
  75. options.  One thing I like to do is find a Julia set that is largely 'black'
  76. (points that don't diverge), and where the iterations are chaotic (not in one
  77. of the periodic areas).  Then, I iterate to 150 (or so) and color the 'lake'
  78. areas according to 'inside=zmag' in one color.  Then, I generate another image
  79. by iterating to 151 and using another color.  Then, a third by iterating to
  80. 152.  Since the orbits are chaotic, the bands of constant zmag will move from
  81. one iteration to the next, resulting in bands of color filling the otherwise
  82. bland lake.
  83.  
  84. Anyway, there are some ideas to get you going.  Have fun and let me know if
  85. you come up with anything interesting.
  86.  
  87. Kerry Mitchell
  88. mitchell@acodkris.larc.nasa.gov
  89.  
  90. -----------------------------------------------------------------------------
  91. -----------------------------------------------------------------------------
  92. -----------------------------------------------------------------------------
  93. summary of above techniques, explained better, with hints:
  94. (by dan goldwater):
  95.  
  96. the above technique works fairly well.  to simplify the above, basically, 
  97. one way to make a 24bit image would be to generate three images of the
  98. same julia set (they work well), one using the outside=real option, one 
  99. with outside=imag, and one with outside=mult (or summ, iter, etc).
  100. then, use an all red palette on the first image, an all green pallete on
  101. the second, and an all blue pallete on the third (try using 'sf5', 'sf6'
  102. and 'sf7' keys in color cycling mode: they have simple black to red, 
  103. black to green, and black to blue gradients).
  104. after you save the three images, you must then put them together into a
  105. single image.  a program such as piclab, photostyler, or some sort of
  106. graphics/retouching program should do.  in order to not have the final
  107. image be too bright, first darken each of the images a bit.  how much to do
  108. this varies.  darken between 20% and 50% depending on how bright the original
  109. is.  for best results, the contrast will usually have to be adjusted a bit
  110. too.  then, overlay all three images on top of each other, and enjoy!
  111.  
  112. additional notes:
  113. for julia sets, the outside=real, imag, mult, and summ, and decomp=256 
  114. generate the best results using the above method.  especially good
  115. results can be obtained with the following two combinations:
  116. real, mult, and imag.  mult, decomp, and imag.
  117. when using an imag and a real in the same image, make sure to have one image
  118. with black in the center and color on the outside, and the other with black
  119. on the outside and color on the inside.
  120. if you want to obtain best results by adjusting contrast, etc, you will
  121. usually only need to do so on the outside=real and imag images, as those
  122. types often do not have very much contrast at all.  the other
  123. three types generally have a wide range of color values.  however, you will
  124. still want to some darkening of the images in most cases.
  125.  
  126. new:
  127. i made some .map files and .par file for 24bit images.  the .map files
  128. redin.map, redout.map, greenin.map, greenout.map, bluein.map, blueout.map
  129. are just simple black-to-color gradients, one with black on the outside, 
  130. the other with black on the inside.  also, in dcontpot.par, try the 
  131. 24bit-1 images for a nice 24bit image (you still have to do all the
  132. overlaying yourself).
  133.  
  134. -dan goldwater-
  135. daniel_goldwater@brown.edu
  136.