| 1172 |  | parallel. | 
| 1173 |  |  | 
| 1174 |  | Fixed bug where mesh instances were not being freed, so subsequent calls | 
| 1175 | < | in programs like ranimate would refer to bogus data. | 
| 1175 | > | in programs like ranimove would refer to bogus data. | 
| 1176 |  |  | 
| 1177 |  | Added support in normtiff for floating-point and 16-bit/sample TIFF input | 
| 1178 |  | files. | 
| 1180 |  | Changed marksources() routine (src/rt/source.c) to check all | 
| 1181 |  | primitives in the modifier chain for emitting types, not only | 
| 1182 |  | the first.  This permits sources to be described with intervening | 
| 1183 | < | modifiers before the light/illum/glow primitive. | 
| 1183 | > | modifiers before the light/illum/glow primitive and allows aliases | 
| 1184 | > | as well. | 
| 1185 |  |  | 
| 1186 |  | Fixed bug in xform where it was neglecting to add transform arguments | 
| 1187 |  | to new mesh primitive. | 
| 1191 |  |  | 
| 1192 |  | Changed meta2tga to output correct colors. | 
| 1193 |  |  | 
| 1193 | – | ****** COMPATIBILITY CHANGE ******** | 
| 1194 |  | Changed local coordinate index from 32-bits to 16-bits, which requires | 
| 1195 | < | that Radiance mesh files be recompiled. | 
| 1195 | > | that Radiance mesh files be recompiled.  (Later decided against this | 
| 1196 | > | change, as it caused problems with some models.) | 
| 1197 |  |  | 
| 1198 |  | Changed integer tone-mapping routines to better deal with images | 
| 1199 |  | containing large, constant regions. | 
| 1223 |  | Fixed bug in glarendx for dgr calculation with sources behind view. | 
| 1224 |  |  | 
| 1225 |  | Added -p option to histo to print percentages/percentiles r.t. counts. | 
| 1226 | + |  | 
| 1227 | + | Added a source occluder cache to accelerate shadow testing.  This | 
| 1228 | + | can save up to 50% of the calculation time in scenes with many | 
| 1229 | + | light sources, especially ones containing large occluders.  This | 
| 1230 | + | optimization may be tuned or switched off with the -DSHADCACHE=N | 
| 1231 | + | compile switch, where N is the resolution of the shadow cache, or | 
| 1232 | + | 0 to disable it.  Since this is purely a time vs. memory trade-off, | 
| 1233 | + | I decided not to make it a new command-line option.  (We already | 
| 1234 | + | have plenty.) | 
| 1235 | + |  | 
| 1236 | + | ****** COMPATIBILITY CHANGE ******** | 
| 1237 | + | Changed the following command names to avoid conflicts: | 
| 1238 | + | rview -> rvu (with symbolic link back to rview) | 
| 1239 | + | calc -> icalc | 
| 1240 | + | lam -> rlam | 
| 1241 | + | gencat -> gencatenary | 
| 1242 | + |  | 
| 1243 | + | Improved -f option of normpat, which caused odd color changes before. | 
| 1244 | + |  | 
| 1245 | + | Created pgblur script which does fast Gaussian blur of image without changing | 
| 1246 | + | its dimensions.  This is very useful in certain types of image processing | 
| 1247 | + | calculations, such as finding or removing low frequencies. | 
| 1248 | + |  | 
| 1249 | + | ****** COMPATIBILITY CHANGE ******** | 
| 1250 | + | Changed little-used objpict script so that it takes scene files rather than | 
| 1251 | + | rpict options on the command line, and puts everything into the right | 
| 1252 | + | coordinate position automatically rather than requiring the user to do it. | 
| 1253 | + |  | 
| 1254 | + | Added -I option to replmarks for mesh instancing. | 
| 1255 | + |  | 
| 1256 | + | Made similar change for virtual sources to allow modifiers and aliases | 
| 1257 | + | on the mirror and prism types to work properly. | 
| 1258 | + |  | 
| 1259 | + | Rob Guglielmetti added -lw and -lh options to falsecolor to control the | 
| 1260 | + | legend dimensions.  Made it so -lw 0 and/or -lh 0 turns legend off. | 
| 1261 | + |  | 
| 1262 | + | Made it so pcompos will read everything from a stream even if it doesn't | 
| 1263 | + | need it, so input commands will not receive a hangup signal. | 
| 1264 | + |  | 
| 1265 | + | Wrote ra_bmp program to convert to and from Windows BMP files (finally). | 
| 1266 | + | It's the most horrible image format I've ever seen, and I've seen a lot. | 
| 1267 | + |  | 
| 1268 | + | Increased -aa default value for all renderers (and also -ad and -as in | 
| 1269 | + | rview) at Schorsch's suggestion.  I think this undid my earlier decrease | 
| 1270 | + | of -aa last time, which I guess was ill-considered. | 
| 1271 | + |  | 
| 1272 | + | Modified oconv to keep subdividing the octree if there are too many | 
| 1273 | + | objects in a voxel even when the -r resolution limit has been | 
| 1274 | + | reached.  This was not done before due to problems with recursion, | 
| 1275 | + | and still, it will only continue to 256 times the original -r limit. | 
| 1276 | + | If that isn't enough, then there's probably no hope, anyway. | 
| 1277 | + |  | 
| 1278 | + | Added -l option to obj2mesh to search for material files in library | 
| 1279 | + | locations. | 
| 1280 | + |  | 
| 1281 | + | Increased polygon vertex limit to 512 in obj2mesh and obj2rad and added | 
| 1282 | + | warning if this limit is exceeded. | 
| 1283 | + |  | 
| 1284 | + | Added tone-mapping and monitor primary options to ra_bmp.  This gives | 
| 1285 | + | new functionality similar to normtiff and ximage.  It would be nice to | 
| 1286 | + | add this feature to the other ra_* programs as well...  someday. | 
| 1287 | + |  | 
| 1288 | + | Fixed long-standing bug in reported pixel ordering out of certain | 
| 1289 | + | protate commands. | 
| 1290 | + |  | 
| 1291 | + | Added -p option to rcalc for "passive mode" that transmits | 
| 1292 | + | unrecognized input -- useful for substituting data in the | 
| 1293 | + | middle of a stream. | 
| 1294 | + |  | 
| 1295 | + | Fixed a very obscure bug in rpict that caused a dark horizontal | 
| 1296 | + | line in certain cylindrical projections due to improper drawing | 
| 1297 | + | of the sky dome source in rt/srcdraw.c. | 
| 1298 | + |  | 
| 1299 | + | Fixed problems with effective ray lengths computed for dielectric | 
| 1300 | + | and BRTDfunc materials.  This was most evident in breakup of holodeck | 
| 1301 | + | views when VDISTANCE=True. | 
| 1302 | + |  | 
| 1303 | + | Fixed rad so that 'scene' variable may consist only of inline commands. | 
| 1304 | + |  | 
| 1305 | + | Fixed bug introduced in shadow caching routines where sources in the | 
| 1306 | + | middle of spheres were not illuminating properly.  Thanks to Guilio | 
| 1307 | + | Antonutto for spotting this problem. | 
| 1308 | + |  | 
| 1309 | + | Modified gensky behavior so if time is given with standard time zone | 
| 1310 | + | designation, any -m option is ignored. | 
| 1311 | + |  | 
| 1312 | + | Added -n option to mkillum for (shared memory) parallel processing. | 
| 1313 | + |  | 
| 1314 | + | Fixed a long-standing bug in parallel processing code that only | 
| 1315 | + | seemed to manifest with the new mkillum -n option, where rtrace | 
| 1316 | + | would deadlock upon termination.  The reason it never showed up | 
| 1317 | + | before is because I always closed processes in the reverse order | 
| 1318 | + | of opening them in other programs.  I went through and found similar | 
| 1319 | + | (potential) bugs in the rview device subprocess code and util/netproc.c. | 
| 1320 | + |  | 
| 1321 | + | Corrected the normalization of the Gaussian reflectance model.  This will | 
| 1322 | + | cause an increase in specularity for low-lying light sources. | 
| 1323 | + | Thanks to Don Walters of Boeing and Arne Duer of the Univ. of Innsbruck | 
| 1324 | + | for pointing out this error.  The square root used for the two cosines | 
| 1325 | + | in the denominator of the normalization factor should not be present. | 
| 1326 | + | This was a serious mistake I made in the original model, which went | 
| 1327 | + | undiscovered (at least to my knowledge) for over a decade.  I think | 
| 1328 | + | Bruce Walter of Cornell may have known about it, but I never heard | 
| 1329 | + | the details of his discovery. | 
| 1330 | + |  | 
| 1331 | + | Enabled the -p option for primary conversion without tone-mapping | 
| 1332 | + | in ra_bmp.  Also provides for XYZE input conversion to RGB. | 
| 1333 | + |  | 
| 1334 | + | Fixed what I consider a bug in pvalue -o when taking XYZE files on input, | 
| 1335 | + | where it was inappropriately undoing the exposure value so that it always | 
| 1336 | + | reported radiance rather than XYZ values with Y in cd/m^2. | 
| 1337 | + |  | 
| 1338 | + | Made it so ra_bmp only produces run-length encoded 8-bit output for | 
| 1339 | + | grayscale images that are tone-mapped.  This minimizes circumstances | 
| 1340 | + | under which output scanline order is reversed. | 
| 1341 | + |  | 
| 1342 | + | Fixed bug in rcalc where it sometimes wasn't parsing the input format | 
| 1343 | + | correctly. |