home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / formats / uray / code / uray.dat < prev    next >
Text File  |  1994-06-20  |  5KB  |  113 lines

  1. /************************************************************************
  2.  *                                    *
  3.  *            Copyright (c) 1988, David B. Wecker            *
  4.  *                All Rights Reserved                *
  5.  *                                    *
  6.  * This file is part of DBW_uRAY                    *
  7.  *                                    *
  8.  * DBW_uRAY is distributed in the hope that it will be useful, but    *
  9.  * WITHOUT ANY WARRANTY. No author or distributor accepts        *
  10.  * responsibility to anyone for the consequences of using it or for    *
  11.  * whether it serves any particular purpose or works at all, unless    *
  12.  * he says so in writing. Refer to the DBW_uRAY General Public        *
  13.  * License for full details.                        *
  14.  *                                    *
  15.  * Everyone is granted permission to copy, modify and redistribute    *
  16.  * DBW_uRAY, but only under the conditions described in the        *
  17.  * DBW_uRAY General Public License. A copy of this license is        *
  18.  * supposed to have been given to you along with DBW_uRAY so you    *
  19.  * can know your rights and responsibilities. It should be in a file    *
  20.  * named LICENSE. Among other things, the copyright notice and this    *
  21.  * notice must be preserved on all copies.                *
  22.  ************************************************************************
  23.  *                                    *
  24.  * Authors:                                *
  25.  *    DBW - David B. Wecker                        *
  26.  *                                    *
  27.  * Versions:                                *
  28.  *    V1.0 881023 DBW    - First released version            *
  29.  *    V1.1 881110 DBW - Fixed scan coherence code            *
  30.  *    V1.2 881125 DBW - Removed ALL scan coherence code (useless)    *
  31.  *              added "fat" extent boxes            *
  32.  *    V1.3 881203 DBW - Fixed single precision TOLerances        *
  33.  *                                    *
  34.  ************************************************************************/
  35.  
  36. /**** Input for micro ray tracer ****/
  37.  
  38. DEPTH    10        /* maximum recursion depth */
  39.  
  40. #COLS    512        /* width */
  41. #ROWS    480        /* height */
  42. #START    0        /* row to start at */
  43. #END    480        /* row to end with */
  44. #BPP    24        /* bits per pixel (12 or 24 or 0 (== no .tmp file)) */
  45. #AOV    55        /* angle of view in degrees */
  46. #ASPECT    .652        /* aspect ratio (cols/rows ((512/480) * (5.5/9))) */
  47.  
  48. COLS    352        /* width  (overscanned) */
  49. ROWS    464        /* height (overscanned) */
  50. START    0        /* row to start at */
  51. END    464        /* row to end with */
  52. BPP    0        /* bits per pixel (12 or 24 or 0 (== no .tmp file)) */
  53. AOV    55        /* angle of view in degrees */
  54. ASPECT    .544        /* aspect ratio (cols/rows ((320/400) * (17cm/25cm))) */
  55.  
  56. NEAR    0 0 1        /* ambient (background) lighting (near 0,0,0) */
  57. FAR    1 0 .5        /* ambient (background) lighting (far from 0,0,0) */
  58. GROUND    .6 .3 .3    /* ambient (background) lighting (below 0,0,0) */
  59. BASE    .2        /* minimum diffuse percentage (ambient lighting) */
  60.  
  61. /*******************************************************************
  62.  center    = origin of the wave
  63.  amp    = starting amplitude (.1 = small, 1 = large)
  64.  phase    = starting phase (0 = 0, .5 = 180, 1 = 360 degrees)
  65.  length    = wavelength
  66.  damp    = damping factor (1 = no damp, .7 = 70%)
  67.  *******************************************************************/
  68.  
  69. /****    center       amp  phase  length  damp
  70. WAVES 1
  71.     -5 -5 16    7     0      1    .7
  72.  
  73. /*******************************************************************
  74.  Kd    = diffuse factor
  75.  Ks    = specular factor
  76.  Kt    = transmission factor
  77.  Ir    = index of refraction (for transmission). 1.0 = none
  78.  Kl    = self lighting factor
  79.  Kf    = fuzz factor (0 = none, 1 = max)
  80.  Wave    = wave # or -1 = no waves or -2 = all waves
  81.  
  82.  For a light source, dist == 0.0 means that there is no inverse square law
  83.  
  84.  Textures:
  85.     0        none
  86.     1 r g b x y z    checkerboard    (alt color = r g b, scale = x y z)
  87.     2 r g b        random mottled    (alt color = r g b)
  88.     3 r g b a b c    X axis blend    (alt color = r g b, X range= a - b - c)
  89.     4 r g b a b c    Y axis blend    (alt color = r g b, Y range= a - b - c)
  90.     5 r g b a b c    Z axis blend    (alt color = r g b, Z range= a - b - c)
  91.  
  92.  *******************************************************************/
  93.  
  94. /****    color    Kd  Ks   Kt  Ir  Kl  dist  Kf  Wave tex  (rgb)     (coord) ****/
  95. ATTRIBUTES 7
  96.     1 .5 0     1  0    0    1   0   0    .8  -1    2  0 1 0
  97.     1 0 0    .2 .8     0    1      0   0        0  -1    0
  98.     1 1 1     0 .1   .9    1.8 0   0     0  -1    0
  99.     1 1 1     0  0    0    1   1   0     0  -1    0
  100.      .07 .07 .3 .8 .2    0    1   0   0     0   0    0
  101.     1 .5 0    .9 .1    0    1   0   0     0  -1    1    1 .7 .5  .3 .3 .3
  102.     1 1 1    1  0    0    1   0   0     0  -1    4  0 0 0     0  2  4
  103.     1 1 1     0 .5   .5    1.4 0   0     0  -1    0
  104.  
  105. SPHERE      6     -7  2 30  2            /* left back y axis blend */
  106. SPHERE      0      9  5 30  2            /* right back mottled/fuzzy */
  107. SPHERE      1      1  3 24  4            /* center mirror */
  108. SPHERE      2     -2 -2 16  2            /* left front transparent */
  109. TRIANGLE 5     -6 -1 16  4 0 -1   0 3 -1    /* left front checked */
  110. SPHERE      5      3 -1 16  2            /* right front checked */
  111. SPHERE      3    -15 13 10  6            /* light source */
  112. RING      4      0 -5 25  0 0  1   1 0 0  0 15    /* ground (wavy) */
  113.