home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / raytrace / radiance / doc / radiance.v20 < prev    next >
Encoding:
Text File  |  1993-09-03  |  118.5 KB  |  3,011 lines

  1. ~s Radiance Digest v2n0
  2. Hello Everyone,
  3.  
  4. It's been a while since my last digest, judging by the amount of mail
  5. that's backed up.  I hope that everyone has seen the 2.0 release
  6. announcement by now.  A few of the enclosed messages are from
  7. people who were working with beta copies of release 2 and a few are
  8. from people who got the official release of 2, but most messages
  9. are from people who were still working with release 1.4.  The
  10. order may seem a bit strange at times, as I was trying mightily
  11. to collect together some sensible categories.
  12.  
  13.     MODELING    Textures, Surfaces and Lights
  14.     IMAGES        Image Translators and Animations
  15.     GENERATORS    Some new generator contributions
  16.     LUMFACTOR    Change in luminous efficacy factor
  17.     MKILLUM        New program for computing distributions
  18.     AUTOCAD        CMU work on a new AutoCAD translator
  19.     MODELS        Picking up and dropping off 3d models
  20.     ART        Radiance in the arts
  21.     RS6000        Compiling Radiance on the IBM RS/6000
  22.     SUMANT        Sumant Pattanaik's contributions
  23.     NIGHTTIME    Rendering night time images
  24.     COMPILE        Compile problems related to X11 and malloc.c
  25.     OPENWINDOWS    Some nice additions for Sun's Open Windows
  26.  
  27. Any future mail to me should be addressed to GJWard@lbl.gov or
  28. greg@hobbes.lbl.gov, as I have officially returned from Switzerland.
  29.  
  30. -Greg    
  31.  
  32. ===================================================================
  33. MODELING    Textures, Surfaces and Light Sources
  34.  
  35. Date: Wed, 18 Sep 91 10:55:54 +0200
  36. From: her@compel.dk (Helge Egelund Rasmussen)
  37. To: greg@hobbes.lbl.gov
  38. Subject: Some Radiance questions
  39.  
  40.  Hi Greg,
  41.  
  42.  I have a few questions for you about Radiance, but first I'll mention a 
  43.  little about the current state of the Amiga port of Radiance.
  44.  
  45.  At the moment Per Bojsen has most of Radiance working on an Amiga 3000
  46.  with the latest version of the OS (2.0), while I work on an Amiga 2000
  47.  with an earlier version (1.3). 
  48.  There's major differences between two versions, and we've agreed to base
  49.  the port on version 2.0 when it becomes available for the 2000 in the near 
  50.  future. Because of this, the Amiga port probably won't be available before
  51.  October sometime.
  52.  Nearly all Radiance programs work (including pinterp and rview), 
  53.  and I've rendered most of the models found on hobbes.
  54.  
  55.  Now for the questions:
  56.  
  57. -I've created a 'cloud' pattern, and wanted to create an outdoor sceene with
  58.  nice clouds in the background.
  59.  My scene consist of a gensky source, and a big bubble with the cloud pattern
  60.  as a colorfunc. The bubble is made of translucent material so that the
  61.  gensky source and sun can pass it, and so that the cloud pattern is visible.
  62.  
  63.  I however have some problems with this setup, for instance it is possible
  64.  for objects to make shadows on the sky! The radius of the bubble is 100, 
  65.  while the typical object size is 5. I haven't been able to create a larger
  66.  bubble because oconv then can't subdivide the objects.
  67.  
  68.  Do you have any suggestions on how to do this kind of thing?
  69.  
  70. -In the README file for the pod life model, you write:
  71.   Thanks goes to Seth Teller, who wrote the patch modeler that made this
  72.   all possible.  Coming up with the correct patch parameters otherwise
  73.   would have been a nightmare.
  74.  Is this modeller available? (I don't like to have nightmares :-)
  75.  
  76. -I'm currently working on an Imagine to Radiance object converter.
  77.  Imagine is a commercial 3d modeller/renderer for the Amiga.
  78.  In Imagine you have full control over color (r,g,b), reflectance(r,g,b),
  79.  transmittance(r,g,b), specular reflection (r,g,b), index of refraction,
  80.  roughness and a few other things.
  81.  At the moment, I've hardcoded that certain intervals of the parameters lead
  82.  to certain Radiance materials. I would prefer to use a configuration file 
  83.  instead, but the scheme for configuration files given in the converters 
  84.  directory is too limited.
  85.  What I need is the possibility to say something like:
  86.  
  87.    if reflectance < 10 or roughness 100 then
  88.      create plastic with same color as the Imagine object and roughness
  89.        given by some formula.
  90.  
  91.  I've thought of using the calc routines for this, ie. writing a .cal
  92.  script which choses material type and parameters from the Imagine ditto.
  93.  
  94.  Do you have any comments about this scheme?
  95.  
  96. -I've created a modified version of the gensurf utility, which create
  97.  an Imagine object instead of a Radiance object. The program use the
  98.  Radiance calc library. I'd like to distribute this program (w. source)
  99.  to other Imagine users, but I'm not sure that I may.
  100.  So the question is: May I distribute the cal*.c source together with the
  101.  new Imagine gensurf  program? (I'll of course mention where the sources
  102.  came from!)
  103.  
  104. I hope that you have time to answer all these silly questions..
  105.  
  106. Helge
  107. ---
  108. Helge E. Rasmussen  .  PHONE + 45 36 72 33 00  .  E-mail:  her@compel.dk
  109. Compel A/S          .  FAX   + 45 36 72 43 00  .  
  110. Copenhagen, Denmark
  111.  
  112. From greg Wed Sep 18 11:57:55 1991
  113. Date: Wed, 18 Sep 91 11:57:54 +0200
  114. From: greg (Greg Ward)
  115. To: her@compel.dk
  116. Subject: Re:  Some Radiance questions
  117.  
  118. Hello Helge,
  119.  
  120. The delay in the Amiga port sounds to be worth the while.  I appreciate
  121. the care you and Per Bojsen are taking to make things work properly.
  122. By the way, did you contact the other people interested in Radiance at
  123. the university where Per works?
  124.  
  125. I am glad that someone is finally doing something with clouds.  I have
  126. wanted to for some time, but haven't managed to squeeze it in.  I recommend
  127. that instead of a bubble, you should apply the colorfunc pattern to the
  128. sky directly.  Something like this should work:
  129.  
  130. !gensky 6 17 12
  131.  
  132. skyfunc colorfunc skybright
  133. ( your arguments... )
  134.  
  135. skybright glow skyglow
  136. 0
  137. 0
  138. 4 .8 .8 1.2 0
  139.  
  140. skyglow source sky
  141. 0
  142. 0
  143. 4 0 0 1 180
  144.  
  145. Note that your function must not use the ray parameters Px, Py and Pz, since
  146. they are not defined for an infinitely distant object.  You can use Dx,
  147. Dy and Dz, however.  The value that you give is multiplied by the brightness
  148. of the sky as computed by gensky's skybright function.  Where there are
  149. no clouds, your colorfunc should be (1,1,1), and inside a cloud it should
  150. be significantly greater than 1.  You could probably get by with using
  151. a brightfunc instead of a colorfunc if all you want to model is white clouds.
  152.  
  153. I don't know about the status of Seth's modeler or if he would be willing
  154. to share it.  It was originally written as a demonstration program for the
  155. SGI IRIS workstation, so I doubt that it is very portable.  Rather than
  156. listen to my speculations, though, you should write to Seth directly.  His
  157. e-mail is seth@miro.berkeley.edu.  He left some message about his being
  158. in Isreal until the 22nd, so there may be a slight delay in his response.
  159.  
  160. As for the Imagine converter, translating material parameters is always
  161. difficult, especially when the original parameters are non-physical (ie.
  162. not energy-balanced).  You can take a look at the nff2rad translator and
  163. see what I did there.  I don't think rcalc would work in this case, since
  164. the logic is too complicated.  I think a C program will probably be necessary.
  165.  
  166. Please feel free to use whatever routines you like from the Radiance 
  167. distribution.  There are no legal problems as long as you do not resell the
  168. software as your own and turn a big profit.  Recognition is always welcome.
  169.  
  170. -Greg
  171.  
  172. To: greg@hobbes.lbl.gov
  173. Subject: Textures in RADIANCE
  174. From: Jerrell Ballard  <ballard@mc1.wes.army.mil>
  175. Date: Mon, 30 Sep 91 15:11:14 EDT
  176.  
  177.   Hi Greg,
  178.  
  179.      Is there a way to use a RADIANCE data file in a function to produce
  180.   a texture for a surface?  If so, is there a example I can examine? 
  181.  
  182.   Thank you.
  183.  
  184.   Jerrell Ballard
  185.   Geographical Information Systems Team
  186.   Waterways Experiment Station
  187.   United States Army Corp Engineers
  188.  
  189. ------------------------------------------------------------------------------
  190.   Waterways Experiment Station     | Internet: ballard@mc1.wes.army.mil     
  191.   ATTN: Jerrell R. Ballard, EN-A   |                                        
  192.   3909 Halls Ferry Road            | FAX:      (601) 634-3726               
  193.   Vicksburg, MS 39180              | Voice:    (601) 634-2946               
  194. ------------------------------------------------------------------------------
  195.  
  196. Date: Thu, 3 Oct 91 09:45:44 +0100
  197. From: greg (Greg Ward)
  198. To: ballard@mc1.wes.army.mil
  199. Subject: Re:  Textures in RADIANCE
  200.  
  201. Hi Jerrell,
  202.  
  203. Do you mean texture as in surface normal perturbation, or are you talking
  204. about a pattern which affects the reflectance of a surface?  In any case,
  205. I think the answer to your question is yes.  A Radiance picture or data file
  206. can be used to define a pattern, and a Radiance data file can be used to
  207. define a surface normal perturbation function.
  208.  
  209. Please give me a few more specifics about your problem and I will try to
  210. furnish you with an appropriate example.
  211.  
  212. -Greg
  213.  
  214. To: greg@hobbes.lbl.gov
  215. Subject: Re: Textures in RADIANCE 
  216. Date: Thu, 03 Oct 91 10:23:54 EDT
  217. From: ballard@mc1.wes.army.mil
  218.  
  219.  Hi Greg,
  220.  
  221.  > Do you mean texture as in surface normal perturbation, or are you talking
  222.  > about a pattern which affects the reflectance of a surface?  
  223.    
  224.   My apologies for being vague. I am trying to create a texture for a polygon
  225.   that is a surface normal perturbation.  I have a large set of x,y,z data
  226.   points for a surface.  Using these data points I wanted to change a
  227.   flat surface into one with "hills" and "valleys".  I have approached the
  228.   problem by splitting the surface into little triangles, with the vertices
  229.   being defined by my data points, but I keep running out of memory in 
  230.   rendering.
  231.  
  232.  > Please give me a few more specifics about your problem and I will try to
  233.  > furnish you with an appropriate example.
  234.  
  235.   Here is a test case I was trying to get to work:
  236.  
  237.   data file:
  238.   ------------------
  239.   2
  240.   0 100 3
  241.   0 100 4
  242.   
  243.   1.00    1.00   10.00   10.0
  244.   1.00   10.00   30.00   10.0
  245.   1.00    1.00   10.00   10.0
  246.  
  247.   surface file:
  248.   -----------------
  249.   #
  250.   some_texture plastic some_material
  251.   0
  252.   0
  253.   5 .2 .8 .2 0 0
  254.   #
  255.   some_material polygon pertb_surface
  256.   0
  257.   0
  258.   12
  259.       0   0   0
  260.     100   0   0
  261.     100 100   0
  262.       0 100   0
  263.   #
  264.  
  265.      The example data file when interpolated will cover the same area
  266.   as the defined polygon, so that a texture tiling is not necessary.
  267.  
  268.      The data file would be interpolated to create pertubations on the 
  269.   polygon surface.  The data should make the surface appear to have
  270.   a "data spike" close to the center.
  271.  
  272.      My purpose to this whole problem is to 1) be able to visualize
  273.   three dimensional statistics and 2) overlay satellite imagery onto
  274.   elevation data for a region.
  275.  
  276.   Once again thank you for your help.
  277.  
  278.   Jerrell Ballard
  279.   Geographical Information Systems Team
  280.   Waterways Experiment Station
  281.   United States Army Corp Engineers
  282.  
  283. ------------------------------------------------------------------------------
  284.   Waterways Experiment Station     | Internet: ballard@mc1.wes.army.mil     
  285.   ATTN: Jerrell R. Ballard, EN-A   |                                        
  286.   3909 Halls Ferry Road            | FAX:      (601) 634-3726               
  287.   Vicksburg, MS 39180              | Voice:    (601) 634-2946               
  288. ------------------------------------------------------------------------------
  289.  
  290. Date: Fri, 4 Oct 91 08:35:06 +0100
  291. From: greg (Greg Ward)
  292. To: ballard@mc1.wes.army.mil
  293. Subject: Re: Textures in RADIANCE
  294.  
  295. Hi Jerrell,
  296.  
  297. The problem with surface height data is that it doesn't really tell you
  298. about the surface orientation.  Even if you converted this information
  299. to surface orientations, you would not generate shadows or contours
  300. and you would still use quite a lot of memory.
  301.  
  302. Have you heard of the RayShade package written by Craig Kolb at Yale
  303. University?  I think it contains code specifically for rendering large
  304. height fields for landscapes.  You might want to investigate that free
  305. package as a more practical alternative for your application.  Radiance
  306. was really designed more with architectural and lighting design
  307. applications in mind.
  308.  
  309. If you have tried RayShade already unsuccessfully or have some other
  310. compelling reason to stick with Radiance for your purpose, I will try a
  311. little harder to think of some way to make it work.
  312.  
  313. -Greg
  314.  
  315. P.S.  RayShade is available via anonymous ftp from weedeater.math.yale.edu
  316.     (130.132.23.17)
  317.  
  318. Date: Sat, 12 Oct 91 19:52:35 PDT
  319. From: chas@hobbes.lbl.gov (Charles Ehrlich)
  320. To: greg@hobbes.lbl.gov
  321. Subject: Source datafile questions
  322.  
  323. Greg,
  324.  
  325. I'm in the process of creating fixture descriptions using candlepower
  326. distribution on paper media (no IES magnetic media available.)  I need
  327. to know under which circumstances does one use the various functions
  328. in source.cal that have to do with illumination output.  For example,
  329. if my source object (type illum) is a sphere, do I need to use the
  330. flatcorr or the corr functions (or perhaps none at all)?  I've figured
  331. out that phi2 is bilaterally symmetrical and that phi4 is quadrlateral
  332. symmetrial output, but what is "type B photometry?"  I suppose that
  333. with a formal lighting design background I might know these answers,
  334. but if this question is quickly answerable, that would be great, but
  335. a reference to a good book would be fine too.
  336.  
  337. Secondly, I'm concerned about the fixture looking as realistic as possible,
  338. so I am spending a good deal of time modelling the geometry of the fixtures.
  339. Undoubtable I run into situations in which I have to make the illum
  340. sphere larger than the actual fixture.  If the fixture is a pendant whose
  341. overall dimension is less than its distance from the ceiling, everything
  342. is fine.  But if the fixture is wall mounted or a pendant close to the
  343. ceiling, there is the issue of illuminating those surface that lie
  344. inside the envelope of the fixture-enclosing illum sphere.  My solution has
  345. been to put a small sphere entirely inside the fixture that "glows" with
  346. the intensity of the fixture itself.  It would be easier to simply give
  347. those surfaces of the fixture that appear bright the glow material directly,
  348. but since the "back" faces of the polygons face the non-illuminated
  349. surfaces of the wall/ceiling, something inside the fixture is still
  350. needed.  If I did apply the glow material to the individual surfaces
  351. that make up the fixture itself (several hundred) what is going to 
  352. happen to the distribution data?  Does it need to be altered to account
  353. for the fact that there are so many of these individual surfaces?
  354. For the case of the glowing sphere inside the fixture, what is the best
  355. way to describe its output.  Should I use the same output distribution
  356. pattern of the larger illum with a proper scaling factor for the smaller
  357. size of the sphere?  Or should I use a simple glow (no distribution)
  358. with the correct radiance value as calculated from the intensity of the
  359. lamps.  My reasong for wanting to do it the second way would be to minimize
  360. calculation times but my concern is that the distribution along the
  361. nearby surfaces would not be accurate.  This glow type will have a
  362. radius of effect just larger than the distance to the furthest intersection
  363. of the illum sphere with the nearby surface.  In the areas where this
  364. radius of effect is in fact greater than the bounds of the illum sphere,
  365. does that area become twice as bright as the fixture output distribution?
  366. My guess is that it does, and this is somewhat of a problem, except that
  367. for the most part, this whole area is going to be much brighter than the
  368. surrounding image and most likely not visible.  But, a better solution
  369. might be to give the illum material the ability to be opaque to source
  370. rays looking for particular light source material names/types just as
  371. the secondary source type mirror does.
  372.  
  373. One other minor question.  From where does the radius of effect for the
  374. glow material take effect?  At the surface of the sphere? Or perhaps
  375. more easily understood would be from the center of the sphere?
  376.  
  377. Well, there's a ethernet-packet-full to think about.  In regards to
  378. the work for my lighting designer client...I was 15 minutes late
  379. getting the images to her because the Kodak printer wouldn't print
  380. the last one...there seems to have been a problem in transfering it
  381. back from the macintosh where I edited it with Adobe Photoshop.
  382.  
  383. Thanks for the help.  This might be a good one for general distribution.
  384.  
  385. Chas
  386.  
  387. Date: Mon, 14 Oct 91 10:53:24 +0100
  388. From: greg (Greg Ward)
  389. To: chas@hobbes.lbl.gov
  390. Subject: Re:  Source datafile questions
  391.  
  392. Hi Chas,
  393.  
  394. Gee, so many questions.  I doubt this will be of general interest, since
  395. most folks will never have to get into the nitty-gritty of light source
  396. modeling (I hope!), but I will put it in the next digest just in case.
  397.  
  398. Type B photometry is a different measurement scheme where a plane of evenly
  399. distributed photometers is used to measure the beam candlepower of a spotlight.
  400. This measurement technique is used most frequently on car headlamps, although
  401. you might find some floodlights measured this way as well.  For most interior
  402. fixtures, type A or type B photometry is used, and those differ only in the
  403. definition of angles.  A mediocre reference on the subject is the IES Lighting
  404. Handbook, Reference Volume.  (That is the only one I know of.)
  405.  
  406. I think the only way to define your light source correctly is to use illum
  407. surfaces with the proper distribution, and have those surfaces enclose the
  408. actual geometric description for the fixture.  If you use a single sphere
  409. to enclose the fixture, then you should NOT use the flatcorr function
  410. defined in source.cal.  Use the corr function if you would like another
  411. place to insert a multiplier (A1), but I use the predefined noop function
  412. ordinarily.  If you enclose the fixture with polygons, then DO use the
  413. flatcorr function.  You may use the same material to modify all polygons,
  414. applying the lamp distribution to this material.  In any case, you must
  415. use the recipricol of the projected emitting area in square meters as you
  416. have defined it with your illum surfaces.  This determines the total
  417. light output of the combined fixture.
  418.  
  419. As for the illumination of the fixture and wall/ceiling surfaces, you
  420. should get adequate results if you are careful in assigning glow
  421. surfaces and your enclosing illum geometry.  Make every attempt to
  422. enclose the fixture as tightly as possible so that surfaces above
  423. or behind the fixture are illuminated.  If a sphere would intersect
  424. a neighboring surface, use a box instead.  This will only increase
  425. computation time slightly.  Under no circumstances should you use
  426. a hundred light source polygons to describe your fixture.  Although it
  427. might work (and you could use the same distribution function for each),
  428. the cost would be enormous.  Use glow materials to modify your fixture
  429. geometry, with zero as the radius of influence.  (The radius is measured
  430. from the center of a sphere by the way.)
  431.  
  432. If your light fixture is designed to be flush mounted, you may find it
  433. necessary to space it a short distance from the wall or ceiling in
  434. order to squeeze your illum surface between.  This is still preferable
  435. to putting an emitting glow surface inside the light source, I think.
  436.  
  437. I hope that this answers most of your questions.  Getting detailed models
  438. of light fixtures is a real challenge!
  439.  
  440. -Greg
  441.  
  442. From: Krister Lagerstr|m <ksla@me.chalmers.se>
  443. Subject: Re: Radiance mailing list
  444. To: greg@lesosun1.epfl.ch
  445. Date: Thu, 24 Oct 91 15:03:51 GMT-1:00
  446.  
  447. > Would you like for your name to be included on our mediated mailing list
  448. > for Radiance users?  To people on this list, I mail periodic summaries of
  449. > e-mail discussions with users as well as update announcements.
  450. > -Greg
  451.  
  452. Yes, I'm interested in getting the mailing list. I haven't really used
  453. the package much yet, but it seems like one of the best public ray-
  454. tracers around.
  455.  
  456. Another thing I'm interested in is some sort of CAD program that can
  457. use radiance's features and produce .rad-files. Perhaps something
  458. like the 'preview' program, but more interactive and user-friendly
  459. with the option to add objects, change colors and textures, and
  460. change views run-time. If you know of such a program, please let me
  461. know...
  462.  
  463.     / Krister Lagerstrom
  464.  
  465. Date: Thu, 24 Oct 91 16:36:14 +0100
  466. From: greg (Greg Ward)
  467. To: ksla@me.chalmers.se
  468. Subject: Re: Radiance mailing list
  469.  
  470. Hi Krister,
  471.  
  472. Gee, I sure wish I did know of such a program!  There is an editor
  473. for the MacIntosh written by Paul Bourke of New Zealand and available
  474. on hobbes in the pub/mac directory that will edit and write out polygonal
  475. descriptions in Radiance format.  I know of no program tailored to
  476. Radiance's particular talents, but you can use AutoCAD to produce a
  477. DXF file then use either the AutoLISP converter written by Robert Amor
  478. or the C dxfcvt program written by Ning Zhang to get a Radiance file
  479. minus the material descriptions.  Both of these programs are included
  480. in the standard distribution.
  481.  
  482. Jennifer Schuman has written a HyperCard-based interface to the arch2rad
  483. program for assigning and even defining materials to go with an Architrion
  484. description.  This is probably the most sophisticated translator we have,
  485. but it only works under A/UX on the MacIntosh at the moment.
  486.  
  487. Next year I plan to do more work in the user interface area, but primarily
  488. for running the simulation and not so much for modeling.  It's just too
  489. difficult to work on modeling for me...
  490.  
  491. -Greg
  492.  
  493. From: malle@rpksun1.mach.uni-karlsruhe.de (Bernhard Malle)
  494. Subject: Architectural buildings
  495. To: greg@lesosun1.epfl.ch
  496. Date: Fri, 29 Nov 91 9:20:07 MET
  497.  
  498. Hello Greg,
  499.  
  500. I have built a house, with all the windows, doors and the garden (with the help of our modeller).
  501. I would like to know, how did you specify the "environment" in the example
  502. picture that comes with the radiance-package, i.e. how did you define
  503. the sky? Is it a great sphere, whith the house right in the middle? ( I know
  504. from the testroom, how to define a window with the skyfunc ).
  505.  
  506. Which material did you attach to the walls? I think there is no stone-
  507. material in radiance, what shoud I use instead (plastic or metal)
  508.  
  509. Concerning the acis-modeller and the radiance package, I didn't have the
  510. time to take a closer look imot the code to see whether and how I could
  511. integrate the modeller-routines.
  512.  
  513. But I hope I can start with it before christmas.
  514.  
  515. Thanks for your help.
  516.  
  517. Bernhard
  518.  
  519. Date: Fri, 29 Nov 91 09:35:38 +0100
  520. From: greg (Greg Ward)
  521. To: malle@rpksun1.mach.uni-karlsruhe.de
  522. Subject: Re:  Architectural buildings
  523.  
  524. Hello Bernhard,
  525.  
  526. The description of the exterior is accomplished with glowing sources
  527. at an infinite distance, as shown in the example.rad file in the
  528. tutorial.  You should not use a sphere, as it is a finite object.
  529.  
  530. However, you may want to put down a ground plane, to make the
  531. outdoor shadows appear correct.  I usually create a large polygon
  532. or disk with its center under the house and extending to some
  533. reasonable distance on all sides, say 5 times the size of your 
  534. structure.
  535. Unfortunately, I do not have a nice stone pattern, but if you have a picture
  536. you can digitize it and make it into a Radiance pattern with a little effort.
  537. The following will give you a rather featureless concrete:
  538.  
  539. void brightfunc dirty
  540. 2 dirt dirt.cal
  541. 0
  542. 1 .3
  543.  
  544. dirty plastic concrete
  545. 0
  546. 0
  547. 5 .3 .3 .3 0 0
  548.  
  549. The dirt function gives at least a little variation on the surface
  550. appearance so it doesn't just look flat.
  551.  
  552. -Greg
  553.  
  554. From: malle@rpksun1.mach.uni-karlsruhe.de (Bernhard Malle)
  555. Subject: Re: Architectural buildings
  556. To: greg@hobbes.lbl.gov (Gregory J. Ward)
  557. Date: Mon, 9 Dec 91 20:06:58 MET
  558.  
  559. Hello Greg,
  560.  
  561. thanks for your answer and the hints. The example, that I mailed to
  562. you was just a very very simple small example. Normally the cone
  563. is replaced by a large houese with several rooms, windows stairs,
  564. the thin block is replaced by a garden shaped after a real
  565. existing landscape ( actually the house of my parents). So I do
  566. have the need to simulate daylight.
  567.  
  568. I hope that I will have finished this example unitl chritsmas, as
  569. I hoped to present a real foto-realistic image as a present to
  570. my parents (apart from implementing the possibility to specify
  571. material conditions in our cad-system.)
  572.  
  573. So I wish you a wonderful christmas.
  574.  
  575. Bernhard
  576.  
  577. ps I have succeded in unpacking and unstuffing most of the documentation of
  578. mac.sit.hqx. the only thing that is missing seems to be the flow of
  579. data ( a mac-draw-document)
  580.  
  581. Date: Mon, 9 Dec 91 11:11:18 PST
  582. From: greg (Gregory J. Ward)
  583. To: malle@rpksun1.mach.uni-karlsruhe.de
  584. Subject: Re: Architectural buildings
  585.  
  586. If you are serious about daylight, I recommend going through the tutorial
  587. (ray/doc/tutorial.1) and following those examples to learn how to do it right.
  588.  
  589. ====================================================================
  590. IMAGES        Image Translators etc.
  591.  
  592. Date: Sat, 12 Oct 91 11:23:40 NDT
  593. From: pdbourke%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  594. Subject: rpict and image size
  595. To: GJWard@Csa2.lbl.gov
  596.  
  597. Scream...great gnashing of teeth...Am I correct in assuming that at the
  598. moment RPICT only generates square images? I get the a 256x256 image
  599. whether or not I do
  600.   -x 256 -y 256
  601.   -x 512 -y 256
  602.   -x 256 -y 512
  603. I want to generate a 324x244 quicktime animation, oh well I'll find another
  604. way of doing it.
  605. ------------------------------
  606. Paul D. Bourke
  607. pdbourke@ccu1.aukuni.ac.nz
  608.          (130.216.1.5)
  609.  
  610. Date: Sat, 12 Oct 91 20:03:04 NDT
  611. From: pdbourke%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  612. Subject: QuickTime movie
  613. To: GJWard@Csa2.lbl.gov
  614.  
  615. You may know that QuickTime has been shipped to developers (beta release
  616. anyway!) I have been writing some QuickTime stuff over the last few days
  617. and have deposited(*) our first (and possibly the world first) QuickTime
  618. "movie" for which the frames were generated using Radiance. The scene was
  619. generated in a bit of a rush (don't know why there isn't a mirror above
  620. the sofa, we certainly think there should be one there) and the frames
  621. were put into a QT movie using very crude software of our own...but it
  622. kinda works. I'm doing a visualisation (flyaround) of a Steiner surface 
  623. next for the Maths department here.
  624.  
  625. (*) it's been deposited in the Mac directory or course.
  626. ------------------------------
  627. Paul D. Bourke
  628. pdbourke@ccu1.aukuni.ac.nz
  629.          (130.216.1.5)
  630.  
  631. Date: Mon, 14 Oct 91 09:04:50 +0100
  632. From: greg (Greg Ward)
  633. To: pdbourke%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  634. Subject: Re:  QuickTime movie
  635.  
  636. Hi Paul,
  637.  
  638. I just read your blurb about QuickTime, and unfortunately we don't have
  639. new enough systems on our Mac's to run it right now.  (Drat!)
  640.  
  641. Rpict by default adjusts the size of the image to guarantee square PIXELS,
  642. not square images.  If your pixels are not square, you may enter their
  643. aspect ratio (height/width) with the -p option, or if you specify -p 0,
  644. rpict will use the explicit x and y dimensions you give it.  Normally,
  645. rpict uses the x and y dimensions as a maximum rectangle in which to put
  646. a picture whose pixels have the given aspect ratio.
  647.  
  648. If you are doing walk-through (or fly-through) animations, you really
  649. should avail yourself of the -z option of rpict and the pinterp picture
  650. interpolation program.  This is what I use for all my animation, and it
  651. has the potential to smooth animations at a very reasonable cost.  However,
  652. I'm not sure it's worth it at 9 frames/second.  It depends on what kind
  653. of delta you have between images.  I can send you a shar file example if
  654. you like.
  655.  
  656. By the way, someone I know (Charles Ehrlich) has been using Russell's
  657. Super3D translator to great effect.
  658.  
  659. -Greg
  660.  
  661. P.S.  Sorry things have been slow getting the 3d-editor and converters
  662.     online.  We're waiting for some cooperation from the folks back
  663.     home...
  664.  
  665. From: nfotis%theseas.ntua.gr@Csa2.lbl.gov (Nikolaos)
  666. Subject: About the Sun RasterFiles problem
  667. To: gjward@Csa2.lbl.gov (Greg Ward)
  668. Date: Mon, 14 Oct 91 17:13:45 EET
  669. Subject: Here's the solution with SunRast files
  670.  
  671. Dear Mr. Ward,
  672.  
  673. Remember when I talked about the strange behaviour of PBM+ tools with
  674. Sun 24-bit rasters produced from Radiance?
  675.  
  676. Well, it seems that here's the solution:
  677.  
  678. -- From the USENET comp.graphics group:
  679.  
  680. Sven-Ove Westberg <sow@cad.luth.se> writes of problems with sunraster
  681. 24-bit format: it's not clear whether the order of values in a pixel is
  682. R,G,B or B,G,R.
  683.  
  684. Graeme Gill says:
  685. >    From my experience in getting the Portable Bit Map (pbm) utilities
  686. >and xloadimage to agree on sun raster files,  I came to the conclusion that
  687. >both were broken in coping with RGB and 32 bit format files. It seems probable
  688. >that other programs are also broken.
  689.  
  690. I ran into this quite a while ago, and eventually got a definitive answer
  691. by asking on comp.sys.sun, or someplace like that.  It seems that BOTH
  692. orders are right --- Sun changed their mind at some point!
  693.  
  694. I've already submitted a bug report to Poskanzer for PBMPLUS; it doesn't
  695. look like he's done anything about it in the latest release.
  696.  
  697. >From my archives:
  698.  
  699. To: Jef Poskanzer <jef@helios.ee.lbl.gov>
  700. Subject: Sun rasterfiles again
  701. Date: Thu, 21 Mar 91 15:57:23 EST
  702. Message-ID: <7473.669589043@G.GP.CS.CMU.EDU>
  703. >From: Tom.Lane@G.GP.CS.CMU.EDU
  704.  
  705. This little tidbit indicates that you had better support *both*
  706. color orderings in 24-bit Sun rasterfiles.  Don't know if you
  707. were aware of that.
  708.                 tom
  709.  
  710. ------- Forwarded Message
  711. >From: Bob Myers <unocal!stssram@sunkist.West.Sun.COM>
  712. Date: Thu, 21 Mar 1991 09:31:08 PST
  713. Organization: Unocal Science and Technology Division
  714. To: tgl@CS.CMU.EDU
  715. Subject: Re: Color assignment in Sun rasterfiles
  716.  
  717. >From the man pages for SunOS4.1.1:
  718.  
  719. NAME
  720.      redxblue - swap red and blue for a 24 or 32 bit rasterfile.
  721.  
  722. SYNOPSIS
  723.      redxblue [-v] [-q] [inrasf|-] [outrasf]
  724.  
  725. DESCRIPTION
  726.      redxblue converts an old-style 24 or 32 bit rasterfile  into
  727.      the newer, Sun-standard format.  The old format had the byte
  728.      ordering RGB for 24-bit  rasterfiles  and  XRGB  for  32-bit
  729.      rasterfiles.   The new format has BGR for 24-bit rasterfiles
  730.      and XBGR for 32-bit rasterfiles.
  731.  
  732.      The conversion is performed simply by swapping the  red  and
  733.      blue bytes.
  734.  
  735.      The primary use of this utility is to prepare rasterfiles in
  736.      the  old format for dithering with 24to8 or viewing with the
  737.      NeWS 'readcanvas' operator.
  738.  
  739.      It is also possible to use this filter for converting from a
  740.      new style format into the old format.
  741.  
  742. OPTIONS
  743.      -v   Verbose mode will print information as it processes the
  744.           image.  (The default is to be silent.)
  745.  
  746.      -q   Query (prints list of options)
  747.  
  748. SEE ALSO
  749.      24to8(1)
  750.  
  751.  
  752. - -- 
  753. Bob Myers                     [714] 528-7201 x2339
  754. Unocal Science & Technology Division               stssram@unocal.com
  755. Brea, California               myers%unocal.uucp@sunkist.west.sun.com
  756. ------- End of Forwarded Message
  757.  
  758. So there you have it: you may need to support both orders depending on the
  759. age of the software and/or image files you have.  Yech.
  760.  
  761. -- 
  762.             tom lane
  763. Internet: tgl@cs.cmu.edu    BITNET: tgl%cs.cmu.edu@cmuccvma
  764.  
  765.  
  766. --- End of Usenet message.
  767.  
  768.  
  769. I think that it should be included in the next version of Radiance Docs,
  770. or in the next digest.
  771. Me? We've got back the H-P, but now the disk space is absent... :-(
  772. (I HATE multiple architectures, binaries and administration headaches!)
  773.  
  774. Greetings,
  775. Nick.
  776. -- 
  777. Nikolaos Fotis            National Technical Univ. of Athens, Greece
  778. 16 Esperidon St.,        UUCP:    mcsun!ariadne!theseas!nfotis
  779. Halandri, GR - 152 32        or InterNet : nfotis@theseas.ntua.gr
  780. Athens, GREECE            FAX: (+30 1) 77 84 578
  781.  
  782. Date: Mon, 14 Oct 91 17:12:08 +0100
  783. From: greg (Greg Ward)
  784. To: nfotis%theseas.ntua.gr@Csa2.lbl.gov
  785. Subject: Re:  About the Sun RasterFiles problem
  786.  
  787. Thanks for the information about Sun rasterfiles.  Ra_pr24 does support
  788. both formats on input, but only produces BGR ordering (the older format)
  789. on output.  Perhaps you are right, and I should provide an option to
  790. produce the RGB ordering, but this comes with a different value for the
  791. image type and some programs will still bomb.  Basically, there are
  792. programs out there that you MUST provide with a bogus rasterfile in
  793. order for them to function.  This I don't feel the need to support.
  794.  
  795. Anyway, here is a new version of ra_pr24.c with a -rgb option for you:
  796. [included in release 2.0]
  797.  
  798. Date: Sat, 19 Oct 91 17:41:41 NDT
  799. From: pdbourke%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  800. Subject: rad2pict
  801. To: GJWard@Csa2.lbl.gov
  802.  
  803. I don't know if you have been informed but we have got a radiance to PICT
  804. converter going. It takes a Radiance image file and creates a 24bit PICT.
  805.  
  806. Yesterday I wrote a flight path generator. It takes a file of key frames
  807. vp, vd, vu vectors and the number of tweens and any other rpict parameters.
  808. It generates a whole stack of rpict calls with the inbetween vp, vd, vu,
  809. the other rpict parameters are just replicated. Currently supports linear
  810. interpolation only, plan to do spline interpolation today. This is all
  811. for a really nice animation that is a flight over a landscape for the
  812. terrestial botanists here.
  813. ------------------------------
  814. Paul D. Bourke
  815. pdbourke@ccu1.aukuni.ac.nz
  816.          (130.216.1.5)
  817.  
  818. Date: Wed, 23 Oct 91 10:01:25 NDT
  819. From: pdbourke%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  820. Subject: ra2pict
  821. To: GJWard@Csa2.lbl.gov
  822.  
  823. I have deposited the Radiance to PICT converter in the TRANSLATORS directory.
  824. It also includes a Radiance to RGB RAW converter.
  825. ------------------------------
  826. Paul D. Bourke
  827. pdbourke@ccu1.aukuni.ac.nz
  828.          (130.216.1.5)
  829.  
  830. From greg Wed Oct 23 09:44:06 1991
  831. Date: Wed, 23 Oct 91 09:44:05 +0100
  832. From: greg (Greg Ward)
  833. To: pdbourke%ccu1.aukuni.ac.nz@Lbl.Bitnet
  834. Subject: Re: rad2pict
  835. Status: RO
  836.  
  837. Thanks very much for your ra2pict program.  With your permission, I would
  838. like to rename it ra_pict and include it with the standard distribution.
  839. I agree that ra2pict is a little nicer, but the convention I started with
  840. is to us this2that for CAD translators and this_that for image format
  841. translators.  Also, since most of the image translators I've written
  842. support translation both ways, the underscore seems a little more
  843. appropriate since it is a little less directional.
  844.  
  845. By the way, I am curious why you found the need for the ra2raw program
  846. when pvalue can produce the same output with the -i and -h options?
  847.  
  848. I have written a rather involved script for walk-through animation
  849. using pinterp for inbetweening and rcalc to compute Catmull-Rolm
  850. spline interpolated camera positions.  It is not with me at the
  851. moment, but I will bring it in tomorrow from home and mail you
  852. a shar file.  I have wanted to write a general animation controller
  853. for some time, but I do animations so infrequently that I don't really
  854. have it down well enough to warrent going away from a script.
  855.  
  856. I was hoping that you might use some of what you find in the script to
  857. enhance the controller you're developing.
  858.  
  859. -Greg
  860.  
  861. Date: Thu, 24 Oct 91 7:55:45 NDT
  862. From: pdbourke%ccu1.aukuni.ac.nz@Lbl.Bitnet
  863. Subject: animation
  864. To: greg%lesosun1.epfl.ch@Lbl.Bitnet
  865.  
  866. > By the way, I am curious why you found the need for the ra2raw program
  867. > when pvalue can produce the same output with the -i and -h options?
  868.  
  869. I didn't know about these options for pvalue, but the real reason was
  870. to make sure we had something that correctly read Radiance image files.
  871.  
  872. > I have written a rather involved script for walk-through animation
  873. > using pinterp for inbetweening and rcalc to compute Catmull-Rolm
  874. > spline interpolated camera positions.  It is not with me at the
  875. > moment, but I will bring it in tomorrow from home and mail you
  876. > a shar file.  I have wanted to write a general animation controller
  877. > for some time, but I do animations so infrequently that I don't really
  878. > have it down well enough to warrent going away from a script.
  879.  
  880. I would like the maths for Catmull-Rolm spline...
  881.  
  882. > I was hoping that you might use some of what you find in the script to
  883. > enhance the controller you're developing.
  884.  
  885. I don't remember exactly how much of my flight path generator I described
  886. last time but here goes (possibly again)
  887.  
  888.     Usage: flightpath keyframefile interpolation [rpict options] octfile
  889.  
  890. where the key frame file contains one line per key frame with nine numbers
  891. (3 vectors) naemly vp vd and vu. The interpolation at the moment is either
  892. 'l' or 'b' for linear or bezier. Might do some spline today, at least
  893. something that actually passes through the key frame points whereas bezier
  894. is inside the complex hull, more annoying than I thought. The rpict options
  895. just get copied into a file (name is hardwired at the moment) which contains
  896. a list of rpict calls. Oh yes I almost forgot, the first line of the
  897. keyframefile contains the number of inbetweens for each keyframe.
  898. Since I've written this for my needs at the moment, the ra2pict (ra_pict)
  899. calls are also placed after the rpict calls. We transfer these frames to
  900. the Mac as PICT files and convert them into either a QuickTime animation or
  901. merge them into MacroMind director. I intend to write a PICS converter
  902. maybe although it's not to high a priority.
  903.  
  904. Anyway I had a animation generating last night, 100 frames of that terrain
  905. model I was talking about last time with 45000 polygons. Preliminary
  906. work looks real good and I am seeing the people I'm doing it for today so
  907. I had better sign off and see how it went.
  908. ------------------------------
  909. Paul D. Bourke
  910. pdbourke@ccu1.aukuni.ac.nz
  911.          (130.216.1.5)
  912.  
  913. Date: Thu, 24 Oct 91 14:24:16 +0100
  914. From: greg (Greg Ward)
  915. To: pdbourke%ccu1.aukuni.ac.nz@Lbl.Bitnet
  916. Subject: Re:  animation
  917.  
  918. Hi Paul,
  919.  
  920. At the end of this message is a shar file containing the script from my
  921. latest animation venture.  Note that the keyframes it takes are in a .cal
  922. file called keys.cal rather than a view file.  I wrote the view command
  923. in rview so that multiple views can be written to the same file, and this
  924. is how I selected the key frames.  The view command also takes any number
  925. of additional arguments after the view file name, and these are appended
  926. to the view specification which is itself appended (as I said) to the file.
  927. I use this feature to add a value for the time between the last frame and
  928. this one, usually in seconds.  I have found this to be the most intuitive
  929. way for me to control the spacing of keyframes.  Easier than thinking about
  930. the number of frames inbetween, since I don't know for sure what framing
  931. rate I might use later on.  Unfortunately, I do not currently have a
  932. method from going from the keyframe view file created with rview and the
  933. keys.cal file used by rcalc to generate the view parameters for rpict.
  934.  
  935. Anyway, take a look at it.  The formulas for Catmull-Rolm interpolation are
  936. in the file spline.cal, if you can read it!  Take note of how pinterp is
  937. used in the script to generate 7 interpolated frames for every frame
  938. rendered directly by rpict.
  939.  
  940. -Greg
  941.  
  942. #! /bin/sh
  943. # This is a shell archive, meaning:
  944. # 1. Remove everything above the #! /bin/sh line.
  945. # 2. Save the resulting text in a file.
  946. # 3. Execute the file with /bin/sh (not csh) to create:
  947. #    script
  948. #    keys.cal
  949. #    view.fmt
  950. #    spline.cal
  951. # This archive created: Thu Oct 24 13:56:29 1991
  952.  
  953. [The rest was deleted because it can be found in the ray/obj/cabin/anim1
  954. directory of the standard 2.0 distribution.]
  955.  
  956. Date: Mon, 18 Nov 91 13:49:27 NDT
  957. From: russells%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  958. Subject: Image translators
  959. To: GJWard@Csa2.lbl.gov
  960.  
  961. Hi Greg,
  962.   
  963.   I have made a few improvments to ra2pict -- removing potentially
  964.   nasty bugs, writing a man page, that sort of thing. If there
  965.   is any interest I will the new version sent over.
  966.   
  967.   There is one remaining problem, however.  Most of Radiance
  968.   is byte-order independent, right?  The files produced on different
  969.   types of machines may not be interchangable, but the code
  970.   works on any type.
  971.   
  972.   Unfortunately, PICT files expect their word and longs to be in the
  973.   big-endian order.  I am trying to find methods to tell the machine
  974.   type from header files and/or libraries, but with little success.
  975.   
  976.   As far as I can tell only things like ra_t8 (Targa format) depend
  977.   on byte orders. Does this program work on a little endian machine?
  978.   
  979.   
  980.   Also, is there any call for Radiance to GIF. I have the 87a and 89a
  981.   formats, and code for decoding 87a gifs (both 8 bit formats, as far
  982.   as I can work out).
  983.   
  984.   While I am at it, how about Radiance to rle (Utah Raster Toolkit RLE)?
  985.   ... to ppm? (Portable Pix maps)
  986.   ... to tiff?
  987.   ... X Windows bitmaps?
  988.   ... SG gl files?
  989.   ... IRIS images?
  990.   ... jpeg?
  991.   
  992.       (Just while I am in the mood.)
  993.   
  994.   I have some of these libraries available. In most cases if you
  995.   can turn the image into a stream of raw bytes there are
  996.   routines to translate these into the other formats. 
  997.   
  998.   Bye
  999.   -------------------------------------------------------------
  1000.   Russell Street                     russells@ccu1.aukuni.ac.nz 
  1001.   Auckland University, New Zealand
  1002.   "Baldrick, I believe the phrase rhymes with 'clucking bell'."
  1003.           -- Edmund Blackadder
  1004.  
  1005. Date: Mon, 18 Nov 91 11:16:38 +0100
  1006. From: greg (Greg Ward)
  1007. To: russells%ccu1.aukuni.ac.nz@Csa2.lbl.gov
  1008. Subject: Re:  Image translators
  1009. Status: RO
  1010.  
  1011. Hi Russell,
  1012.  
  1013. Thank you for your letter and for all your work on Radiance translators!
  1014. Of course, I am very interested in getting your latest version and man
  1015. page for ra2pict.  I am presently putting together release 2.0 of the
  1016. software, and would like to include ra2pict within the main distribution
  1017. (with your permission) because it is such a useful program.  I have been
  1018. using the older version myself without problems so far, but I am glad that
  1019. you are a perfectionist in removing potential bugs.  Did you make the
  1020. compiler compatibility changes I suggested to your version?  Also, there
  1021. have been some minor changes to the calls to open a Radiance picture since
  1022. you wrote your original version.  At the end of this letter I have included
  1023. a skeletal translator using the new calls.
  1024.  
  1025. Byte order is indeed a problem for some of the so-called "standard" image
  1026. formats.  I have made all Radiance files byte-order independent, including
  1027. the picture files, but the Sun rasterfile format used by ra_pr and ra_pr24
  1028. does depend on byte ordering.  Fortunately, the Targa file format specifies
  1029. byte ordering and is thus not dependent on machine differences in this
  1030. regard.  If the PICT format specifies ordering, then we must follow.  It
  1031. is not necessary to find out the byte ordering of the host machine, simply
  1032. use getc() and putc() to do all your input and output and pack/unpack the
  1033. words yourself as I do in ra_t8.c.
  1034.  
  1035. I have indeed had requests for Radiance conversion to GIF format, but have
  1036. not done anything about it myself.  GIF seems to me to be a rather nasty
  1037. format and it varies between the PC and the Macintosh.  Also, since it is
  1038. limited to 8 bits, I have decided to skip it.
  1039.  
  1040. I have written translators between Radiance pictures and ppm as well as
  1041. tiff.  For the latter, I used the excellent public domain library written
  1042. by Sam Leffler.  I figure that you can go from these formats to many
  1043. other formats by picking up the Utah Raster Toolkit and the pbmplus package.
  1044. If you are really interested in writing direct translators, though, I think
  1045. having one to GIF would be nice.
  1046.  
  1047. Thanks again!
  1048. -Greg
  1049.  
  1050. [File deleted because it is include in 2.0 distribution under
  1051.     ray/src/px/ra_skel.c]
  1052.  
  1053. ===================================================================
  1054. GENERATORS    New object generators
  1055.  
  1056. Date: Wed, 16 Oct 91 8:43:48 NDT
  1057. From: pdbourke%ccu1.aukuni.ac.nz@Lbl.Bitnet
  1058. To: greg%lesosun1.epfl.ch@Lbl.Bitnet
  1059.  
  1060. > The generators sound nice.  I suppose they're all MacIntosh applications.
  1061.  
  1062. No, actually I've started doing some programming under UNIX and I thought
  1063. these would be a nice way to learn. They are modelled after genbox, xform
  1064. etc. Also some of the things we've been doing require some higher level
  1065. generators, for example, I will probably write a stairwell generator for
  1066. someone here...floor height, number of landings, step size, width...etc
  1067. Someone else also wants a column generator...?
  1068. ------------------------------
  1069. Paul D. Bourke
  1070. pdbourke@ccu1.aukuni.ac.nz
  1071.          (130.216.1.5)
  1072.  
  1073. =======================================================================
  1074. LUMFACTOR    Luminous Efficacy changed from 470 to 179
  1075.  
  1076. Date: Thu, 24 Oct 91 14:40:06 +0100
  1077. From: greg (Greg Ward)
  1078. To: chas@hobbes.lbl.gov
  1079. Subject: BUG!!!!
  1080.  
  1081. Hi Chas,
  1082.  
  1083. I just discovered to my dismay that I have been using the wrong value for
  1084. the conversion from lumens to watts.  Remember, this was the subject of
  1085. a recent mail exchange regarding the conversion for luminaires.  Anyway,
  1086. 470 is not the correct value, and neither is 683.  The correct value is
  1087. (may I have the envelope, please): 179 lumens/watt.  This is the luminous
  1088. efficacy (as it's called) of white light over the visible spectrum.  I
  1089. don't know what I did before to get 470, but I obviously did it very badly.
  1090.  
  1091. The good news is that this does not invalidate all of the previous work
  1092. we have done or make the luminances we quoted to people less accurate.
  1093. Fortunately, whatever value was used before was used twice, once when
  1094. converting luminaire values to radiance, and again when converting the
  1095. computed radiance values to luminances.  Thus, the two mistakes cancelled
  1096. each other.  This is a good part of why I never knew the value was so far
  1097. off.
  1098.  
  1099. The bad news is that the next time you compile the Radiance sources, and
  1100. in the official release of 2.0, the values in all the luminaire data files
  1101. and all the gensky output will suddenly be wrong by a factor of roughly 2.6!
  1102. Also, using the newer version of ximage on an older file will give the wrong
  1103. luminance values with the 'l' command.  This is a major pain and it is
  1104. really causing me great grief and remorse.  It would almost be better to
  1105. leave everything alone and let the wrong value stand.  Progress, who needs it?
  1106.  
  1107. Hobbes now has the updated versions of the source, but I have not compiled
  1108. it there nor have I given you the corrected binaries for the Mac.  I thought
  1109. you could wait until a quiet point to tell me when you wanted them, when you
  1110. have time to make the correction to your luminaire data files.  Just divide
  1111. all the values by 2.63 -- in vi you can go to the first line of data in each
  1112. file and execute:
  1113.  
  1114. :.,$!rcalc -e '$1=$1/2.63'
  1115.  
  1116. -Greg
  1117.  
  1118. [This change has been incorporated in version 2.0.  See the note in the
  1119. file ray/doc/notes/ReleaseNotes for more information.]
  1120.  
  1121. Date: Thu, 24 Oct 91 07:08:33 PDT
  1122. From: chas@hobbes.lbl.gov (Charles Ehrlich)
  1123. To: greg@lesosun1.epfl.ch
  1124. Subject: Re:  BUG!!!!
  1125.  
  1126. Greg,
  1127. It just goes to show that we are all human and are all allowed
  1128. to make mistakes.  Congratulations!
  1129.  
  1130. Just a few clarifications.  
  1131.  
  1132. When saying that previous work from gensky and such will be off
  1133. by a factor of 2.63, does that mean when re-calculated, or only
  1134. in the stored image files?
  1135.  
  1136. Could this bug cause my sources appear too bright when using
  1137. consistant older binaries?
  1138.  
  1139. The luminarire data files in question are the *.dat files and
  1140. not any of the .rad files that might contain brightfunc or
  1141. illum definitions with correction factors?
  1142.  
  1143. I haven't yet downloaded the Mac binaries.  I think this latest
  1144. event is cause for me to get them.  Could you please update
  1145. them and I will convert my luminaire data files pronto.
  1146.  
  1147. This all reminds me of another suggestion that I've had
  1148. a hard time justifying but always thought would be great
  1149. to have, namely, a VERSION entry in output files.  That way
  1150. ximage would know when an image was calculated with the older
  1151. values.
  1152.  
  1153. Another concern with regard to header entries...I wish there
  1154. was a more exact way of quickly knowing the resolution of
  1155. an image.  With the PIXASPECT and "maxima" definitions for
  1156. the -x and -y options, one can not tell what the resolution
  1157. of the store image is.  A RESOLUTION entry would solve that.
  1158.  
  1159. The world will not focus on this one mistake and judge you
  1160. and your work by it!  I still really believe in the work
  1161. we're doing!
  1162.  
  1163. Chas
  1164.  
  1165. Date: Thu, 24 Oct 91 16:01:09 +0100
  1166. From: greg (Greg Ward)
  1167. To: chas@hobbes.lbl.gov
  1168. Subject: Re:  BUG!!!!
  1169.  
  1170. Hi Chas,
  1171.  
  1172. Do you ever sleep?  The problem with gensky is two-fold.  First, if
  1173. you have files that were GENERATED by the old version of gensky, the
  1174. radiance files therein will be in error, but consistent with the
  1175. errors in the image display and analysis programs that give luminance.
  1176. Second, pictures produced using these files by either the old software
  1177. or the new software will be wrong in terms of absolute radiance.
  1178. Scene files that merely contain a call to gensky (using an exclamation
  1179. point) will give the correct results with the new software.
  1180.  
  1181. Perhaps gensky is not so much of a concern.  Given the enormous variability
  1182. of daylight conditions, a factor of 2 or 3 is not so huge.
  1183.  
  1184. Much more concerning is what to do about pictures generated using luminaire
  1185. data and older versions of ies2rad (or handmade files).  The pictures and
  1186. data files will both be wrong when handed to the newer programs.  The only
  1187. fix I can think of for the picture files is to manually edit the EXPOSURE
  1188. value in the header with the following:
  1189.  
  1190. % echo EXPOSURE=.381 > newpicture
  1191. % cat picture >> newpicture
  1192.  
  1193. The reason this works is because ximage applies the inverse of the exposure
  1194. values stored in the file to get back the original absolute radiances
  1195. before doing any conversion to luminance.  Thus, by claiming that we
  1196. changed the values in the file by a factor of .381 when we really didn't,
  1197. the new ximage will end up using corrected original values.  This also
  1198. works for the -o options of pvalue, pcomb, etc.  It doesn't matter
  1199. where the correction appears in the header -- they are all multiplied
  1200. together.  I've added the following alias to my .cshrc file for convenience:
  1201.  
  1202. alias pfixabs '( echo EXPOSURE=.381 ; cat \!:1 ) > \!:1.$$ ; mv \!:1.$$ \!:1'
  1203.  
  1204. Note that this alias overwrites the existing file, so you may want to take
  1205. off the mv command at the end if you don't want this to happen.
  1206.  
  1207. To answer your other question, light sources should not "appear" too
  1208. bright using the older versions.  The absolute values in fact do not
  1209. affect appearance at all.  Only using the 'l' command in ximage or
  1210. some other means to get at the actual numbers can you ever know
  1211. the difference.  Again, using the old version of ximage with the old
  1212. version of ies2rad or gensky will produce the same results as the
  1213. new with the new.  It is only in mixing the new and the old that
  1214. the results will be screwed up.
  1215.  
  1216. There is now a -version option to the renderers that allows you to
  1217. know exactly what you're working with.  This same version is also
  1218. entered into the output picture in a SOFTWARE= line.  Check it out!
  1219.  
  1220. The -d option of getinfo will tell you the exact resolution of an image,
  1221. as well as the bounding cube of an octree.  I'm surprised you didn't
  1222. know about it, but Radiance by this time has so many nooks and crannies
  1223. I guess no one knows it all (including myself sometimes).
  1224.  
  1225. -Greg
  1226.  
  1227. =================================================================
  1228. MKILLUM        New program to compute light distributions
  1229.  
  1230. Date: Wed, 30 Oct 91 02:21:15 PST
  1231. From: chas@hobbes.lbl.gov (Charles Ehrlich)
  1232. To: greg@hobbes.lbl.gov
  1233. Subject: mkillum
  1234.  
  1235. Greg,
  1236.  
  1237. I'm here with Deanan looking at the manual pages for
  1238. mkillum.  It says that there is no default data file name.
  1239. Why did you choose to do it this way.  It seems to make 
  1240. a lot of sense to have the option to allow mkillum to automatically
  1241. create data and dist files based on the name of the surface
  1242. modifiers.  I understand that the best way of getting accurate
  1243. results it to tweak the parameters for each surface, but for
  1244. a good-enough first-run, this seems incredibly time consuming.
  1245.  
  1246. Deanan says that mkillum is a great idea and I fully agree.
  1247. I'm looking into this with Deanan at this time in preparation
  1248. for the EEC project which will involve a lot of daylighting.
  1249. Deanan is currently working on a fantastically detailed
  1250. atrium space and is discouraged with the time it is taking to
  1251. do a regular ambient calculation.
  1252.  
  1253. What we were wondering is if it is reasonable to define a small
  1254. number of somewhat large illum surfaces in our input scene file
  1255. that we want to use as the eventual illum secondary sources of
  1256. our mkillum processed scene file.  What I am anticipating as being
  1257. a problem is what to define these temporary illum surfaces as if we
  1258. have not yet done the mkillum process.  A catch-22.  In other words,
  1259. we don't want to process the thousands of surfaces that comprise
  1260. the surrounding walls of our atrium.  We instead want to define
  1261. dummy walls made up of some invisible material that mkillum will
  1262. not try to interpret during its pre-process as light sources.  Is
  1263. this case handled by the illum type already? or do we need another
  1264. "invisible" surface material type to deal with this scenario.
  1265.  
  1266. Just to verify our understanding of how mkillum works...it creates
  1267. a complete copy of the input scene file, right?  Does this new
  1268. scene file then have to be re-oconv'd?  What if the "main" scene
  1269. file is our "invisible" illum patches and then a bunch of instances
  1270. and \!xforms of other parts of the scene.  We've already decided that
  1271. we can just turn off mkillum just before all of the \!xforms, but
  1272. is kmillum going to expand each of these such that the new scene
  1273. file will have to re-oconv'ed (and all of its gory detail).  The
  1274. scene as it is now can't even be oconv'd unless it is broken up
  1275. and instanced, then put together.  Comprede?  If we have xform without
  1276. the -e flag set, will mkillum not expand these?
  1277.  
  1278. Well, I guess you weren't expecting this kind of feedback so soon, huh?
  1279.  
  1280. Chas
  1281. Deanan
  1282.  
  1283. Date: Wed, 30 Oct 91 12:05:59 +0100
  1284. From: greg (Greg Ward)
  1285. To: chas@hobbes.lbl.gov
  1286. Subject: Re:  mkillum
  1287.  
  1288. Hi Chas,
  1289.  
  1290. I apologize for the wording in the mkillum manual page.  Thanks for reminding
  1291. me to fix it.  (I had read it and been confused before myself!)  In fact,
  1292. the data file is set automatically based on the material name as described
  1293. for the m variable above.  The only reason the f option is there is so you
  1294. can override the default naming.  Also, when the m option is used to name
  1295. both the material name and the data file, the number of data files will
  1296. grow with each rerun of mkillum, not deleting the old files.  I have this
  1297. as a protection against overwriting files in the directory that happen to
  1298. collide with the name chosen automatically by mkillum.  Using the f option
  1299. is the best way to insure the names you want without gathering a whole lot
  1300. of extra files on your system.  Also, the names are incremented so that
  1301. you only need give this option once (at the beginning of the file) and
  1302. then you can forget it.
  1303.  
  1304. Good question on the invisible surfaces.  I guess I would recommend
  1305. using a trans surface with a transmission of 1, color of 1 1 1, and
  1306. transmitted specularity of 1 with roughness 0.  Such a surface would
  1307. be completely invisible in Radiance.  Face the surface normals away
  1308. from the walls so mkillum will create the sources you want.  Also,
  1309. use the b option of mkillum to prevent the creation of light sources
  1310. that have little or no output.  If your atrium walls are diffuse, you
  1311. can set the d option to 0 so it will save time and create diffuse sources.
  1312. Finally, you should create enough of these initial surfaces (using
  1313. gensurf if you like) so that you don't have one big source on each
  1314. interior facade that results in an inaccurate distribution.  I wouldn't
  1315. consider using fewer than 16 sources per wall for a roughly cubical
  1316. atrium space.
  1317.  
  1318. You can switch mkillum "off" as you say, but it still expands all
  1319. inline commands and requires rerunning oconv on the output.  The
  1320. way I meant it to be used was on a separate file containing the
  1321. surfaces you want changed into light sources using an octree with
  1322. the basic description.  If you use transparent surfaces, you don't
  1323. even have to include these in the original octree.  You can then
  1324. add the output of mkillum to the octree incrementally, thus avoiding
  1325. a complete rebuild.  For surfaces that do participate in the calculation
  1326. (as most do), you can have two incremental branches of the base octree,
  1327. one without illum sources and one with.  This also permits easy comparison
  1328. of results and runtimes for the two approaches.  I will send you a
  1329. shar file with the test scene I've been using.
  1330.  
  1331. -Greg
  1332.  
  1333. P.S.  I'm glad you're interested in mkillum.  I think it's pretty nifty,
  1334.     if I do say so myself.
  1335.  
  1336. Date: Wed, 30 Oct 91 23:54:42 PST
  1337. From: chas@hobbes.lbl.gov (Charles Ehrlich)
  1338. To: greg@hobbes.lbl.gov
  1339. Subject: mkillum ...continued
  1340.  
  1341. Thanks for the shar of the test mkillum scene file.
  1342.  
  1343. Going back to the atrium problem.  The trans type definition is great
  1344. and just what the architect ordered.  Another problem I anticipate has
  1345. to do with the fact that these trans/illum surfaces will exist some
  1346. distance from the face of the atrium walls.  The atrium walls are also
  1347. varriegated, with balconies and catwalks connecting opposite sides.
  1348. The problem of not being able to shape the illum to the exact contours
  1349. of the source fixture (walls or pendants) comes up again.  It doesn't
  1350. seem like defining a trans/illum box, or even a two-sided trans/illum
  1351. will eliminate the inevitable black (or default ambient value) zones
  1352. between where the illum intersects the catwalk and where the wall
  1353. of the atrium and  catwalk actually intersect WITHOUT also making 
  1354. the illumination of walls themselves inacurate.  If there was a source
  1355. material type (as described in previous mail) that had the ability
  1356. to NOT cast shadows (which also implies always being visible) within
  1357. a certain radius of effect, our trans/illum surfaces could reside
  1358. well inside the atrium walls thereby avoiding the illum/surface
  1359. intersection problems.  Another solution might be to make a source
  1360. material type that could be selectively visible to named materials.
  1361.  
  1362. Deanen noticed a nice feature of mkillum.  If the temporary trans
  1363. surface definitions (and also any #@mkillum declarations) are
  1364. kept to the end of the scene file, mkillum does not expand the 
  1365. \!xform parts of the scene (whether or not the -e flag of xform 
  1366. is set.)  This seems like a very nice, and very possibly 
  1367. unintentional feature, no?  I haven't actually tested this myself,
  1368. but even if it did expand the xform parts of the scene, one could
  1369. always delete the unwanted parts of the new scene file, then
  1370. incorporate the new mkillum created parts into the original
  1371. file with xform's intact then re-oconv the scene.  No problem, eh?
  1372.  
  1373. Keep in touch,
  1374. Chas
  1375.  
  1376. Date: Thu, 31 Oct 91 13:35:52 +0100
  1377. From: greg (Greg Ward)
  1378. To: chas@hobbes.lbl.gov
  1379. Subject: Re:  mkillum ...continued
  1380.  
  1381. Hi Chas,
  1382.  
  1383. In fact, I thought a little more about what I said about using a trans
  1384. type and I realized that it was totally unnecessary.  You can just
  1385. define surfaces with the modifier "void" that you never create an
  1386. octree for at all.  This will be soley for input to mkillum, and it
  1387. will create illum surfaces in their place with no alternate type.
  1388. This is in fact much preferred to the stupid solution I suggested,
  1389. and what I had in mind when I wrote the program.  I just forgot!
  1390.  
  1391. I think that the best solution is really the one Deanan suggests of
  1392. giving the actual wall surfaces to mkillum as the ones to modify.
  1393. This will avoid the intersection problems that you anticipate (and
  1394. rightly so) from using mkillum with a free floating surface.  As
  1395. long as the wall surfaces are not in the hundreds and teeny-tiny or
  1396. just one huge surface, things should work out.
  1397.  
  1398. I just tested the expansion of files by mkillum and it does it
  1399. unconditionally as I thought.  I made it this way so that illum
  1400. objects and commands might appear in subfiles, but maybe this isn't
  1401. optimal for large files.  I really didn't write mkillum with an ENTIRE
  1402. scene description in mind.  It's much better if you can separate
  1403. the relevant pieces into a separate file.  This might mean two runs
  1404. of arch2rad with two different mapping files for example.
  1405.  
  1406. -Greg
  1407.  
  1408. ================================================================
  1409. AUTOCAD        Carnegie Mellon working on DXF translator
  1410.  
  1411. Date: Fri, 1 Nov 91 11:56:47 EST
  1412. From: vanwyk@arc.cmu.edu (Skip Van Wyk)
  1413. To: greg@lesosun1.epfl.ch
  1414. Subject: xRAD
  1415.  
  1416. Greg, I have just spent about 2.5-3 weeks on a new AutoCAD to Radiance
  1417. translater.  It does not alter the drawing file, and does more than the
  1418. one from down under.  I'll upload it in about a week, if all goes
  1419. well.  I have the following questions, however.  Can you *not*
  1420. distribute my stupidity to the globillum mailing list until we're
  1421. ready?
  1422.  
  1423. (1) I wonder if you would be willing to add an extruded polygon, much
  1424. as you have an extruded circle=cylinder.  This would make our .rad
  1425. files much much simpler and easy to read. Would "prism" be an
  1426. appropriate name for this shape?
  1427.  
  1428. (2) I force the use of "handles" in autoCAD and so the id of each
  1429. entity is "entity-<handle>.<part> in your "mod polygon id" requirement.
  1430. The part comes from my having to extrude sides, top, and bottom, for
  1431. plines, etc.  (this makes the .rad files large and difficult to read
  1432. and edit).  Is the id *really* required?  can they be redundant, in the
  1433. event that different .rad files be brought into the scene.  I notice
  1434. that you do check for the existance of this identifier, but I have no
  1435. idea how you use it.
  1436.  
  1437. (3)  The use of sphere/bubble, cylinder/tube etc., seem confusing.
  1438. Could we formalize this to be something like sphere and -sphere,
  1439. cylinder and -cylinder, prism and -prism, etc., to discuss inward
  1440. versus outward pointing normals of solid primitives?
  1441.  
  1442. (4)  Ring is essentially a surface primitive while cylinder is a line
  1443. primitive.  What I like about ring is its "direction" and it would be
  1444. so nice if it additionally handled "extrusion".  It seems to me that
  1445. polygon, cone, cylinder, and ring could all be generalized to use this
  1446. xdir,ydir,zdir feature with extrusion, -- and again, it would simplify
  1447. the input files tremendously.
  1448.  
  1449. (5)  As of today, my translator does not do traces, solids, insert,
  1450. text, or block, but it does do line, point, circle, 3dpoly, 3dface,
  1451. 3dline, and parts of pline.  And, the interface allows one to query
  1452. drawing entities, change files (for example, when outputing blocks to
  1453. separate files), and to set system parameters, like default radius,
  1454. extrusion length, and arc resolution.
  1455.  
  1456. I hope these questions/suggestions are helpful.  I have spent so much
  1457. time with my students building models that we have not had the time to
  1458. really work with the Radiance software.  And so organization of models
  1459. and automatically constructing .oconv files, material files, etc., has
  1460. been a big objective of my translator.
  1461.  
  1462. Let me know your feelings thus far.
  1463.  
  1464. --Skip
  1465.  
  1466. Date: Mon, 4 Nov 91 10:33:49 +0100
  1467. From: greg (Greg Ward)
  1468. To: vanwyk@arc.cmu.edu
  1469. Subject: Re:  xRAD
  1470.  
  1471. Hi Skip,
  1472.  
  1473. Thanks for your input.  It sounds like you have done a lot of work on this
  1474. translator.  I will respond to your questions in order
  1475.  
  1476. (1) You can use the genprism command to get a more reasonable representation
  1477. of a prism.  I have endeavored to keep the primitive surface types in
  1478. Radiance as simple and basic as possible, with higher order surface types
  1479. supported by external generator programs.  The following line in a Radiance
  1480. scene file would expand to a collection of surfaces (aptly named) describing
  1481. a 5-sided prism:
  1482.  
  1483.     !genprism red_plastic prism 3  10 4  -3 1  6 12  -l 0 0 5
  1484.  
  1485. The vertices of the base polygon lie in the XY plane, and are (10,4), (-3,1),
  1486. and (6,12).  The extrusion is straight up in Z, length 5.  The ordering of
  1487. the vertices means that this prism will have its surface normals pointing
  1488. outwards.
  1489.  
  1490. (2) The surface identifiers are used only in error messages so that the
  1491. user can easily locate problematic sections of the input scene file.  If
  1492. a few polygons in the file have the same name, the user may still be able
  1493. to find the one causing difficulties, but if all the polygons are named "joe",
  1494. it's hopeless.  Identifier names for modifier types (patterns, materials, etc.)
  1495. are used to link to the surfaces they modify, but you may still reuse the
  1496. modifier names if you choose.  The most recent definition of a modifier is
  1497. always the one which is used.
  1498.  
  1499. (3) I like your suggestion of naming surface types with inward normals
  1500. using -sphere instead of bubble, etc., and I wish I'd thought of that
  1501. when I wrote the input language seven years ago, but I think it's a
  1502. little too late to be making such fundamental changes.  There are other
  1503. decisions I would like to change as well, but out of respect for the
  1504. work others have done with the software already, I leave well enough
  1505. alone.  One thing I have done (for the next release) is made the input
  1506. for spheres and cones more forgiving.  If given a negative radius for a
  1507. sphere or bubble, for example, the programs invert the type and the
  1508. radius and print a warning message instead of bombing.  The same goes
  1509. for cylinders, tubes, cones and cups.  I did this with translator
  1510. writers specifically in mind, following some suggestions made by Paul Bourke.
  1511.  
  1512. (4) With the exception of the source and instance types, I see all the
  1513. so-called surface types of Radiance as surface boundary primitives.
  1514. The extrusion of a boundary would necessarily be a solid, and solids
  1515. do not really have meaning in Radiance.  Are you really asking for
  1516. cones and cylinders whose ends are cut at oblique angles?
  1517.  
  1518. -Greg
  1519.  
  1520. Date: Mon, 4 Nov 91 11:08:28 EST
  1521. From: vanwyk@arc.cmu.edu (Skip Van Wyk)
  1522. To: greg@lesosun1.epfl.ch
  1523. Subject: Re: xRAD
  1524.  
  1525. Thanks, Greg.
  1526.  
  1527. The problem with genprism as it now stands is its lack of generality.
  1528. The vertices, if extended to [x,y,z], along with -l vecx vecy vecz  or
  1529. -l distance, could be very helpful to most modelers.  AutoCAD lets
  1530. users establish an arbitrary coordinate system on which to construct
  1531. objects . . . for me to rotate those back to a world coordinate system
  1532. before using genprism means one transformation, genprism, and then
  1533. another transformation or xform . . .
  1534.  
  1535. I'll alter your genprism to a new "genprismx" to accomplish the above.
  1536. And, I think this is also the kind of contribution you hope users
  1537. make!
  1538.  
  1539. By the way, I have to do some daylighting calibrations.  While in
  1540. Stutgart at the Institut for Bauphysik, I was given a pre-release copy
  1541. of their comparisons of Radiance with other lighting models.  Have you
  1542. seen it yet?  And, I didn't really watch you very carefully this summer
  1543. as you demonstrated "taking off" luminance values from the picture.  I
  1544. assume that one mustdo a hemispheric view, from a specific point of
  1545. interest.  Correct?
  1546.  
  1547. Thanks, Skip
  1548.  
  1549. Date: Mon, 4 Nov 91 17:15:36 +0100
  1550. From: greg (Greg Ward)
  1551. To: vanwyk@arc.cmu.edu
  1552. Subject: Re: xRAD
  1553.  
  1554. Hi Skip,
  1555.  
  1556. It should be possible to use genprism and pipe the output to xform to
  1557. get any prism orientation you want.  I don't know how easy it is to go
  1558. from an AutoCAD coordinate system to the necessary translations and
  1559. rotations for xform, but it should not be necessary to perform two
  1560. transformations as I understand the problem.
  1561.  
  1562. A cursor pick or drag followed by the 'l' command in ximage will display
  1563. the luminance value for a point or area, respectively.  It is not necessary
  1564. to do a hemispherical view unless you want to know the illuminance at a
  1565. point.  In that case, you should probably use rtrace separately with the -i
  1566. option.
  1567.  
  1568. The next release of Radiance, which is due out this month, provides many
  1569. more features for daylight calculation, including illuminance and daylight
  1570. factor routines.
  1571.  
  1572. I have not seen the Stuttgart report, which is surprising since we have
  1573. been collaborating on this work for a couple of years now.  I suppose
  1574. I should ask them to send me a copy.
  1575.  
  1576. -Greg
  1577.  
  1578. ===============================================================
  1579. MODELS        Scene model data bank
  1580.  
  1581. Date: Mon,  4 Nov 91 15:29:21 Z
  1582. From: Augusto Sousa <aa_sousa@inescn.pt>
  1583. To: Greg Ward <greg@lesosun1.epfl.ch>
  1584. Subject: NFF Files
  1585.  
  1586. Dear Greg,
  1587.  
  1588. How are you since the rendering workshop in Barcelona? I hope that you
  1589. are well.
  1590.  
  1591. I am sending you this email because (if I well understood) you have 
  1592. 3D scenes for Ray-Tracing in the NFF format that we could get by ftp.
  1593. How can we get them and, perhaps, add some more?
  1594.  
  1595. Awainting the favour of your reply,
  1596. Kind regards,
  1597.  
  1598. A. Augusto de Sousa
  1599.  
  1600. P.S. Let me know if I can help you in any thing.
  1601.  
  1602. Date: Tue, 5 Nov 91 09:41:39 +0100
  1603. From: greg (Greg Ward)
  1604. To: aa_sousa@inescn.pt
  1605. Subject: Re:  NFF Files
  1606.  
  1607. Dear Augusto,
  1608.  
  1609. Thank you for your letter.  I do indeed have scene descriptions that you
  1610. can pick up by anonymous ftp, but they are in my own Radiance format rather
  1611. than NFF.  I have a translator to go from NFF to Radiance, but not vice versa.
  1612.  
  1613. You can pick up both Radiance and the scene descriptions from hobbes.lbl.gov
  1614. (128.3.12.38).  The README files should explain where everything is, but
  1615. just to save time you should pick up ray1R4.tar.Z from the ftp directory
  1616. if you want to run Radiance, and the scene descriptions are in various
  1617. tar files in pub/models.  There is also a collection of Radiance objects
  1618. (furniture and the like) in pub/objects/gjward.tar.Z.  I will send in a
  1619. following message a PostScript form of the document describing Radiance's
  1620. input format.
  1621.  
  1622. If you have any descriptions to offer in NFF format, I invite you to deposit
  1623. them in either the pub/models or pub/objects directories on hobbes.  Please
  1624. follow the directions in the README files contained therein, or ask me if
  1625. you have any additional questions.
  1626.  
  1627. -Greg
  1628.  
  1629. =========================================================================
  1630. ART        Radiance in the Arts
  1631.  
  1632. Date: Wed, 6 Nov 91 08:55:13 +0100
  1633. From: greg (Greg Ward)
  1634. To: raylist@hobbes.lbl.gov
  1635. Subject: Radiance in the Arts
  1636.  
  1637. Hello Everyone,
  1638.  
  1639. Here is a question about Radiance in the art community that was sent to me
  1640. today, and my response.  If anyone wants to contact this person, please address
  1641. it or cc to his e-mail.  I would appreciate a copy also so I can post it
  1642. later to the group.
  1643.  
  1644. In related news, there is a fellow at IBM in New York (Dr. Cliff Pickover)
  1645. who is collecting computer graphic art for a book.  I can put you in touch
  1646. with him if you are interested.
  1647.  
  1648. -Greg
  1649. ------------------------------
  1650.  
  1651. From: axolotl@socs.uts.EDU.AU
  1652. Subject: Radiance in the fine arts?
  1653. To: greg@hobbes.lbl.gov
  1654. Date: Wed, 6 Nov 91 16:17:48 EST
  1655.  
  1656. Greg,
  1657.  
  1658.   I was wondering if you knew of any examples where Radiance had been
  1659. used in the fine arts?  I fired up the 'podlife' model, and it
  1660. looked great.  So I'm curious to know if any more exist, or at least
  1661. if Rad has been installed at any "fine arts" sites (whatever they
  1662. may be)...
  1663.  
  1664.   I'm reluctant to use Radiance because it doesn't have the kind of
  1665. massively anti-aliased, polished output that I need.  (I know you can
  1666. render it very large and scale it down, but this is clumsy, and
  1667. isn't too good for animation).  The soda-store image in your (88?)
  1668. paper looks good- that's the sort of thing I'm after.
  1669.  
  1670.   I hear Sumant Pattanaik is going to use your modeling language for
  1671. his PhD in Radiosity. Sounds good.
  1672.  
  1673. -- 
  1674. Iain Sinclair                University of Technology, Sydney
  1675. axolotl@socs.uts.edu.au      +61 2 2812552
  1676. irsincla@uts.edu.au          +61 2 3301807 (fax)
  1677.  
  1678. >From greg Wed Nov  6 08:35:08 1991
  1679. To: axolotl@socs.uts.EDU.AU
  1680. Subject: Re:  Radiance in the fine arts?
  1681.  
  1682. Hello Iain,
  1683.  
  1684. Thanks for the complement on the Pod Life sculpture.  Cindy and I have
  1685. done a couple of other "artsy" scenes, another (less sophisticated)
  1686. sculpture and a decorated Christmas tree.
  1687.  
  1688. There is a group in New Zealand that did some nice things with Radiance
  1689. a long time ago.  I don't know if they're still using it as I haven't
  1690. heard from them recently, but you might contact them and ask them about
  1691. their experiences.  Here is their address:
  1692.  
  1693.     Richard Cranenburgh
  1694.     Auckland Technical Institute
  1695.     Private Bag C.P.O Auckland
  1696.     1 Wellesley St.
  1697.     New Zealand
  1698.  
  1699. I'm sorry, but I don't seem to have their e-mail or phone number, but maybe
  1700. you can look it up.
  1701.  
  1702. As for other "Art" colleges using the software, I don't know.  I'm afraid
  1703. that I don't run in those circles and I don't really know an art college
  1704. from a business school from a hole in the wall.  I will send your request
  1705. to the mailing list, though, and perhaps we will get a response.
  1706.  
  1707. I have done animations and high resolution anti-aliased images, and I don't
  1708. really agree with your comments about Radiance not producing high quality
  1709. output.  The separation of rendering from filtering seems quite natural
  1710. once you get used to it, and it provides greater control over the
  1711. time/quality tradeoffs.  I don't think that other programs do it any
  1712. differently, they only take away some of the control.
  1713.  
  1714. If you think Radiance is awkward for animation, you may be right.  I
  1715. have a C-shell script I could send you that calls all the
  1716. necessary programs for a walk-through animation.  At some point it
  1717. would be nice to have a program to do it all from key frames, but
  1718. for how often I would use it, it's probably not worth it for me.
  1719.  
  1720. -Greg
  1721.  
  1722. Date: Thu, 7 Nov 91 8:01:55 NDT
  1723. From: pdbourke@ccu1.aukuni.ac.nz
  1724. Subject: Re: Radiance in the Arts
  1725. To: greg@lesosun1.epfl.ch
  1726.  
  1727. > >From: axolotl@socs.uts.EDU.AU
  1728. > Subject: Radiance in the fine arts?
  1729. > To: greg@hobbes.lbl.gov
  1730. > Date: Wed, 6 Nov 91 16:17:48 EST
  1731. > Greg,
  1732. >   I was wondering if you knew of any examples where Radiance had been
  1733. > used in the fine arts?  I fired up the 'podlife' model, and it
  1734. > looked great.  So I'm curious to know if any more exist, or at least
  1735. > if Rad has been installed at any "fine arts" sites (whatever they
  1736. > may be)...
  1737.  
  1738. Greg passed your note onto other possibly interested parties...
  1739.  
  1740. We installed radiance about six months ago on our SG here. While we are
  1741. one of the two Architecture Schools in NZ, we are known as the "design"
  1742. school. An increasing number of strudents are looking at experimenting
  1743. with Radiance although there has only been one "official" project being
  1744. completed at the moment. We have written some generators, parametric
  1745. textures, etc. 
  1746.  
  1747. >   I'm reluctant to use Radiance because it doesn't have the kind of
  1748. > massively anti-aliased, polished output that I need.  (I know you can
  1749. > render it very large and scale it down, but this is clumsy, and
  1750. > isn't too good for animation).
  1751.  
  1752. I also originally thought that his method of antialiasing was not so
  1753. hot but I've changed my mind, it gives the user much more control in
  1754. the end.
  1755. Regarding animation, we have done quite a bit of this using Radiance.
  1756. At the moment I have done most of it for scientific visualisation work.
  1757. Although it requires the writting of code there are some nice things that
  1758. can be done. In particular because many forms can be generated by mathematical
  1759. expression, it is possible to create animation that transform object shapes
  1760. easily. Also, texture animation is easy. Most of the stuff I've done has
  1761. been camera path animation, otherwaise known as flight path animation.
  1762. I have written a frame generator which I will eventually install on Gregs
  1763. site, it takes a file of key frames (vp, vd and vu) and generates n calls
  1764. to rpict with either linear, bezier, or spline interpolation (except spline
  1765. is not working yet) I play most of my animations with QuickTime on the Mac.
  1766.  
  1767. We have written a Super3D translator if that helps...
  1768. A student is about to look at particle systems, applications, etc...
  1769.  
  1770. I have talked to John Fairclough at the Elam school of fine arts here, he
  1771. is interested but they don't yet have ethernet to their building.
  1772. ------------------------------
  1773. Paul D. Bourke
  1774. pdbourke@ccu1.aukuni.ac.nz
  1775.          (130.216.1.5)
  1776.  
  1777. From: desilva@ced.berkeley.edu
  1778. Subject: Radiance in the arts
  1779. To: greg@hobbes.lbl.gov
  1780. Date: Wed, 6 Nov 91 10:50:42 PST
  1781.  
  1782.  Hi greg,
  1783.  
  1784.  I don't know if you remember some stuff I did using radiance a 
  1785.  about two years ago that involved a projecting slides onto a
  1786.  floating sculpture sort of thing? Anyway, I only have one of those
  1787.  images left on my mac and all the slides were sent off to competitions
  1788.  and never returned. Oh well, I should have backed them up to tape!
  1789.  I can definitely say that Radiance is definitely a powerful tool for 
  1790.  artists. 
  1791.  
  1792.  As for the animation stuff, appartently PD Bourke is working
  1793.  on a flight path program that will interpolate splines from key frames.
  1794.  How did you do the mmack animation?
  1795.  
  1796.  I have a few questions about ambient calculations. 
  1797.  Any hints at all about choosing the right ambient parameters
  1798.  whould be of great help! 
  1799.  
  1800.  I guess the the most basic question would be what options can
  1801.  I change on the second pass? It seems most logical that you can 
  1802.  only change the resolution but I tried changing the -av and got
  1803.  some hatchlike marks in the shadow areas. 
  1804.  
  1805.  When doing the first run I did it at a resolution of 200 x 200.
  1806.  Too low? I appears that the resolution doesn't matter because on 
  1807.  the second pass, ambient values are also added. Is this because of 
  1808.  the change in resolution or does it add values for each run? If so,
  1809.  then I suppose subsequent runs will increase the accuracy, albeit by 
  1810.  small amounts.
  1811.  
  1812.  And a few more:
  1813.  Whats a good way of figuring out the -av value? 
  1814.  Also, is -ab 2 worthwhile? and how what is the increase in time?
  1815.  
  1816.  Oh, and one more:
  1817.  
  1818.  In trying to properly estimate colors, I'm following the 
  1819.  .3*r+.59*g+.11*b formula to get a reflectance value. 
  1820.  The colors I'm getting are very saturated and not too close to 
  1821.  my guess at what the reflectancy should be. Is there some
  1822.  standard set of values that I can look up to approximate
  1823.  the reflectancies? 
  1824.  I also borrowed a light mate light meter that can be used to 
  1825.  figure out the reflectivity of a surface by comparing it to a
  1826.  reference surface. The manual for the meter suggests using a 
  1827.  100% reflective board. Does such a thing exist? I understand the
  1828.  white paper is about 68% reflective. Also, would the reflectivity
  1829.  value I get from the meter correspond to the formula above and radiance?
  1830.  
  1831.  I apologize for unloading soooo many questions on you!
  1832.  
  1833.  thanks,
  1834.  
  1835.  deanan
  1836.  
  1837. Date: Thu, 7 Nov 91 10:34:07 +0100
  1838. From: greg (Greg Ward)
  1839. To: desilva@ced.berkeley.edu
  1840. Subject: Re:  Radiance in the arts
  1841.  
  1842. Hi Deanan,
  1843.  
  1844. Yes, I do remember your work with the famous art projections.  In fact, I
  1845. did save some of the Radiance picture files on tape for myself.  I didn't
  1846. keep everything, but I did keep the following:
  1847.  
  1848.     40b1    Looking blue from ditch
  1849.     40b2    Sculpture floating in blue
  1850.     40b3    Closeup of sculpture in blue
  1851.     40b4    Looking orange from ditch
  1852.     40b5    Sculpture floating in orange
  1853.     40b6    Closeup of sculpture in orange
  1854.     40b7    View with robot arm
  1855.     40o1    Long view of ditch
  1856.     40o2    Looking down in ditch with Van Gough prominent
  1857.  
  1858. Chas can get them off of tape if you like now, or I can get them when I
  1859. get back.  They have taken away our film recorder, so buying a new one
  1860. is high on my list.  When that happens, I can make as many copies as
  1861. you like.  I know about submissions dissappearing!  Where is Xavier now,
  1862. by the way?
  1863.  
  1864. I did the mmack animation as well as a new animation sitting on 6 tapes
  1865. in my desk drawer using a C-shell script.  I can send you a shar file
  1866. if you are interested.  For fly-by animations, the program pinterp smooths
  1867. out the animation at minimal cost by using z-buffer inbetweening.
  1868.  
  1869. The only values that are safe to change on the second pass are -ad and -as.
  1870. In fact, it may make sense to use slightly larger values for these parameters
  1871. on the first pass so that you get more accurate results for the values that
  1872. matter the most.
  1873.  
  1874. I often use a resolution of only 64x64 on the first pass.  I'm sure that
  1875. 200x200 is more than adequate.  Additional values will be added with each
  1876. pass because slightly different nooks and crevices will be sampled each
  1877. time, and some of these may need new values.  The low-frequency first pass
  1878. just puts in values that have a large field of influence, and these
  1879. values are the most important for good appearance.
  1880.  
  1881. Saturated colors are not very true to life.  I try and avoid them myself.
  1882. The value you get from a reflectance meter should match the .3*r+.59*g+.11*b
  1883. value you use in Radiance.  99% reflectance standards are available
  1884. from LabSphere at a cost of around $180.  The address is in my file at
  1885. LBL, but since I'm here in Switzerland that doesn't do me much good.
  1886.  
  1887. -Greg
  1888.  
  1889. From: Nick (Nikolaos) C. Fotis <nfotis@ithaca.ntua.gr>
  1890. Subject: Re: Radiance in the Arts
  1891. To: greg@lesosun1.epfl.ch
  1892. Date: Fri, 8 Nov 91 18:08:26 EET
  1893.  
  1894. > I have done animations and high resolution anti-aliased images, and I don't
  1895. > really agree with your comments about Radiance not producing high quality
  1896. > output.  The separation of rendering from anti-aliasing is quite natural
  1897. > once you get used to it, and it provides greater control over the
  1898. > time/quality tradeoffs.  I don't think that other programs do it any
  1899. > differently, they only take away some of the control.
  1900.  
  1901. It would be VERY nice if you could write a small giude in how to
  1902. do a nice, antialiased image. It's somewhat necessary for us to
  1903. have separated tutorials for these small, but important details.
  1904.  
  1905. > If you think Radiance is awkward for animation, you may be right.  I
  1906. > have some a C-shell script I could send you that calls all the
  1907. > necessary programs for a walk-through animation.  At some point it
  1908. > would be nice to have a program to do it all from key frames, which is
  1909. > quite possible but for how often I use would use it, probably not worth
  1910. > it for me.
  1911. > -Greg
  1912.  
  1913. Perhaps we (the Royal "WE") could make an interface to 2-3 animation programs.
  1914. I'm waiting for the new version of BRL-CAD, which says that provides
  1915. articulated animation, so I'm interested in building an interface to it.
  1916. (And to Rayshade 4.0 or greater).
  1917.  
  1918. Greetings,
  1919. Nick.
  1920.  
  1921. Date: Mon, 11 Nov 91 09:46:38 +0100
  1922. From: greg (Greg Ward)
  1923. To: nfotis@ithaca.ntua.gr
  1924. Subject: Re: Radiance in the Arts
  1925.  
  1926. Hi again.  I agree that there should be some better hints on generating
  1927. nice images.  The so-called "ambient" calculation and its parameters are
  1928. particularly difficult to master.  I keep hoping to find the time to
  1929. document this stuff, but the task is daunting.  Next year I will be
  1930. writing a real user interface to Radiance, and into it I will build
  1931. a lot of my knowledge about how to properly run the programs.  Still,
  1932. documentation is inevitable at some point -- the bane of all programmers!
  1933.  
  1934. -Greg
  1935.  
  1936. =============================================================
  1937. RS6000        Compiling Radiance on the IBM RS/6000
  1938.  
  1939. Date: 9 Nov 91 10:22:00 PST
  1940. From: cvetp035@csupomona.edu ()
  1941. Subject: Compiling Radiance on IBM RS6000
  1942. To: gjward@Csa2.lbl.gov (gjward)
  1943.  
  1944. Hi Greg,
  1945.     Do you know if anyone has compiled Radiance on RS6000? I got a lot
  1946. of errors when I tried to install it as a RISC machine. BTW, Radiance is
  1947. running great on the Sun Sparcstation IPCs here. I'd love to run it on
  1948. the RS6000 to compare the performance.
  1949.  
  1950. Jack
  1951.  
  1952. Date: Mon, 12 Aug 91 19:13:37 
  1953. From: marc@innerdoor.austin.ibm.com (Marc Andreessen)
  1954. To: GJWard@Csa2.lbl.gov
  1955. Subject: Radiance on RS/6000
  1956.  
  1957. Greg -
  1958.  
  1959. Unpacked Radiance last night and got it working under AIX 3.1 on
  1960. IBM RS/6000 with X11; if you're interested in the port, here's what
  1961. it took:
  1962.  
  1963.     o  Using defines -DBSD -D_BSD -DBSD_INCLUDES along with
  1964.        those for SGI (-DSTRUCTASSIGN and -DALIGN=double).
  1965.     o  Adding -lbsd to the final link stage for each 
  1966.        executable.
  1967.         o  Possibly minor changes to source (#ifndef'ing out
  1968.        malloc decls, etc); these are probably not necessary
  1969.        since I moved to BSD emulation after I'd made these
  1970.        changes, which probably makes the changes useless.
  1971.  
  1972. If you're interested in a genuine, clean-as-possible port I'll redo it and
  1973. send you the results.
  1974.  
  1975. Also, src/px/Makefile makes reference to 'glimage', but glimage.c
  1976. is missing from the distribution; can I get my hands on that?
  1977. Otherwise I'll write my own...
  1978.  
  1979. The package looks great - thanks for making it available.
  1980.  
  1981. Marc
  1982.  
  1983. --
  1984. Marc Andreessen
  1985. Graphics Subsystem Development
  1986. IBM Advanced Workstations Division
  1987. marc@innerdoor.austin.ibm.com
  1988.  
  1989. Date: Tue, 13 Aug 91 08:47:05 +0200
  1990. From: greg (Greg Ward)
  1991. To: marc@innerdoor.austin.ibm.com
  1992. Subject: Re:  Radiance on RS/6000
  1993.  
  1994. Hello Marc,
  1995.  
  1996. Glad to hear that you got it running OK.  I've got some timings someone
  1997. else did on the RS/6000 if you're interested:
  1998.  
  1999. -----------------------
  2000. >From emo@ogre.cica.indiana.edu Tue Feb 26 14:47:25 1991
  2001. To: ray@hobbes.lbl.gov
  2002. Subject: Misc. Radiance 1.3 benchmarks
  2003.  
  2004. Program: rpict, version 1.3, 
  2005. Date: February 22, 1991
  2006.  
  2007. This benchmark involves the example 1000x1000 picture described in
  2008. ./ray/examples/textures as rendered from the associated makefile,
  2009. ./ray/examples/textures/Makefile.
  2010.  
  2011. -----------------------------------------------------------------------------
  2012.                                       (all times are in seconds)
  2013. System                                  Real    User    System
  2014. -----------------------------------------------------------------------------
  2015. Sun-4/330 (ogre)                      10:27.9  8:10.5       8.5
  2016. SGI Personal Iris (pico)              5:41.0  5:26.5       1.6
  2017. -IBM RS6000 model 320 (off-site)      4:19.2  4:13.9       0.3
  2018. +Stardent Titan-3000 (tuna)     l     4:13.9  4:04.3       7.8
  2019. -IBM RS6000 model 540 (off-site)      2:50.3  2:45.2       0.2
  2020. *Stardent Titan-3000 (tuna)           1:52.2  1:45.7       4.8
  2021. -----------------------------------------------------------------------------
  2022. Legend:
  2023. +[Note: The entire image was rendered on 1 processor]
  2024. *[Note: Each processor renders 1/4 image, so this is the MAX of all timings.
  2025.         The -x, -y, -vv, and -vh parameters were adjusted accordingly.]
  2026. -[Note: The IBM timings were performed by our IBM representative off-site.]
  2027.  
  2028.  
  2029. System Configurations:
  2030.  
  2031. Architecture          Operating System           RAM    Processor      #
  2032. -----------------------------------------------------------------------------
  2033. Sun-4/330             SunOS Release 4.0.3_CG9    24 MB  20 MhZ SPARC  (1)
  2034. SGI Personal Iris     IRIX System V Release 3.2  16 MB  20 MhZ R3000  (1)
  2035. Stardent Titan-3000   Unix System V Release 3.0  32 MB  25 MhZ R3000  (4)
  2036. IBM RS6000 model 320  Unix System V Release ?    16 MB  20 MhZ RS6000 (1)
  2037. IBM RS6000 model 540  Unix System V Release ?    ?? MB  30 MhZ RS6000 (1)
  2038. -----------------------------------------------------------------------------
  2039.  
  2040. I would be happy to answer any questions pertaining to these timings.
  2041. In no way am I suggesting that these timings are the best possible for
  2042. a given architecture;  rather, they were the ones I obtained and may or
  2043. may not be repeatable at another site.  No special fine-tuning was done
  2044. either to the system or to Radiance before performing these timings.
  2045. Each system was relatively quiescent and therefore had a minimal load average.
  2046.  
  2047. eric
  2048.  
  2049. ---------------------------
  2050. I'm not sure how 1.3 compares to 1.4, but I don't expect there is much
  2051. difference.
  2052.  
  2053. I was wondering, though, why you chose to go the BSD route, when you could
  2054. have more simply removed the BSD definition and gone from there?  Oh well,
  2055. whatever works, I always say.
  2056.  
  2057. For some reason, glimage.c was clobbered in this distribution.  It's
  2058. not very sophisticated, so if you write a better one please let me know.
  2059.  
  2060. -Greg
  2061.  
  2062. Date: 13 Nov 91 13:18:00 PST
  2063. From: cvetp035@csupomona.edu ()
  2064. Subject: Compiling Radiance on RS6000
  2065. To: gjward@Csa2.lbl.gov (gjward)
  2066.  
  2067. Greg, thanks for forwarding the message from Marc Andreessen about
  2068. compiling Radiance on RS6000. I've encountered serveral problems
  2069. following his instructions, and my email doesn't seem to get through
  2070. to him. I've included the email below.
  2071.  
  2072. Hi Marc, Greg forwarded the message you sent him on how to compile
  2073. Radiance 1.4 on the RS6000 running AIX 3.1. I followed your advice,
  2074. but I ran into some problems. First, the compiler gave warnings about
  2075. the macro fabs being redefined. I don't think this is serious. Then
  2076. during the linking of psign, pvalue, pcompos, colorscale, prot, and
  2077. pflip, the compiler complained that .logb, .scalb, and .finite were
  2078. unresolved variables. Thus those programs were not made. Could you 
  2079. help me out? Thanks.
  2080.  
  2081. Jack
  2082. cvetp035@csupomona.edu
  2083.  
  2084. PS, should I send questions about Radiance to ray@lbl.gov instead of
  2085. directly to you?
  2086.  
  2087. Date: Mon, 18 Nov 91 09:40:39 +0100
  2088. From: greg (Greg Ward)
  2089. To: cvetp035@csupomona.edu
  2090. Subject: Re:  Compiling Radiance on RS6000
  2091.  
  2092. Hi Jack,
  2093.  
  2094. I'm afraid that I know next to nothing about the IBM RS/6000.  Perhaps
  2095. you are not linking to all the necessary libraries.  I suspect that you
  2096. should add -lm to the compilation of those programs.  On most Unix 
  2097. implementations it is unecessary, but on the IBM, who knows?
  2098.  
  2099. -Greg
  2100.  
  2101. Date: Mon, 18 Nov 91 10:19:56 +0100
  2102. From: greg (Greg Ward)
  2103. To: csw22@seq1.keele.ac.uk
  2104. Subject: Re: compile problems
  2105.  
  2106. On some C compilers, there should be a space between the -L option and
  2107. its argument.  Try changing the -L../lib lines in the Makefiles to
  2108. -L ../lib and see what happens.  Also, did you install the library in
  2109. the src/common subdirectory first?  Makeall does this automatically, at
  2110. least it should.
  2111.  
  2112. -Greg
  2113.  
  2114. =============================================================
  2115. NIGHTTIME    Nighttime renderings
  2116.  
  2117. From: Alexander Keith Barber <barber@ravl.rice.edu>
  2118. Subject: night time rendering; mailing list
  2119. To: greg@hobbes.lbl.gov
  2120. Date: Fri, 15 Nov 91 3:43:28 CST
  2121.  
  2122. Greg-
  2123.  
  2124. Dwayne Fontenot and I have been using Radiance here at Rice U for the past few
  2125. weeks, and it is exactly what we've been looking for.  Dwayne works here at 
  2126. RAVL - the Rice Advanced Visualizaion Lab - and I'm a junior architecture
  2127. major.  We've been using the Radiance program to render projects that I've
  2128. rendered in IBM's AES modeler.  Radiance beats everything else by far for
  2129. interior views! The raytracer in AES is powerful, but the setup to get a
  2130. photorealistic rendered image is a pain in a the ass and then some.  I still
  2131. haven't produced any ray-traced images that look like I want them to.  There
  2132. is RayShadev.4, a great program, but it "just" rayshades; trying to render an
  2133. image with natural light or with an interior view from external sources of
  2134. light is not what RayShade was written for.  Now that we have Radiance to 
  2135. play with, producing images of buildings that I or anyone else has designed
  2136. is going to be a lot easier.
  2137.  
  2138. I wanted to ask you about using Radiance with NIGHT TIME images.  That is, we
  2139. would like to try to render at night using the moon for a light source, along
  2140. with any artificial lights that a particular building would need.  I recently
  2141. saw an issue of the French architecture magazine "L'architecure d'Aujourd'hui"
  2142. - today's architecture - that had a lengthly special on night and light.
  2143. There were pictures from old black and white films, there were shots of
  2144. Notre-Dame in Paris lit by different schemes designed by local and inter-
  2145. national firms, there were free-form projects throwing light around a pitch
  2146. black setting.  All of this got me very interested in reproding this kind of
  2147. setting in Radiance.  I would LOVE to render my last project from an exterior
  2148. and interior point of view at night; it would be great to see them.  We 
  2149. would like to know, therefore, how we should set up this kind of scene in
  2150. Radiance.  Any help you can give would be great.  
  2151.  
  2152. The other part of my subject is the mailing list.  I would just like to be
  2153. added to the list of users of Radiance and receive any info you send out to
  2154. them.  My physical mailing address here at school is:
  2155.  
  2156.     Alex Barber
  2157.     School of Architecture
  2158.     Rice University
  2159.     6100 S Main
  2160.     Houston, TX 77005
  2161.     
  2162. My home phone is currently 713.795.4402.  I can be emailed at barber@spanish.
  2163. rice.edu.
  2164.  
  2165. I would just like to finish by telling you that there has been nothing like 
  2166. seeing the views in Radiance of my projects, since this is the closest I will
  2167. get to being "built" until I work for a firm someday.  There is nothing like
  2168. the confirmation of your architectural ideas and how you "see" your building
  2169. than having a detailed rendering on the computer that matches your "vision" 
  2170. for that building.  Thank you for writing this program and making it 
  2171. available over the Internet.
  2172.  
  2173. -Alex Barber
  2174.  
  2175. Date: Mon, 18 Nov 91 10:57:17 +0100
  2176. From: greg (Greg Ward)
  2177. To: barber@ravl.rice.edu
  2178. Subject: Re:  night time rendering; mailing list
  2179.  
  2180. Hi Alex,
  2181.  
  2182. Thank you for your kind letter and words of encouragement.  I have added
  2183. your name and Dwayne's to the mailing list and you will get the announcement
  2184. when I release version 2.0 of Radiance later this week.
  2185.  
  2186. Regarding night time scenes in Radiance, you can define the moon like so:
  2187.  
  2188. void light moon_brightness
  2189. 0
  2190. 0
  2191. 3 12 12 12
  2192.  
  2193. moon_brightness source moon
  2194. 0
  2195. 0
  2196. 4 xdir ydir zdir 0.5
  2197.  
  2198. Unfortunately, I have no idea how to calculate the actual location of the
  2199. moon based on time of night and year.  I only know its approximate radiance
  2200. and size.  You will have to figure out the xdir, ydir and zdir values
  2201. yourself (or fake them for your convenience).
  2202.  
  2203. What other information do you need for your night renderings?  Do you need
  2204. to know about light sources?  That is a more complicated topic.  I have
  2205. included some example electric lights in the lib/source/ies subdirectory
  2206. from which you can pick and choose.  If you have a particular light fixture
  2207. in mind, you will need to get an IES data file from the manufacturer and
  2208. translate it using ies2rad, or build up the Radiance input files yourself
  2209. by hand (a little tricky).  You may also use the new 2.0 program lampcolor
  2210. to compute the radiance of diffuse light sources if you just want something
  2211. approximate.
  2212.  
  2213. Let me know where you need further help.
  2214.  
  2215. -Greg
  2216.  
  2217. =============================================================
  2218. SUMANT        Sumant Pattanaik's contributions
  2219.  
  2220. From daemon Thu Nov 14 13:13:35 1991
  2221. To: "(Greg Ward)" <greg@lesosun1.epfl.ch>
  2222. Subject: 
  2223. Date: Thu, 14 Nov 91 17:34:18 +0530
  2224. From: sumant@shakti.ernet.in
  2225. Status: RO
  2226.  
  2227. Dear Greg,
  2228.  
  2229. Its a very long time since I last communicated with U.
  2230. Had some problems. (Occupational hazards U know.)
  2231. Things have not straightened out yet.
  2232.  
  2233. Got some breathing time for last two days.
  2234. Managed to make a bit of progress in that radiosity stuff.
  2235. One version is ready. I think I should release it to the
  2236. Radiance users now. At least if the pressure from user group
  2237. builds up I'll be able to add things to it. Otherwise
  2238. it does not progress at all.
  2239.  
  2240. One small thing. It'll be better if I generate output in
  2241. the radiance output format. All I support now are UTAH RLE format,
  2242. binary (<rgb><rgb>....) and text (<r g b> <r g b>....).
  2243. I am not too sure about radiance output format.
  2244. If U have a write up handy pl mail it to me.
  2245. Or any pointer to the radiance source would do.
  2246.  
  2247. My distribution will have following things:
  2248.     1. previewer ---- A better version of the earlier
  2249.             previewer.
  2250.     2. rad       ---- The radiosity package.
  2251.             It does full-matrix solution.
  2252.             I think I'll also be able to include the progressive
  2253.             solution soon.
  2254.     2. radfilter ---- To convert radiance input data
  2255.             to the input format understood by "rad".
  2256.  
  2257. Earlier I promised to send U the PostScript version of my MonteCarlo
  2258. paper. Sorry that I havenot sent it yet. It is 167K.
  2259. Shall I break it down and send it in pieces ?
  2260.  
  2261. I dont hear much from HOBBES these days. Have U removed
  2262. me from the mailing list ?
  2263. ----
  2264. sumant
  2265. (email : sumant@shakti.ernet.in)
  2266. ------------------------------------------------------------------
  2267. Sumant Narayan Pattanaik
  2268. N.C.S.T.
  2269. Juhu, Bombay 400 049
  2270.  
  2271. From greg Mon Nov 18 10:10:40 1991
  2272. Date: Mon, 18 Nov 91 10:10:40 +0100
  2273. From: greg (Greg Ward)
  2274. To: sumant@shakti.ernet.in
  2275. Subject: Re:  
  2276. Status: RO
  2277.  
  2278. Hello Sumant,
  2279.  
  2280. Of course I haven't removed you from the mailing list!  Maybe I had the
  2281. wrong address, though.  I changed it to sumant@shakti.ernet.in now.  Did you
  2282. get the announcement about test simulations available from hobbes?  I mentioned
  2283. you as a possible contributor.  Did you ever finish your comparison runs?  Do
  2284. you subscribe to the global illumination mailing list?  If not, you should
  2285. write to Paul Heckbert <ph@duticg.tudelft.nl> and tell him I said you should
  2286. be on it.
  2287.  
  2288. I am about to release version 2.0 of Radiance.  If you want to distribute
  2289. your radiosity package from hobbes as well, I would be honored.  I agree
  2290. that having a user base forces you to be a little more thorough...
  2291.  
  2292. As for your request on how to write Radiance pictures, below is a skeletal
  2293. program to write out a floating point picture.  You will need to link to the
  2294. Radiance library, or individually to color.o, resolu.o and header.o.  All
  2295. this will make more sense when you pick up your copy of 2.0 (available both
  2296. from hobbes and from dasun2.epfl.ch <128.178.62.2> by anonymous ftp).  You
  2297. might want to wait a few days, as I plan to make a couple of minor changes
  2298. before announcing it.
  2299.  
  2300. /*-----------------------------------------*/
  2301. #include  <stdio.h>
  2302. #include  "color.h"
  2303. #include  "resolu.h"
  2304.  
  2305. computepicture(xmax, ymax, fp)        /* compute and write picture */
  2306. int  xmax, ymax;        /* image resolution */
  2307. FILE  *fp;            /* output file */
  2308. {
  2309.     COLOR    *scanout;
  2310.     int    y;
  2311.     register int    x;
  2312.                 /* put format and resolution */
  2313.     fputformat(COLRFMT, fp);
  2314.     putc('\n', fp);
  2315.     fprtresolu(xmax, ymax, fp);
  2316.                         /* allocate scanline */
  2317.     scanout = (COLOR *)malloc(xmax*sizeof(COLOR));
  2318.     if (scanout == NULL)
  2319.         quiterr("out of memory");
  2320.                         /* produce image */
  2321.     for (y = ymax-1; y >= 0; y--) {
  2322.                         /* compute this scanline */
  2323.         computscan(scanout, xmax, y);
  2324.                         /* write it out */
  2325.         if (fwritescan(scanout, xmax, fp) < 0)
  2326.             quiterr("error writing Radiance picture");
  2327.     }
  2328.                         /* clean up */
  2329.     free((char *)scanout);
  2330.     if (fclose(fp) < 0)
  2331.         quiterr("error closing Radiance picture");
  2332. }
  2333. /*------------------------------------*/
  2334.  
  2335. Please do send me your paper, either whole or in pieces.  Thanks!
  2336.  
  2337. -Greg
  2338.  
  2339. ====================================================================
  2340. COMPILE        Compile problems relating to X11 and malloc.c
  2341.  
  2342. From: dirty@engin.umich.edu (Cameron Javad Esfahani)
  2343. Date: Fri, 22 Nov 91 16:27:39 EST
  2344. To: GJWard@Csa2.lbl.gov
  2345. Subject: How to get Radiance to work with X11
  2346.  
  2347. Hello,
  2348.   In the makeall script, it asks you whether you
  2349. have support for X10.  If you answer no, and insert
  2350. x11 in the "special" commandline arguments, I am getting
  2351. a large number of errors.  If I answer yes, I get a few
  2352. errors.  So my question is, if we have X11R4, what should
  2353. I do to get it run under that?  Do you know if the errors
  2354. I am getting when I say yes when asked if I have support
  2355. for X10 are just local errors?  Thank you for any information
  2356. you can give me.
  2357.  
  2358. ----------------------------------------------------------------------------
  2359. Cameron Esfahani            What can we do?
  2360. dirty@engin.umich.edu            We can go to the center of darkness.
  2361. VizLab, USENET, Macintosh,        Where's that?
  2362. X-windows CAEN Support            New Jersey.
  2363.  
  2364. From greg Mon Nov 25 10:30:14 1991
  2365. Date: Mon, 25 Nov 91 10:30:08 +0100
  2366. From: greg (Greg Ward)
  2367. To: dirty@engin.umich.edu
  2368. Subject: Re:  How to get Radiance to work with X11
  2369. Status: RO
  2370.  
  2371. I'm sorry for the confusion.  Just answer "no" to the X10 question,
  2372. makeall makes the programs for X11 by default.  I should have made
  2373. this more clear.
  2374.  
  2375. -Greg
  2376.  
  2377. Date: Mon, 25 Nov 91 05:05:28 -0500
  2378. From: ugli <dirty@engin.umich.edu>
  2379. To: "(Greg Ward)" <greg@lesosun1.epfl.ch>
  2380. Subject: Re: How to get Radiance to work with X11
  2381. Status: RO
  2382.  
  2383. Actually, i tried that right after I mailed you.  I feel a little sheepish
  2384. now.  I do wonder if there is better documentation other than the 
  2385. quick tutorial and the man pages.  I haven't looked at the macintosh
  2386. document.  Does this tell me what I need to know about Radiance?
  2387.  
  2388. Thanks
  2389.  
  2390. -------------------------------------------------------------------------------
  2391. Cameron Esfahani            What can we do?
  2392. dirty@engin.umich.edu            We can go to the center of darkness.
  2393. VizLab, USENET, Macintosh,        Where's that?
  2394. X-windows CAEN Support            New Jersey.
  2395.  
  2396. From: apian@ise.fhg.de (Peter Apian-Bennewitz)
  2397. Subject: rpict fails on hp720
  2398. To: gjward@Csa2.lbl.gov (Greg Ward)
  2399. Date: Sat, 7 Dec 91 14:35:42 MEZ
  2400.  
  2401. Dear Greg,
  2402.  
  2403. rpict fails with bus error in src/common/readfargs.c line 80 .
  2404.  
  2405. Workaround: ln -s ../common/bmalloc.c malloc.c  in the rt directory.
  2406.  
  2407. Hm. I guess you introduced you own malloc routines to speed things 
  2408. up. Please excuse my ignorance, but does it pay ?
  2409.  
  2410. Peter
  2411.  
  2412. Date: Sat, 7 Dec 91 08:57:22 PST
  2413. From: greg (Gregory J. Ward)
  2414. To: apian@ise.fhg.de
  2415. Subject: Re:  rpict fails on hp720
  2416.  
  2417. Hi Peter,
  2418.  
  2419. I'm really surprised that my malloc is not working on your HP.  Do you know
  2420. what the alignment size is?  Do you know what the size of a double is?  Can
  2421. you run the following program on your machine for me?
  2422.  
  2423. main()
  2424. {
  2425.     printf("%d\n", sizeof(double));
  2426. }
  2427.  
  2428. If the result is more than 8, then I might know what the problem is.  
  2429. Otherwise, I can only suppose that there is a bug unless you forgot to
  2430. specify an HP when you ran makeall and the define -DALIGN=double did not
  2431. get into the rmake command.  Just to check, are you running make manually
  2432. instead of rmake?  This might explain why the correct definitions are not
  2433. going in for your machine.
  2434.  
  2435. -Greg
  2436.  
  2437. Date: Sat, 7 Dec 91 09:18:37 PST
  2438. From: greg (Gregory J. Ward)
  2439. To: apian@ise.fhg.de
  2440. Subject: Re:  rpict fails on hp720
  2441.  
  2442. Hi Peter,
  2443.  
  2444. In reply to your question about malloc, I wrote my own both for
  2445. speed and storage efficiency reasons.  As it turns out, there are some
  2446. very good and some very bad implementations of malloc on the systems
  2447. out there.  I don't claim that mine is the best, or even that it's much
  2448. better than average.  It just performs well with my programs, which
  2449. differentiate between memory that might be freed later and memory that
  2450. will be kept for the life of the process (malloc vs. bmalloc).  It also
  2451. avoids some of the computational overhead in some of the more primitive
  2452. malloc's and some of the unreasonable storage overhead in others.  Last
  2453. time I checked, BSD 4.3 was using a version of malloc that for requests
  2454. just near half the system page size (4k requests on the Sun) ended up
  2455. using twice the system page size.  That's a memory utilization of 25%!
  2456.  
  2457. On average, my version of malloc gets a memory utilization of 75%,
  2458. which isn't wonderful, but it makes up for this in raw speed, processing
  2459. memory requests and free's and realloc calls faster than any other
  2460. malloc that I know of.  And the alternative call, bmalloc, is not
  2461. only fast, but it gets nearly 100% memory utilization, limited only by
  2462. the alignment size of the machine.
  2463.  
  2464. The best malloc I've seen is the one currently used by Sun, which
  2465. is reasonably fast while providing very good memory utilization.
  2466. Best of all, the Sun implementation coalesces memory as it is freed,
  2467. something that is pretty difficult to do.  I only recently added this
  2468. capability to my malloc routines, and it doesn't work nearly as well
  2469. as Sun's code.  Unfortunately, the Sun routines are very complicated
  2470. and not everybody uses their algorithm so I figure I'm better off
  2471. being conservative on other people's machines.
  2472.  
  2473. -Greg
  2474.  
  2475. From: Peter Apian-Bennewitz <apian@ise.fhg.de>
  2476. Subject: Re:  rpict fails on hp720
  2477. To: "Gregory J. Ward" <greg@hobbes.lbl.gov>
  2478. Date: Sun, 8 Dec 91 15:08:02 MEZ
  2479.  
  2480. Dear Greg,
  2481.  
  2482. > what the alignment size is?  Do you know what the size of a double is?  Can
  2483. > you run the following program on your machine for me?
  2484.  
  2485. here's the output: (looks pretty normal to me)
  2486.  
  2487.    datatype                    bytes
  2488. Size of Integer              : 4
  2489. Size of short Integer        : 2
  2490. Size of long Integer         : 4
  2491. Size of unsigned Integer     : 4
  2492. Size of long unsigned Integer: 4
  2493. Size of char                 : 1
  2494. Size of float                : 4
  2495. Size of double               : 8
  2496.  
  2497.  
  2498. I haven't checked the bus error in detail, however when using xdb
  2499. its possible to check the contents of the variable without error.
  2500. a read acces seems to work !??!?!?! 
  2501. Currently its all WIHIH to me (WhatInHellIsHappening).
  2502. When running, the programs complains about "exp: range error". ??
  2503.  
  2504. Yet another question: The Hp720 b/w flavour comes with X11 visual
  2505. type "GrayScale", same thing as "PseudoColor" (8 planes), but b/w.
  2506. That's the only visual the server supports.
  2507. I'd be more than happy to write an add-on, but before jumping into
  2508. source code, how much work would that be (beside the X11 stuff).
  2509.  
  2510. Thanks a lot for the malloc explanation, it looked like an xtra
  2511. to me, but your program does use incredible small amounts of memory
  2512. when running, so it's probably a good thing.
  2513.  
  2514. Peter
  2515. -- 
  2516.  
  2517. Date: Sun, 8 Dec 91 18:30:45 PST
  2518. From: greg (Gregory J. Ward)
  2519. To: apian@ise.fhg.de
  2520. Subject: Re:  rpict fails on hp720
  2521.  
  2522. Hi Peter,
  2523.  
  2524. The only thing I can think of is that you compiled with make instead of
  2525. rmake or makeall and the wrong defines were used on malloc.c.  Did you
  2526. check this possibility?  You can remove malloc.o and run rmake in the
  2527. rt subdirectory and you should get a cc line with -DALIGN=double in it.
  2528. (Don't forget to relink malloc.c instead of bmalloc.c.)  Were you serious
  2529. about Radiance not using much memory?  Obviously, you haven't gotten to
  2530. any of the larger models.
  2531.  
  2532. What model were you rendering when you got the exp range error?  This
  2533. message often shows up when there is an underflow condition, something
  2534. we would all like to ignore (eg. exp(-500) = 0), but some math
  2535. libraries won't let us.  Were you using a model with a call to exp()
  2536. in a library file, or were you using gensky?  It could have come from
  2537. that.  If it is coming from internal underflows of exp(), I would like
  2538. to know about it so I could avoid this message in the future.
  2539.  
  2540. With regards to the GrayScale visual, I should be checking for that in
  2541. x11.c I suppose, but I just assumed that all grayscale servers would
  2542. accept the PseudoColor visual type.  Rview and ximage should work with
  2543. greyscale displays using the -b options of each.  Unless you add in a
  2544. test to allow for it, though, both programs will insist on getting
  2545. PseudoColor visuals.  Personally, I think the way X11 handles the various
  2546. display possibilities sucks.  Testing for every possible configuration
  2547. is a programming nightmare.  Since I'm not exactly sure how a grayscale
  2548. monitor is supposed to map its values, I don't know if you would have
  2549. to add anything besides the one test to rt/x11.c and px/x11raster.c.
  2550.  
  2551. -Greg
  2552.  
  2553. =====================================================================
  2554. OPENWINDOWS
  2555.  
  2556. Date: Fri, 11 Oct 91 16:03:28 Z
  2557. From: Environmental Design Unit <edu@leicester-poly.ac.uk>
  2558. To: greg@lesosun1.epfl.ch
  2559. Subject: RADIANCE
  2560.  
  2561. Greg,
  2562.  
  2563. I've got v2.0 up and running, no trouble at all thanks
  2564. to your installation script.  I haven't had the time to
  2565. do anything interesting with it yet - other (thermal)
  2566. work has taken priority - but I hope to start a programme
  2567. of daylighting simulation work in the near future.
  2568. In the meantime could you advise on the best way to get hold
  2569. of the PLINK translator.  My supervisor, Kevin Lomas, spoke to
  2570. Raphael Compagnon about this at the PLEA conference.
  2571. Perhaps we should also get hold of SUPERLITE and include it
  2572. in any validation work we may do.  Any ideas?
  2573.  
  2574. The DF contour in RADIANCE v2.0 is a great help.  However,
  2575. for direct visual comparison of different cases, fixing of
  2576. the contour levels, at say 1, 2, 4, 10, 20, 40%, would make
  2577. evaluation much easier.  I think i've figured out how the
  2578. routine works, but I can't see how the levels could be fixed.
  2579.  
  2580. On a more trivial note, users of OpenWindows may find some
  2581. bindings helpful.  So far, i've bound *.pic, *.rad & *.oct
  2582. to their own icons.  Application ximage is bound to *.pic
  2583. and getinfo to *.oct (which of course appears in the console).
  2584. Simple stuff, but it does speed things up being able to
  2585. use the file manager to browse through pic files and 'get the info'
  2586. on oct files.  You may wish to pass this on to Sun - SunOS 4.1.1
  2587. users of RADIANCE.
  2588.  
  2589. Hope you enjoyed your vist to the UK.
  2590.  
  2591. -John
  2592.  
  2593. Date: Mon, 14 Oct 91 12:18:30 +0100
  2594. From: greg (Greg Ward)
  2595. To: edu@leicester-poly.ac.uk
  2596. Subject: Re:  RADIANCE
  2597.  
  2598. Hi John,
  2599.  
  2600. I did have a pleasant visit to the UK.  I'm sorry again that our schedules
  2601. didn't work well together.  I have forwarded your request for a copy of
  2602. PLINK and Superlite to Raphael, and he should send you one shortly.  I
  2603. forget whether you need to go through official channels or if we can just
  2604. send you a copy.  It would be nice to include it in your validation studies.
  2605.  
  2606. I am glad you have had some luck with the dayfact script.  I have been rather
  2607. disappointed in the output I have gotten, which seems to be of low quality
  2608. due to the abnormal use of pfilt to enlarge a tiny image.  Anyway, I think
  2609. you are right that control of the output is critical for comparisons, so
  2610. here is a fixed-up version of the script that always sets the maximum
  2611. value to 100%.  You can alter this to whatever you like with the -s option
  2612. (see the falsecolor manual page), and the -n option will determine how
  2613. many contours you will get.
  2614.  
  2615. I know zip-diddley about OpenWindows, but I will put your suggestions in
  2616. the next digest.  Thanks!
  2617.  
  2618. -Greg
  2619.  
  2620. Date: Mon, 21 Oct 91 15:19:00 Z
  2621. From: Environmental Design Unit <edu@leicester-poly.ac.uk>
  2622. To: greg@lesosun1.epfl.ch
  2623. Subject: RADIANCE and OpenWindows
  2624.  
  2625. Hi Greg,
  2626.  
  2627. Here's the trivial mods (accelerators?) to the OpenWindows filemanager.
  2628.  
  2629. The aesthetics of the icons are questionable!
  2630.  
  2631. Yours,
  2632.  
  2633. -John
  2634.  
  2635. Using RADIANCE in OpenWindows                            21 Oct 1991
  2636. -----------------------------
  2637.  
  2638. Modifications to filemanager bindings
  2639.  
  2640. Edit the file rad.filetype giving the applications "ximage" and
  2641. "getinfo" the correct path name from root.  Do the same for the icons
  2642. pic, rad and oct.  Copy rad.filetype to your home directory and put the
  2643. icons in your icon directory.  Goto your home directory and type the
  2644. command:
  2645.  
  2646.       cat .filetype rad.filetype >> .filetype
  2647.  
  2648. Then remove rad.filetype.
  2649.  
  2650. Quit the filemanager (if you have one running) and restart it.  All
  2651. *.pic, *.rad and *.oct files will be identified by their own icon.
  2652. Double clicking (SELECTING) with the left mouse button on a *.pic icon
  2653. in the filemanager will execute "ximage" and put that picture up on the
  2654. screen.  The same on an *.oct icon will execute "getinfo", writing the
  2655. output to the console.  To all *.rad files the print script "pr"
  2656. (paging) has been added.
  2657.  
  2658. You can change the colours by re-setting rgb values (5th argument on
  2659. each line).
  2660.  
  2661. (You can assign whatever applications, print-scripts and icons to a
  2662. file which, by default appears as a "text" file in the filemanager.
  2663. Giving executables new icons may cause the icon to almost fade-out,
  2664. depending on the colour set, when selected - instead of changing to
  2665. black like it should.  This appears to be a bug, originating deep in
  2666. the system software.)
  2667.  
  2668.  
  2669. -John Mardaljevic     e-mail:   edu@uk.ac.leicp
  2670.  
  2671. oct.icon   644    152     12        1115  5100547142   5533 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2672.  */
  2673.     0x3FFF,0xFFFC,
  2674.     0x2000,0x0004,
  2675.     0x2000,0x0004,
  2676.     0x2000,0x0004,
  2677.     0x2000,0x0204,
  2678.     0x2000,0x0604,
  2679.     0x21E1,0xCF04,
  2680.     0x2332,0x6604,
  2681.     0x2336,0x6604,
  2682.     0x2336,0x0604,
  2683.     0x2336,0x0684,
  2684.     0x2337,0x2704,
  2685.     0x21E3,0xC304,
  2686.     0x2000,0x0004,
  2687.     0x2000,0x0004,
  2688.     0x2000,0x00C4,
  2689.     0x2000,0x0F04,
  2690.     0x2000,0x7004,
  2691.     0x2000,0xA004,
  2692.     0x2001,0x1004,
  2693.     0x2002,0x0C04,
  2694.     0x2004,0x0204,
  2695.     0x2FF8,0x0004,
  2696.     0x2004,0x00C4,
  2697.     0x2004,0x0704,
  2698.     0x2002,0x1C04,
  2699.     0x2001,0x6204,
  2700.     0x2000,0x8184,
  2701.     0x2000,0x8044,
  2702.     0x2000,0x4004,
  2703.     0x2000,0x0004,
  2704.     0x3FFF,0xFFFC
  2705.  
  2706. files will be identified by their own icon.  Double clicking (SELECTING) with the left mouse
  2707. button on a *.pic icon in the filemanager will execute "ximage" and put that picture up on the
  2708. screen.  The same on an *.oct icon will execute "getinfo", writing the output to the console.
  2709. To all *.rad files the print script "pr" (paging) has been added.
  2710.  
  2711. You can change the colours by re-setting rgb values (5th argument on each line).
  2712.  
  2713. (Yopic.icon   644    152     12        1115  5100547142   5521 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2714.  */
  2715.     0x3FFF,0xFFFC,
  2716.     0x2000,0x0004,
  2717.     0x2000,0x0004,
  2718.     0x2FE3,0xC3D4,
  2719.     0x2671,0x8634,
  2720.     0x2631,0x8C14,
  2721.     0x2631,0x8C14,
  2722.     0x2631,0x8C04,
  2723.     0x27E1,0x8C04,
  2724.     0x2601,0x8C04,
  2725.     0x2601,0x8C14,
  2726.     0x2601,0x8634,
  2727.     0x2F03,0xC3E4,
  2728.     0x2000,0x0004,
  2729.     0x2000,0x0004,
  2730.     0x2000,0x0004,
  2731.     0x2000,0x0004,
  2732.     0x2000,0x0004,
  2733.     0x2007,0xF004,
  2734.     0x201F,0xFC04,
  2735.     0x207F,0xFF04,
  2736.     0x20FF,0xFF84,
  2737.     0x20FF,0xFF84,
  2738.     0x20FF,0xFF84,
  2739.     0x207F,0xFF04,
  2740.     0x201F,0xFC04,
  2741.     0x2007,0xF004,
  2742.     0x2000,0x0004,
  2743.     0x2000,0x0004,
  2744.     0x2000,0x0004,
  2745.     0x2000,0x0004,
  2746.     0x3FFF,0xFFFC
  2747.  
  2748. files will be identified by their own icon.  Double clicking (SELECTING) with the left mouse
  2749. button on a *.pic icon in the filemanager will execute "ximage" and put that picture up on the
  2750. screen.  The same on an *.oct icon will execute "getinfo", writing the output to the console.
  2751. To all *.rad files the print script "pr" (paging) has been added.
  2752.  
  2753. You can change the colours by re-setting rgb values (5th argument on each line).
  2754.  
  2755. (Yorad.filetype   644    152     12         406  5100554462   6372 *.pic,,/CORRECT_PATH_NAME/bin/ximage $FILE,/CORRECT_PATH_NAME/icons/pic.icon,255 215 0,,53,,
  2756. *.rad,,,/CORRECT_PATH_NAME/icons/rad.icon,219 112 147,pr $FILE | lpr,53,,
  2757. *.oct,,/CORRECT_PATH_NAME/bin/getinfo $FILE,/CORRECT_PATH_NAME/icons/oct.icon,155 200 90,,53,,
  2758. 0x8634,
  2759.     0x2F03,0xC3E4,
  2760.     0x2000,0x0004,
  2761.     0x2000,0x0004,
  2762.     0x2000,0x0004,
  2763.     0x2000,0x0004,
  2764.     0x2000,0x0004,
  2765.     0x2007,0xF004,
  2766.     0x201F,0xFC04,
  2767.     0x207F,0xFF04,
  2768.     0x20FF,0xFF84,
  2769.     0x20FF,0xFF84,
  2770.     0x20FF,0xFF84,
  2771.     0x207F,0xFF04,
  2772.     0x201F,0xFC04,
  2773.     0x2007,0xF004,
  2774.     0rad.icon   644    152     12        1115  5100547142   5514 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2775.  */
  2776.     0x3FFF,0xFFFC,
  2777.     0x2000,0x0004,
  2778.     0x2000,0x0004,
  2779.     0x2000,0x0384,
  2780.     0x2000,0x0184,
  2781.     0x2000,0x0184,
  2782.     0x2377,0x8F84,
  2783.     0x21BC,0xD984,
  2784.     0x2180,0xD984,
  2785.     0x2187,0xD984,
  2786.     0x218C,0xD984,
  2787.     0x218C,0xD984,
  2788.     0x23C7,0x6EC4,
  2789.     0x2000,0x0004,
  2790.     0x2FFF,0xFFF4,
  2791.     0x2800,0x0014,
  2792.     0x2800,0x0014,
  2793.     0x2800,0x0014,
  2794.     0x2800,0x0014,
  2795.     0x2FFF,0xFFF4,
  2796.     0x2000,0x0004,
  2797.     0x2FFE,0x0E04,
  2798.     0x2802,0x3184,
  2799.     0x2802,0x2084,
  2800.     0x2802,0x4044,
  2801.     0x2802,0x4044,
  2802.     0x2802,0x4044,
  2803.     0x2802,0x2084,
  2804.     0x2802,0x3184,
  2805.     0x2FFE,0x0E04,
  2806.     0x2000,0x0004,
  2807.     0x3FFF,0xFFFC
  2808.  
  2809.     0x3FFF,0xFFFC,
  2810.     0x2000,0x0004,
  2811.     0x2000,0x0004,
  2812.     0x2000,0x0384,
  2813.     0x2000,0x0184,
  2814.     0x2000,0x0184,
  2815.     0x2377,0x8F84,
  2816.     0x21BC,0xD984,
  2817.     0x2180,0xD984,
  2818.     0x2187,0xD984,
  2819.     0x218C,0xD984,
  2820.     0x218C,0xD984,
  2821.     0x23C7,0x6EC4,
  2822.     0x2000,0x0004,
  2823.     0x2FFF,0xFFF4,
  2824.     0x2800,0x0014,
  2825.     0x2800,0x0014,
  2826.     0x2800,0x0014,
  2827.     0x2800,0x0014,
  2828.     0x2FFF,0xFFF4,
  2829.     0x2000,0x0004,
  2830.     0x2FFE,0x0E04,
  2831.     0x2802,0x3184,
  2832.     0x2802,0x2084,
  2833.     0x2802,0x4044,
  2834.     0x2802,0x4044,
  2835.     0x2802,0x4044,
  2836.     0Using RADIANCE in OpenWindows                            21 Oct 1991
  2837. -----------------------------
  2838.  
  2839.  
  2840. Modifications to filemanager bindings
  2841.  
  2842.  
  2843.  
  2844. Edit the file rad.filetype giving the applications "ximage" and "getinfo" the correct
  2845. path name from root.  Do the same for the icons pic, rad and oct.
  2846. Copy rad.filetype to your home directory and put the icons in your icon directory.
  2847. Goto your home directory and type the command:
  2848.  
  2849.       cat .filetype rad.filetype >> .filetype
  2850.  
  2851. Then remove rad.filetype.
  2852.  
  2853. Quit the filemanager (if you have one running) and restart it.  All *.pic, *.rad and *.oct
  2854. files will be identified by their own icon.  Double clicking (SELECTING) with the left mouse
  2855. button on a *.pic icon in the filemanager will execute "ximage" and put that picture up on the
  2856. screen.  The same on an *.oct icon will execute "getinfo", writing the output to the console.
  2857. To all *.rad files the print script "pr" (paging) has been added.
  2858.  
  2859. You can change the colours by re-setting rgb values (5th argument on each line).
  2860.  
  2861. (You can assign whatever applications, print-scripts and icons to a file which, by default
  2862. appears as a "text" file in the filemanager.  Giving executables new icons may cause the
  2863. icon to almost fade-out, depending on the colour set, when selected - instead of changing
  2864. to black like it should.  This appears to be a bug, originating deep in the system software.)
  2865.  
  2866.  
  2867. -John Mardaljevic     e-mail:   edu@uk.ac.leicp
  2868.  
  2869. oct.icon   644    152     12        1115  5100547142   5533 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2870.  */
  2871.     0x3FFF,0xFFFC,
  2872.     0x2000,0x0004,
  2873.     0x2000,0x0004,
  2874.     0x2000,0x0004,
  2875.     0x2000,0x0204,
  2876.     0x2000,0x0604,
  2877.     0x21E1,0xCF04,
  2878.     0x2332,0x6604,
  2879.     0x2336,0x6604,
  2880.     0x2336,0x0604,
  2881.     0x2336,0x0684,
  2882.     0x2337,0x2704,
  2883.     0x21E3,0xC304,
  2884.     0x2000,0x0004,
  2885.     0x2000,0x0004,
  2886.     0x2000,0x00C4,
  2887.     0x2000,0x0F04,
  2888.     0x2000,0x7004,
  2889.     0x2000,0xA004,
  2890.     0x2001,0x1004,
  2891.     0x2002,0x0C04,
  2892.     0x2004,0x0204,
  2893.     0x2FF8,0x0004,
  2894.     0x2004,0x00C4,
  2895.     0x2004,0x0704,
  2896.     0x2002,0x1C04,
  2897.     0x2001,0x6204,
  2898.     0x2000,0x8184,
  2899.     0x2000,0x8044,
  2900.     0x2000,0x4004,
  2901.     0x2000,0x0004,
  2902.     0x3FFF,0xFFFC
  2903.  
  2904. files will be identified by their own icon.  Double clicking (SELECTING) with the left mouse
  2905. button on a *.pic icon in the filemanager will execute "ximage" and put that picture up on the
  2906. screen.  The same on an *.oct icon will execute "getinfo", writing the output to the console.
  2907. To all *.rad files the print script "pr" (paging) has been added.
  2908.  
  2909. You can change the colours by re-setting rgb values (5th argument on each line).
  2910.  
  2911. (Yopic.icon   644    152     12        1115  5100547142   5521 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2912.  */
  2913.     0x3FFF,0xFFFC,
  2914.     0x2000,0x0004,
  2915.     0x2000,0x0004,
  2916.     0x2FE3,0xC3D4,
  2917.     0x2671,0x8634,
  2918.     0x2631,0x8C14,
  2919.     0x2631,0x8C14,
  2920.     0x2631,0x8C04,
  2921.     0x27E1,0x8C04,
  2922.     0x2601,0x8C04,
  2923.     0x2601,0x8C14,
  2924.     0x2601,0x8634,
  2925.     0x2F03,0xC3E4,
  2926.     0x2000,0x0004,
  2927.     0x2000,0x0004,
  2928.     0x2000,0x0004,
  2929.     0x2000,0x0004,
  2930.     0x2000,0x0004,
  2931.     0x2007,0xF004,
  2932.     0x201F,0xFC04,
  2933.     0x207F,0xFF04,
  2934.     0x20FF,0xFF84,
  2935.     0x20FF,0xFF84,
  2936.     0x20FF,0xFF84,
  2937.     0x207F,0xFF04,
  2938.     0x201F,0xFC04,
  2939.     0x2007,0xF004,
  2940.     0x2000,0x0004,
  2941.     0x2000,0x0004,
  2942.     0x2000,0x0004,
  2943.     0x2000,0x0004,
  2944.     0x3FFF,0xFFFC
  2945.  
  2946. files will be identified by their own icon.  Double clicking (SELECTING) with the left mouse
  2947. button on a *.pic icon in the filemanager will execute "ximage" and put that picture up on the
  2948. screen.  The same on an *.oct icon will execute "getinfo", writing the output to the console.
  2949. To all *.rad files the print script "pr" (paging) has been added.
  2950.  
  2951. You can change the colours by re-setting rgb values (5th argument on each line).
  2952.  
  2953. (Yorad.filetype   644    152     12         406  5100554462   6372 *.pic,,/CORRECT_PATH_NAME/bin/ximage $FILE,/CORRECT_PATH_NAME/icons/pic.icon,255 215 0,,53,,
  2954. *.rad,,,/CORRECT_PATH_NAME/icons/rad.icon,219 112 147,pr $FILE | lpr,53,,
  2955. *.oct,,/CORRECT_PATH_NAME/bin/getinfo $FILE,/CORRECT_PATH_NAME/icons/oct.icon,155 200 90,,53,,
  2956. 0x8634,
  2957.     0x2F03,0xC3E4,
  2958.     0x2000,0x0004,
  2959.     0x2000,0x0004,
  2960.     0x2000,0x0004,
  2961.     0x2000,0x0004,
  2962.     0x2000,0x0004,
  2963.     0x2007,0xF004,
  2964.     0x201F,0xFC04,
  2965.     0x207F,0xFF04,
  2966.     0x20FF,0xFF84,
  2967.     0x20FF,0xFF84,
  2968.     0x20FF,0xFF84,
  2969.     0x207F,0xFF04,
  2970.     0x201F,0xFC04,
  2971.     0x2007,0xF004,
  2972.     0rad.icon   644    152     12        1115  5100547142   5514 /* Format_version=1, Width=32, Height=32, Depth=1, Valid_bits_per_item=16
  2973.  */
  2974.     0x3FFF,0xFFFC,
  2975.     0x2000,0x0004,
  2976.     0x2000,0x0004,
  2977.     0x2000,0x0384,
  2978.     0x2000,0x0184,
  2979.     0x2000,0x0184,
  2980.     0x2377,0x8F84,
  2981.     0x21BC,0xD984,
  2982.     0x2180,0xD984,
  2983.     0x2187,0xD984,
  2984.     0x218C,0xD984,
  2985.     0x218C,0xD984,
  2986.     0x23C7,0x6EC4,
  2987.     0x2000,0x0004,
  2988.     0x2FFF,0xFFF4,
  2989.     0x2800,0x0014,
  2990.     0x2800,0x0014,
  2991.     0x2800,0x0014,
  2992.     0x2800,0x0014,
  2993.     0x2FFF,0xFFF4,
  2994.     0x2000,0x0004,
  2995.     0x2FFE,0x0E04,
  2996.     0x2802,0x3184,
  2997.     0x2802,0x2084,
  2998.     0x2802,0x4044,
  2999.     0x2802,0x4044,
  3000.     0x2802,0x4044,
  3001.     0
  3002.  
  3003.