ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/util/rad.c
(Generate patch)

Comparing ray/src/util/rad.c (file contents):
Revision 2.132 by greg, Thu Nov 16 23:37:29 2023 UTC vs.
Revision 2.136 by greg, Wed Oct 29 18:55:53 2025 UTC

# Line 14 | Line 14 | static const char      RCSid[] = "$Id$";
14   #include "platform.h"
15   #include "rtprocess.h"
16   #include "view.h"
17 #include "paths.h"
17   #include "vars.h"
18  
19   #if defined(_WIN32) || defined(_WIN64)
# Line 131 | Line 130 | char   *viewselect = NULL;     /* specific view only */
130  
131   #define DEF_RPICT_PATH  "rpict"         /* default rpict path */
132  
133 + #define R_CMDMAX        (5*PATH_MAX+512)
134                                  /* command paths */
135   char    c_oconv[256] = "oconv";
136   char    c_mkillum[256] = "mkillum";
# Line 144 | Line 144 | int    overture = 0;           /* overture calculation needed */
144  
145   int     children_running = 0;   /* set negative in children */
146  
147 char    *progname;              /* global argv[0] */
147   char    *rifname;               /* global rad input file name */
148  
149   char    radname[PATH_MAX];      /* root Radiance file name */
# Line 197 | Line 196 | main(
196          char    ropts[512];
197          char    popts[64];
198          int     i;
199 <
200 <        progname = argv[0];
199 >                                /* set global progname */
200 >        fixargv0(argv[0]);
201                                  /* get options */
202          for (i = 1; i < argc && argv[i][0] == '-'; i++)
203                  switch (argv[i][1]) {
# Line 528 | Line 527 | static void
527   oconv(void)                             /* run oconv and mkillum if necessary */
528   {
529          static char     illumtmp[] = "ilXXXXXX";
530 <        char    combuf[PATH_MAX], ocopts[64], mkopts[1024];
530 >        char    combuf[R_CMDMAX], ocopts[64], mkopts[1024];
531  
532          oconvopts(ocopts);              /* get options */
533          if (octreedate < scenedate) {   /* check date on original octree */
# Line 909 | Line 908 | lowqopts(                      /* low quality rendering options */
908                  op = addarg(op, "-ds .4");
909          else
910                  op = addarg(op, "-ds 0");
911 <        op = addarg(op, "-dt .2 -dc .25 -dr 0 -ss 0 -st .5");
911 >        op = addarg(op, "-dt .1 -dc .5 -dr 0 -ss 0 -st .5");
912          if (vdef(AMBFILE)) {
913                  sprintf(op, " -af %s", vval(AMBFILE));
914                  op += strlen(op);
# Line 984 | Line 983 | medqopts(                      /* medium quality rendering options */
983                  op = addarg(op, "-ds .2 -dj .9");
984          else
985                  op = addarg(op, "-ds .3");
986 <        op = addarg(op, "-dt .1 -dc .5 -dr 1 -ss 1 -st .1");
986 >        op = addarg(op, "-dt .07 -dc .7 -dr 1 -ss 1 -st .1");
987          if ( (overture = vint(INDIRECT)) ) {
988                  sprintf(op, " -ab %d", overture);
989                  op += strlen(op);
# Line 1062 | Line 1061 | hiqopts(                               /* high quality rendering options */
1061                  op = addarg(op, "-ds .1 -dj .9");
1062          else
1063                  op = addarg(op, "-ds .2");
1064 <        op = addarg(op, "-dt .05 -dc .75 -dr 3 -ss 16 -st .01");
1064 >        op = addarg(op, "-dt .04 -dc .9 -dr 3 -ss 16 -st .01");
1065          sprintf(op, " -ab %d", overture=vint(INDIRECT)+1);
1066          op += strlen(op);
1067          if (vdef(AMBFILE)) {
# Line 1415 | Line 1414 | rvu(                           /* run rvu with first view */
1414   )
1415   {
1416          char    *vw;
1417 <        char    combuf[PATH_MAX];
1417 >        char    combuf[R_CMDMAX];
1418                                          /* build command */
1419          if (touchonly || (vw = getview(0, NULL)) == NULL)
1420                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)