ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdf2rad.c
(Generate patch)

Comparing ray/src/cv/bsdf2rad.c (file contents):
Revision 2.22 by greg, Tue Apr 11 02:21:37 2017 UTC vs.
Revision 2.23 by greg, Tue Apr 11 03:47:23 2017 UTC

# Line 383 | Line 383 | put_BSDFs(void)
383                          NINCIDENT);
384  
385          printf("\nvoid glow arrow_glow\n0\n0\n4 1 0 1 0\n");
386 <        printf("\nvoid mixfunc arrow_mat\n4 arrow_glow void 0.5 .\n0\n0\n");
386 >        printf("\nvoid mixfunc arrow_mat\n4 arrow_glow void 0.25 .\n0\n0\n");
387  
388          if (front_comp & SDsampR)                       /* front reflection */
389                  for (i = 0; i < NINCIDENT; i++) {
# Line 401 | Line 401 | put_BSDFs(void)
401                          printf("%d bsdf_red bsdf_grn bsdf_blu bsdf2rad.cal\n\t%s\n0\n0\n",
402                                          4+nxfa, xfargs);
403                          printf("\nscale_pat glow scale_mat\n0\n0\n4 1 1 1 0\n");
404 <                        SDcompXform(vMtx, ivec, upv);
404 >                        if (SDcompXform(vMtx, ivec, upv) != SDEnone)
405 >                                continue;
406                          nxfa = addrot(xfargs, vMtx[0], vMtx[1], vMtx[2]);
407                          sprintf(xfargs+strlen(xfargs), " -s %f -t %f %f %f",
408                                          scalef, sorg[0], sorg[1], sorg[2]);
# Line 429 | Line 430 | put_BSDFs(void)
430                          printf("%d bsdf_red bsdf_grn bsdf_blu bsdf2rad.cal\n\t%s\n0\n0\n",
431                                          4+nxfa, xfargs);
432                          printf("\nscale_pat glow scale_mat\n0\n0\n4 1 1 1 0\n");
433 <                        SDcompXform(vMtx, ivec, upv);
433 >                        if (SDcompXform(vMtx, ivec, upv) != SDEnone)
434 >                                continue;
435                          nxfa = addrot(xfargs, vMtx[0], vMtx[1], vMtx[2]);
436                          sprintf(xfargs+strlen(xfargs), " -s %f -t %f %f %f",
437                                          scalef, sorg[0], sorg[1], sorg[2]);
# Line 457 | Line 459 | put_BSDFs(void)
459                          printf("%d bsdf_red bsdf_grn bsdf_blu bsdf2rad.cal\n\t%s\n0\n0\n",
460                                          4+nxfa, xfargs);
461                          printf("\nscale_pat glow scale_mat\n0\n0\n4 1 1 1 0\n");
462 <                        SDcompXform(vMtx, ivec, upv);
462 >                        if (SDcompXform(vMtx, ivec, upv) != SDEnone)
463 >                                continue;
464                          nxfa = addrot(xfargs, vMtx[0], vMtx[1], vMtx[2]);
465                          sprintf(xfargs+strlen(xfargs), " -s %f -t %f %f %f",
466                                          scalef, sorg[0], sorg[1], sorg[2]);
# Line 485 | Line 488 | put_BSDFs(void)
488                          printf("%d bsdf_red bsdf_grn bsdf_blu bsdf2rad.cal\n\t%s\n0\n0\n",
489                                          4+nxfa, xfargs);
490                          printf("\nscale_pat glow scale_mat\n0\n0\n4 1 1 1 0\n");
491 <                        SDcompXform(vMtx, ivec, upv);
491 >                        if (SDcompXform(vMtx, ivec, upv) != SDEnone)
492 >                                continue;
493                          nxfa = addrot(xfargs, vMtx[0], vMtx[1], vMtx[2]);
494                          sprintf(xfargs+strlen(xfargs), " -s %f -t %f %f %f",
495                                          scalef, sorg[0], sorg[1], sorg[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines