| 15 | 
  | 
#include <ctype.h> | 
| 16 | 
  | 
#include <sys/types.h> | 
| 17 | 
  | 
 | 
| 18 | 
< | 
                                /* variables */ | 
| 19 | 
< | 
#define OBJECT          0               /* object files */ | 
| 20 | 
< | 
#define SCENE           1               /* scene files */ | 
| 21 | 
< | 
#define MATERIAL        2               /* material files */ | 
| 18 | 
> | 
                                /* variables (alphabetical by name) */ | 
| 19 | 
> | 
#define AMBFILE         0               /* ambient file name */ | 
| 20 | 
> | 
#define DETAIL          1               /* level of scene detail */ | 
| 21 | 
> | 
#define EXPOSURE        2               /* picture exposure setting */ | 
| 22 | 
  | 
#define ILLUM           3               /* mkillum input files */ | 
| 23 | 
< | 
#define MKILLUM         4               /* mkillum options */ | 
| 24 | 
< | 
#define RENDER          5               /* rendering options */ | 
| 25 | 
< | 
#define OCONV           6               /* oconv options */ | 
| 26 | 
< | 
#define PFILT           7               /* pfilt options */ | 
| 27 | 
< | 
#define VIEWS           8               /* view(s) for picture(s) */ | 
| 28 | 
< | 
#define ZONE            9               /* simulation zone */ | 
| 29 | 
< | 
#define QUALITY         10              /* desired rendering quality */ | 
| 30 | 
< | 
#define OCTREE          11              /* octree file name */ | 
| 31 | 
< | 
#define PICTURE         12              /* picture file root name */ | 
| 32 | 
< | 
#define AMBFILE         13              /* ambient file name */ | 
| 33 | 
< | 
#define OPTFILE         14              /* rendering options file */ | 
| 34 | 
< | 
#define EXPOSURE        15              /* picture exposure setting */ | 
| 35 | 
< | 
#define RESOLUTION      16              /* maximum picture resolution */ | 
| 36 | 
< | 
#define UP              17              /* view up (X, Y or Z) */ | 
| 37 | 
< | 
#define INDIRECT        18              /* indirection in lighting */ | 
| 38 | 
< | 
#define DETAIL          19              /* level of scene detail */ | 
| 39 | 
< | 
#define PENUMBRAS       20              /* shadow penumbras are desired */ | 
| 23 | 
> | 
#define INDIRECT        4               /* indirection in lighting */ | 
| 24 | 
> | 
#define MATERIAL        5               /* material files */ | 
| 25 | 
> | 
#define MKILLUM         6               /* mkillum options */ | 
| 26 | 
> | 
#define OBJECT          7               /* object files */ | 
| 27 | 
> | 
#define OCONV           8               /* oconv options */ | 
| 28 | 
> | 
#define OCTREE          9               /* octree file name */ | 
| 29 | 
> | 
#define OPTFILE         10              /* rendering options file */ | 
| 30 | 
> | 
#define PENUMBRAS       11              /* shadow penumbras are desired */ | 
| 31 | 
> | 
#define PFILT           12              /* pfilt options */ | 
| 32 | 
> | 
#define PICTURE         13              /* picture file root name */ | 
| 33 | 
> | 
#define QUALITY         14              /* desired rendering quality */ | 
| 34 | 
> | 
#define RAWFILE         15              /* raw picture file root name */ | 
| 35 | 
> | 
#define RENDER          16              /* rendering options */ | 
| 36 | 
> | 
#define REPORT          17              /* report frequency and errfile */ | 
| 37 | 
> | 
#define RESOLUTION      18              /* maximum picture resolution */ | 
| 38 | 
> | 
#define SCENE           19              /* scene files */ | 
| 39 | 
> | 
#define UP              20              /* view up (X, Y or Z) */ | 
| 40 | 
  | 
#define VARIABILITY     21              /* level of light variability */ | 
| 41 | 
< | 
#define REPORT          22              /* report frequency and errfile */ | 
| 42 | 
< | 
#define RAWFILE         23              /* raw picture file root name */ | 
| 43 | 
< | 
#define ZFILE           24              /* distance file root name */ | 
| 41 | 
> | 
#define VIEWS           22              /* view(s) for picture(s) */ | 
| 42 | 
> | 
#define ZFILE           23              /* distance file root name */ | 
| 43 | 
> | 
#define ZONE            24              /* simulation zone */ | 
| 44 | 
  | 
                                /* total number of variables */ | 
| 45 | 
  | 
int NVARS = 25; | 
| 46 | 
  | 
 | 
| 47 | 
  | 
VARIABLE        vv[] = {                /* variable-value pairs */ | 
| 48 | 
< | 
        {"objects",     3,      0,      NULL,   catvalues}, | 
| 49 | 
< | 
        {"scene",       3,      0,      NULL,   catvalues}, | 
| 50 | 
< | 
        {"materials",   3,      0,      NULL,   catvalues}, | 
| 48 | 
> | 
        {"AMBFILE",     3,      0,      NULL,   onevalue}, | 
| 49 | 
> | 
        {"DETAIL",      3,      0,      NULL,   qualvalue}, | 
| 50 | 
> | 
        {"EXPOSURE",    3,      0,      NULL,   fltvalue}, | 
| 51 | 
  | 
        {"illum",       3,      0,      NULL,   catvalues}, | 
| 52 | 
+ | 
        {"INDIRECT",    3,      0,      NULL,   intvalue}, | 
| 53 | 
+ | 
        {"materials",   3,      0,      NULL,   catvalues}, | 
| 54 | 
  | 
        {"mkillum",     3,      0,      NULL,   catvalues}, | 
| 55 | 
< | 
        {"render",      3,      0,      NULL,   catvalues}, | 
| 55 | 
> | 
        {"objects",     3,      0,      NULL,   catvalues}, | 
| 56 | 
  | 
        {"oconv",       3,      0,      NULL,   catvalues}, | 
| 55 | 
– | 
        {"pfilt",       2,      0,      NULL,   catvalues}, | 
| 56 | 
– | 
        {"view",        2,      0,      NULL,   NULL}, | 
| 57 | 
– | 
        {"ZONE",        2,      0,      NULL,   onevalue}, | 
| 58 | 
– | 
        {"QUALITY",     3,      0,      NULL,   qualvalue}, | 
| 57 | 
  | 
        {"OCTREE",      3,      0,      NULL,   onevalue}, | 
| 60 | 
– | 
        {"PICTURE",     3,      0,      NULL,   onevalue}, | 
| 61 | 
– | 
        {"AMBFILE",     3,      0,      NULL,   onevalue}, | 
| 58 | 
  | 
        {"OPTFILE",     3,      0,      NULL,   onevalue}, | 
| 59 | 
< | 
        {"EXPOSURE",    3,      0,      NULL,   fltvalue}, | 
| 59 | 
> | 
        {"PENUMBRAS",   3,      0,      NULL,   boolvalue}, | 
| 60 | 
> | 
        {"pfilt",       2,      0,      NULL,   catvalues}, | 
| 61 | 
> | 
        {"PICTURE",     3,      0,      NULL,   onevalue}, | 
| 62 | 
> | 
        {"QUALITY",     3,      0,      NULL,   qualvalue}, | 
| 63 | 
> | 
        {"RAWFILE",     3,      0,      NULL,   onevalue}, | 
| 64 | 
> | 
        {"render",      3,      0,      NULL,   catvalues}, | 
| 65 | 
> | 
        {"REPORT",      3,      0,      NULL,   onevalue}, | 
| 66 | 
  | 
        {"RESOLUTION",  3,      0,      NULL,   onevalue}, | 
| 67 | 
+ | 
        {"scene",       3,      0,      NULL,   catvalues}, | 
| 68 | 
  | 
        {"UP",          2,      0,      NULL,   onevalue}, | 
| 66 | 
– | 
        {"INDIRECT",    3,      0,      NULL,   intvalue}, | 
| 67 | 
– | 
        {"DETAIL",      3,      0,      NULL,   qualvalue}, | 
| 68 | 
– | 
        {"PENUMBRAS",   3,      0,      NULL,   boolvalue}, | 
| 69 | 
  | 
        {"VARIABILITY", 3,      0,      NULL,   qualvalue}, | 
| 70 | 
< | 
        {"REPORT",      3,      0,      NULL,   onevalue}, | 
| 71 | 
< | 
        {"RAWFILE",     3,      0,      NULL,   onevalue}, | 
| 70 | 
> | 
        {"view",        2,      0,      NULL,   NULL}, | 
| 71 | 
  | 
        {"ZFILE",       2,      0,      NULL,   onevalue}, | 
| 72 | 
+ | 
        {"ZONE",        2,      0,      NULL,   onevalue}, | 
| 73 | 
  | 
}; | 
| 74 | 
  | 
 | 
| 75 | 
  | 
                                /* overture calculation file */ |