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

  1. ~s Radiance Digest, v1n3
  2. Hello Radiance users,
  3.  
  4. I am trying to keep caught up with my correspondance better and
  5. redistribute interesting tidbits before they turn to compost.
  6. Here is the latest batch of letters on various topics that seemed
  7. to me to be of general interest.  Once again, I have tried to make
  8. it easier to find what you want by searching for the corresponding key.
  9.  
  10.     INST    Installation of 1.4 and associated problems
  11.     MOLEC    Molecular modeling using Radiance
  12.     PHONG    Phong surface normal interpolation
  13.     INTERN    Radiance internals (image.c)
  14.     PREVW    X11 previewer for Radiance
  15.     SPEC    Spectral distributions curves
  16.     DAYF    Daylight factors and unknown programs
  17.     VISION    Vision-3D modeler for the MacIntosh
  18.  
  19. -Greg
  20.  
  21. =========================================================================
  22. INST    Installation of 1.4 and associated problems
  23.  
  24. Date: Mon, 29 Apr 91 19:37:09 EDT
  25. From: richards@eleceng.ee.queensu.ca (Haydn Richardson)
  26. Subject: Radiance 1.4
  27.  
  28. I was playing with the new cabin model and got hung with the following error. 
  29.  
  30. I ran
  31.     rview -av .01 .01 .01 -o sundev oct/cabin
  32. after building oct/cabin according to the Makefile. 
  33.  
  34. The error message is:
  35.     rview: /images/local/lib/ray/rayinit.cal, line 61: syntax error:
  36.     rview: and(a,b) : if( a, b, a );
  37.     rview:          ^ '=' expected
  38.  
  39. Does this indicate a problem with the function and() in rayinit.cal?
  40. I noticed that and() is defined in my old rayinit.cal as
  41.     and(a,b) = if( a, b, a);
  42.  
  43. I assume there is a trivial fix for this problem but I don't want to risk any
  44. possible interdependencies by substituting my old version.
  45.  
  46. -Haydn Richardson
  47. Queen's University
  48.  
  49. Date: Tue, 30 Apr 91 08:01:22 +0200
  50. From: greg (Greg Ward)
  51. Subject: Re:  Radiance 1.4
  52.  
  53. The new ':' definitions go with the new 1.4 release of Radiance, and you
  54. must recompile the programs for them to work.  If you just want to look
  55. at the cabin model without recompiling, you can set the RAYPATH
  56. environment variable so it searches the location of the old library first,
  57. but you should include the new library location in it as well or it won't
  58. be able to find some of the files needed for the cabin.  I recommend
  59. running makeall to install the new programs.
  60.  
  61. -Greg
  62.  
  63. Date: Tue, 30 Apr 91 11:16:59 EDT
  64. From: richards@eleceng.ee.queensu.ca (Haydn Richardson)
  65. Subject: Re:  Radiance 1.4
  66.  
  67. Actually I did run makeall install and it compiled with minimal errors (all
  68. associated with missing XWindows files as we run in Sunview.) RAYPATH does
  69. include the location of the new library. The Makefile in the cabin directory
  70. complains that plasfunc and metfunc are unknown types. Is there something else
  71. that needs to be done to set up the rayinit.cal definitions?
  72.  
  73. -Haydn
  74.  
  75. Date: Tue, 30 Apr 91 17:34:19 +0200
  76. From: greg (Greg Ward)
  77. Subject: Re:  Radiance 1.4
  78. Status: RO
  79.  
  80. The new version of rview requires X11 to be installed in order to compile
  81. properly.  You must still be running the previous version.  You must
  82. manually modify the Makefile in the ray/src/rt directory to remove the
  83. X11 dependency.  Make the following changes:
  84.  
  85. 37c37
  86. < DOBJS = devtable.o devcomm.o editline.o x11.o x11twind.o \
  87. ---
  88. > DOBJS = devtable.o devcomm.o editline.o \
  89. 41c41
  90. < DLIBS = -lX11
  91. ---
  92. > DLIBS = 
  93.  
  94. You must also remove all mentions of x11 from devtable.c (you might
  95. as well take out x10 while you're at it) and reset dev_default[] to "sun".
  96.  
  97. I guess I should have had makeall complain a bit more on failure!
  98.  
  99. -Greg
  100.  
  101. Date: Tue, 30 Apr 91 17:12:06 EDT
  102. From: richards@vision.ee.queensu.ca (Haydn Richardson)
  103. Subject: Continued problems installing Radiance 1.4
  104.  
  105. I removed the x10 and x11 dependencies from the rt, util, and px Makefiles.
  106. However, I still have the following problems.
  107.    glareval.c line 480 syntax error near (
  108. which refers to the following statement.
  109. #ifdef ALIGN
  110.     scansize = scansize+(sizeof(ALIGN)-1)) & ~(sizeof(ALIGN)-1);
  111. #endif
  112.  
  113. and my compiled version of rview can no longer find sundev. An old version of
  114. sundev is in my bin and my bin is in RAYPATH. 
  115.  
  116. I appreciate your effort in assisting us through our growing pains.
  117.  
  118. -Haydn
  119.  
  120. Date: Wed, 1 May 91 08:31:59 +0200
  121. From: greg (Greg Ward)
  122. Subject: Re:  Continued problems installing Radiance 1.4
  123.  
  124. Hi Haydn,
  125.  
  126. The syntax error is an extra parenthesis.  I never tested this particular
  127. segment with ALIGN defined, so just s/-1))/-1)/ in the problem statement.
  128. Sorry about that.  Guess I should update the distribution (already).
  129.  
  130. The name sundev has been changed to just plain old "sun", so you just
  131. need to use -o sun instead of -o sundev, although in your case you could
  132. make sun the default (dev_default in devtable.c) and not specify a -o
  133. option at all.
  134.  
  135. -Greg
  136.  
  137. Date: Sat, 4 May 91 18:15:21 NZT
  138. From: pdbourke%ccu1.aukuni.ac.nz@csa1.lbl.gov
  139. Subject: Radiance and TAR message
  140.  
  141. Loaded RADIANCE this evening but when I tar it I get the following:
  142.  
  143. /dept/arc/pdbourke >tar xfo Radiance1R4.tar
  144. tar: ray/src/util/glareval.c - cannot create
  145.  
  146. I thought I may have a corrupt copy from the FTP so redid it, same result!
  147.  
  148. Any suggestions??
  149.  
  150. Date: Mon, 6 May 91 08:31:43 +0200
  151. From: greg (Greg Ward)
  152. Subject: Re:  Radiance and TAR message
  153.  
  154. Oops!  Sorry about that!  Glareval.c is a duplicate that was added at the
  155. end of the tar tape.  Apparrently, this won't work unless you change the
  156. mode of the first extracted file during the extraction and before it gets
  157. to the second one.  You can ignore the error for now, but you may get
  158. a syntax error during compilation of this file later which you can also
  159. ignore.
  160.  
  161. I will repair the distribution and you can try again later if it concerns
  162. you.
  163.  
  164. -Greg
  165.  
  166. =======================================================================
  167. MOLEC    Molecular modeling using Radiance
  168.  
  169. Date: Fri, 26 Apr 91 18:15 EST
  170. From: cristy%ESSUN3%ESVAX@dupont.com
  171. Subject: Radiance
  172.  
  173. I have been looking for a renderer that can do a good job modeling the
  174. area of intra-penetration of two nearly transparent intersecting
  175. spheres.  I am hoping Radiance may solve this problem.  I will be
  176. experimenting with materials and Radiance parameters hoping I can
  177. finally get a good rendering.  If you have any suggestions that would
  178. nudge me in the right direction with Radiance, I would be grateful.
  179.  
  180. I just started with Radiance and I have been having trouble getting a
  181. correct view so I can look at the window directly for the model
  182. described in the tutorial.  The default view as specified in the
  183. tutorial looks at the wall opposite of the window wall.  I tried
  184. different view points and view directions without luck.  One thing that
  185. confuses me is in rview the point retains its original unnormalized
  186. form: 2.25 0.375 1, however, the view direction appears to be normalized
  187. (-0.25 0.125 -0.125 is reported as -0.8 0.408 -0.408).  Is this the
  188. correct behavior?  Do you know the correct view point and view
  189. direction so that the wall with the window appears in the image?
  190.  
  191. Thanks in advance.
  192.  
  193. cristy@dupont.com
  194.  
  195. Date: Mon, 29 Apr 91 11:41:03 +0200
  196. From: greg (Greg Ward)
  197. Subject: Re:  Radiance
  198.  
  199. Dear Jonn,
  200.  
  201. Unfortunately, I do not have a copy of the files used in the tutorial so
  202. I will have to guess at the viewpoint from the input description.  You
  203. can try the following parameters for rview to get a view of the window:
  204.  
  205.     -vp .1 .1 .75 -vd 1 .8 0 -vh 60 -vv 45
  206.  
  207. This puts the viewer in the corner looking towards the opposite walls.  From
  208. there, you should be able to adjust the view to your liking using the "aim"
  209. command from within rview.  You are right that the view direction gets
  210. normalized by the program.  Since it is a vector indicating only the direction
  211. to look, it's magnitude is irrelevant.  If you give a vector of 1 2 .5 it
  212. is the same to Radiance as if you had given 2 4 1 or any positive scaling
  213. thereof.
  214.  
  215. -Greg
  216.  
  217. P.S.  Regarding your question about transparent spheres.  I think I
  218. need some more specifics.  Are the spheres of a solid material, or like
  219. soap bubbles?  What problems have you had with other renderers?
  220.  
  221. Date: Mon, 29 Apr 91 12:45 EST
  222. From: Cristy <cristy%ESSUN3%ESVAX%dupont.com@RELAY.CS.NET>
  223. Subject: Re: Radiance
  224.  
  225. Sorry about not supplying enough information about transparent
  226. spheres.  The two problems I am trying to solve has to do with
  227. molecular modeling.  Many times a chemist will come to me with a
  228. molecule he/she is interested in rendering for publication.  Typically
  229. they want a cluster of atoms in the center of the molecule to be opaque
  230. and the surrounding atoms to be almost totally transparent.  That way
  231. you can see the structure of the molecule and still emphasize the area
  232. of interest (typically the center atoms).
  233.  
  234. I have tried many raytracers (RAYSHADE, VORT, DBW, TRACER, etc.) and
  235. they produce a nasty artifact at the area of intersection of two
  236. transparent spheres.  For example, assume two atoms represented by
  237. spheres that intersect about 20% of the total area.  The area of
  238. intersection normally appears to be black in all the raytracers I used.
  239. This black area interferes with the transparent effect I am looking for
  240. and distracts from viewing the area of interest in the center of these
  241. outer transparent spheres.  Of course this effect gets worse the more
  242. transparent spheres you have-- to the point where you cannot see the
  243. opaque atoms in the center.
  244.  
  245. So I have been looking for a renderer that correctly models the area of
  246. intra-penetration of two transparent spheres.  I looked at radiosity
  247. programs, talked with experts in the field (Pat Hanarhan for instance)
  248. but have not found a program that handles this problem well.  I do not
  249. have the expertise to write my own algorithm so...  I am hoping
  250. Radiance may work.  I am looking at the problem now in Radiance, but I
  251. thought that you would have a better feel of Radiance's capability to
  252. handle the problem correctly.  Also perhaps you know of the correct
  253. material properties and other Radiance parameters to solve the
  254. intersecting transparent sphere problem.
  255.  
  256. Thank you in advance
  257.  
  258. cristy@dupont.com
  259.  
  260. Date: Tue, 30 Apr 91 08:44:22 +0200
  261. From: greg (Greg Ward)
  262. Subject: Re: Radiance
  263.  
  264. I'm guessing that the problems you've encountered with other ray tracers
  265. has to do with thier handling of dielectrics.  If you were modeling the
  266. spheres as solid glass objects, there would definitely be some confusion
  267. as the two objects interpenetrated.  You would be best off modeling the
  268. spheres as an outer surface and an inner surface with a small difference
  269. in radius.  Thus, you would be intersecting two "bubbles" rather than two
  270. solids.  Fortunately, Radiance has a material type that allows you to
  271. model an infinitely thin glass object with a single surface.  The material
  272. type is called "glass" and the parameters are the transmission in red,
  273. green and blue, which you will probably want to set to 1:
  274.  
  275.     void glass clear_glass
  276.     0
  277.     0
  278.     3 1 1 1
  279.  
  280.     clear_glass sphere bubble1
  281.     0
  282.     0
  283.     4 x1 y1 z1 r1
  284.  
  285.     clear_glass sphere bubble2
  286.     0
  287.     0
  288.     4 x2 y2 z2 r2
  289.     ...
  290.  
  291. This should give you the desired effect.  Again, you should be able to
  292. get similar results by using two slightly different concentric spheres
  293. (with the inside radius negative, or however they specify an inward
  294. surface normal).
  295.  
  296. -Greg
  297.  
  298. Date: Fri, 31 May 91 12:04 EST
  299. From: cristy%ESSUN3%ESVAX@dupont.com
  300.  
  301. A fellow scientist wants to model atomic orbitals with Radiance.
  302. Unfortunately there is no easy way (that he knows of) to express orbitals
  303. in terms of cartesian space.  The equations are always in the form of a
  304. spherical harmonic.  Is it possible to express surfaces in spherical
  305. coordinates with Radiance?
  306.  
  307. Thanks in advance.
  308.  
  309. Date: Mon, 3 Jun 91 16:20:01 +0200
  310. From: greg (Greg Ward)
  311. Subject: orbitals
  312.  
  313. Cartesian and sphereical coordinates are of course convertible using
  314. a simple transformation:
  315.  
  316.     x = rho sin(theta) cos(phi)
  317.     y = rho sin(theta) sin(phi)
  318.     z = rho cos(theta)
  319.  
  320. I suppose what you are really asking is if there is an easy way to
  321. represent surfaces defined by some arbitrary (in this case spherical
  322. harmonic) function.  The answer is a qualified yes.
  323.  
  324. The generator program gensurf can be given a parametric description of
  325. the surface in terms of two independent variables (for a spherical
  326. harmonic these would probably be theta and phi) from which it produces a
  327. tesselation of the desired surface into quadrilaterals and triangles.
  328. Thus, the Radiance rendering programs themselves do not model arbitrary
  329. parametric or implicit surfaces, but gensurf can be used to approximate
  330. most parametric surfaces as a collection of polygons.
  331.  
  332. Unfortunately, I have not done anything about modeling implicit surfaces
  333. (ie. surfaces described by a function of the form F(x,y,z) = 0).
  334. Tesselating such surfaces is not an easily solved problem, and I
  335. have not yet had a strong enough need for them.
  336.  
  337. -Greg
  338.  
  339. =======================================================================
  340. PHONG    Phong surface normal interpolation
  341.  
  342. Date: Mon, 6 May 91 12:55:44 EST
  343. From: Eric Ost <emo@ogre.cica.indiana.edu>
  344. Subject: smooth surfaces using normals
  345.  
  346. If I have a surface defined using discrete polygons, actually triangles,
  347. is there a way that I can use surface normal vectors to derive a smoothly
  348. shaded appearance?  For example, the human form geometry we have access to
  349. consists of approximately 3500 triangles.  When we render instances of
  350. this geometry the edges between triangles are painfully apparent.
  351. Is there some way to smooth these edges without resorting to interpolating
  352. the triangles themselves and creating a geometry database with an increased
  353. number of polygons?  Thanks.
  354.  
  355. eric
  356.  
  357. Date: Tue, 7 May 91 08:57:35 +0200
  358. From: greg (Greg Ward)
  359. Subject: Re:  smooth surfaces using normals
  360.  
  361. Hi Eric,
  362.  
  363. Yes, it is quite possible to interpolate the surface normals, using a
  364. procedural texture (texfunc) applied to the elements individually.  Of
  365. course, this is not very convenient if you already have the database,
  366. but it can be done using rcalc.  Unfortunately, the math for this
  367. procedure is not very straightforward, and the only place I've done it
  368. is in the Phong shading procedures of gensurf (ray/src/gen/gensurf.c
  369. and see also ray/lib/surf.cal).
  370.  
  371. I suppose this would be a nice feature to have built into Radiance
  372. directly, but I didn't feel that the method worked well enough to
  373. warrant it.  Specifically, Phong (bilinear) surface normal
  374. interpolation doesn't work for some degenerate cases or for concave
  375. polygons, and I have no idea how to apply it to polygons with more than
  376. four vertices.
  377.  
  378. I think there are some more general surface normal interpolation schemes
  379. floating around the literature, but I couldn't really recommend one to
  380. you because I haven't tried any of them.
  381.  
  382. Even gensurf may not help you that much, since I wrote the code to
  383. handle only paired triangles, and never got it to work right for lone
  384. triangles.
  385.  
  386. I hate to be so discouraging.  This is really something I would like
  387. to see happen, so if you can find a method that you think will do the
  388. trick, I will help you create an rcalc procedure or even a C program
  389. that implements it.
  390.  
  391. -Greg
  392.  
  393. =======================================================================
  394. INTERN    Radiance internals
  395.  
  396. Date: Thu, 9 May 91 16:45:32 EDT
  397. From: richards@eleceng.ee.queensu.ca (Haydn Richardson)
  398. Subject: View Plane Transformation
  399.  
  400. Hi Greg,
  401.     I'm trying to write a function which will read the 3-d world coordinates
  402. of an object, as specified in a .rad file and the view parameters from a view
  403. file to generate the corresponding image plane coordinates. My major problem
  404. is defining the relationship between the distance between the view origin vp
  405. and the view plane in terms of the -vh and -vv parameters specified in the
  406. view file. It seems to me that this information is embedded in the function
  407. viewpixel() which is in the file image.c. However, I have been unable to find
  408. where this function is called from if at all. I would be most appreciative if
  409. you could elaborate on the comments for this function, or address my problem
  410. more directly. For example is double d in viewpixel() the distance between the
  411. viewpoint and the view plane? What are the expected input and output 
  412. interpretations of the parameters xp,yp,zp? What is the expected input p?
  413.  
  414. As always thanks for the assistance
  415.  
  416. -Haydn Richardson
  417. Queen's University at Kingston
  418.  
  419. Date: Fri, 10 May 91 11:57:28 +0200
  420. From: greg (Greg Ward)
  421. Subject: Re:  View Plane Transformation
  422.  
  423. Hi Haydn,
  424.  
  425. So, we've been digging in my code, have we?  I don't get many questions
  426. about internals, so please forgive me for the confusion that follows.
  427.  
  428. The distance between the view point and the image plane is undefined,
  429. since the image plane is an imaginary entity.  Viewpixel() takes a
  430. point in world coordinates (ie. from the Radiance scene description)
  431. and computes the corresponding image position in normalized coordinates
  432. for a particular view.  The input point, p, is in world (x,y,z), and the
  433. return values *xp and *yp are in normalized view coordinates.  These
  434. coordinates run from (0.,0.) at the lower left corner of the image to
  435. (1.,0.) at the lower right and (1.,1.) at the upper right.  The returned
  436. value *zp is distance along the view direction from the viewpoint to the
  437. world plane containing the point p.  Perhaps this is the grail you seek.
  438.  
  439. I apologize for the unreadability of my code.  It even gives me trouble
  440. sometimes.  You should ignore anything called i, j, k, d, etc.  These
  441. are almost always temporary variables whose meaning changes depending
  442. on where you are in the procedure.  Such is the case in viewpixel().
  443.  
  444. The viewpixel() routine is used by certain picture processors such as
  445. px/pinterp.c and util/glareval.c.  I don't recommend learning how to use
  446. it by reading these modules, however.  They are rather nasty.
  447.  
  448. Good luck!  I'm gone all next week, so any further questions will have
  449. to wait until I get back for a response.
  450.  
  451. -Greg
  452.  
  453. ======================================================================
  454. PREVW    X11 previewer for Radiance
  455.  
  456. From: sumant@shakti.ernet.in
  457. Subject: Radiance input Previewer.
  458.  
  459. Dear Greg,
  460.     I am planning to use the Radiance input data format
  461. for my experimentation in Image Synthesis. I've just written 
  462. its line drawing previewer for X. I've successfully tested
  463. it on 3 UNIX Platforms. If U want it to be included in 
  464. your PD distribution I'll be very happy to send it to U.
  465.  
  466. If U make any scene data public, pl let me know.
  467. I'll be interested in using them.
  468. ----
  469. sumant
  470. (email : sumant@shakti.ncst.ernet.in)
  471. ------------------------------------------------------------------
  472. Sumant Narayan Pattanaik
  473. N.C.S.T.
  474. Juhu, Bombay 400 049
  475.  
  476. Date: Tue, 21 May 91 08:59:24 +0200
  477. From: greg (Greg Ward)
  478. Subject: Re:  Radiance input Previewer.
  479.  
  480. Hello Sumant,
  481.  
  482. That's great!  I'd love to try your previewer out, and include it for
  483. distribution.  I am in the process of setting up scene models and programs
  484. for public redistribution via anonymous ftp, and I'll let you know when
  485. it's ready.  In the meantime, you can deposit your previewer in the public
  486. ftp directory on hobbes.lbl.gov (128.3.12.38) where I can retrieve it.
  487. If it's small enough to go by e-mail, you can send it to me directly at
  488. "greg@lesosun2.epfl.ch" instead.  Thanks a lot!
  489.  
  490. -Greg
  491.  
  492. Date: Fri, 24 May 91 13:25:35 +0200
  493. From: greg (Greg Ward)
  494. Subject: Re:  Radiance input Previewer.
  495.  
  496. Hello Sumant,
  497.  
  498. Thank you very much for the previewer.  I just tried it out and it works
  499. great!  It should come in very handy for anyone using Radiance.  Do you
  500. mind if I include it at our ftp site so that people can pick it up?
  501.  
  502. Just a couple of minor suggestions.  It would be nice if the previewer
  503. accepted multiple Radiance files, one after the other, or read from
  504. the standard input if none were given.  This should not be very difficult.
  505. I noticed that you adapted the object file reading routine, so just giving
  506. it NULL makes it read from standard input.  Also, you can avoid the need
  507. for specifying a bounding box by using the routines from oconv (bbox.c,
  508. cone.c, face.c, misc.c) to compute the bounding box for you.  This would
  509. require two passes on the input file, however, and it is nice that the
  510. user can give a different bounding box to specify clipping so this
  511. may not be so important.  For a long time, I required the user to include
  512. the bounding box in the input files directly!
  513.  
  514. Thank you for such a wonderful service.  I still haven't gotten the model
  515. library together, but you will be the first to know!
  516.  
  517. -Greg
  518.  
  519. Subject: Re: Radiance input Previewer. 
  520. Date: Sun, 26 May 91 11:44:01 +0530
  521. From: sumant@shakti.ernet.in
  522.  
  523. Dear Greg,
  524.  
  525. I'll do the needful.
  526. I'll not try the  bounding box computation.
  527.  
  528. I am planning the following modifications.
  529. 1. The input parser in not rugged. I am now adapting it
  530.    from "readobj.c".
  531. 2. The color of the objects are arbitrary now.
  532.    I'll take the hints from the input file and color them accordingly.
  533.  
  534. I'll come bcak to U in a day or two.
  535. I want that it is avaiable to public.
  536. However, i havenot asked my boss yet. I'll do it when I am through.
  537. I donot see any problem.
  538. In any case most of the code used are assembled from book or PD
  539. software. So it is really for public consumption. If there is any
  540. problem I'll substitute all references of my name by "anonymous"
  541. and send it to U.
  542. ---
  543. sumant
  544.  
  545. Date: Tue, 28 May 91 08:56:45 +0200
  546. From: greg (Greg Ward)
  547. Subject: previewer
  548.  
  549. Helo Sumant,
  550.  
  551. Thank you for the new version of your previewer.  I tried it out and
  552. it works very well indeed.  Thank you for getting (and granting)
  553. permission to redistribute it.  I am in the process now of setting
  554. up the public ftp site at hobbes.lbl.gov (128.3.12.38).  I will
  555. put your software under pub/programs, with a one-line description
  556. of its function.
  557.  
  558. At the same ftp site (by tomorrow, hopefully) you should find Radiance
  559. objects and models that you may use under pub/objects and pub/models.
  560.  
  561. Thank you again for all of your help!
  562.  
  563. -Greg
  564.  
  565. Date: Tue, 28 May 91 13:44:39 +0530
  566. From: sumant@shakti.ernet.in
  567.  
  568. Dear Greg,
  569.     Thank U for the message. I'll try to get the
  570. new version of Radiance from your site. The earlier version's
  571. (the version I got in the 1st Week of May) documentation
  572. was a bit short. I hope it is improved now.
  573.  
  574. About the previewer, I must tell U the bugs I know of.
  575. 1. In X11.c line 103
  576.     fprintf(..) has missing file pointer.
  577.     Please correct it to 
  578.         fprintf(stderr,....)
  579. 2. The input parser does not support yet the description in
  580.    the form
  581.     "modifier alias identifier reference"
  582.    and
  583.       for the other description form
  584.     "modifier type identifier
  585.      n s1 s2 s3 ... sn
  586.        0
  587.      m R1 R2 ... Rm"
  588.       the parser takes the sequence literally in terms of
  589.       lines in which they appear.
  590.  
  591.    I'll correct this problem by adapting to your Parser and
  592.    when I am ready I'll send U a copy. However, I'll be a bit
  593.    late.
  594.  
  595. Thanks again.
  596. Regards.
  597. ----
  598. sumant
  599. (email : sumant@shakti.ncst.ernet.in)
  600. ------------------------------------------------------------------
  601. Sumanta Narayan Pattanaik
  602. N.C.S.T.
  603. Juhu, Bombay 400 049
  604.  
  605. =====================================================================
  606. SPEC    Spectral distributions curves
  607.  
  608. Date: Tue, 28 May 91 09:16:16 -0400
  609. From: spencer@cgrg.ohio-state.edu (Stephen N. Spencer)
  610. Subject: Radiance archive
  611.  
  612.  
  613. I have a user here at OSU who has done some work with spectral distribution
  614. curves.  He asked me if there any way to include these distribution curves,
  615. either for light sources or objects, in RADIANCE.  I told him that I didn't
  616. think so.  When your mail arrived just now I thought, well, it won't hurt 
  617. to ask the one person who can give a definitive answer.
  618.  
  619. Also, is there any .ies files available?  I've got the "ies*.{rad,dat}" but
  620. don't have any IES input files.  Just curious.  
  621.  
  622. We're having great fun with RADIANCE around here.  It's going to be a mix of
  623. Industrial Design students and Art students using it (we have a sophisticated
  624. scanline renderer as the main renderer but I've introduced RADIANCE as an
  625. alternative).
  626.  
  627. steve
  628.  
  629. Date: Tue, 28 May 91 15:51:11 +0200
  630. From: greg (Greg Ward)
  631. Subject: Re:  Radiance archive
  632.  
  633. Hi Steve,
  634.  
  635. It is possible to make multiple passes with Radiance, using the three RGB
  636. channels provided to mean some other selection of spectral samples.  For
  637. example, you could have three sets of material files, each with slightly
  638. different RGB values corresponding to different sample locations.  (I
  639. recommend interleaving the samples.)  You then run rpict on each one
  640. and produce three output pictures.  (Be sure to set -sj to 0 so the
  641. pixels correspond.)  These three pictures have a total of 9 spectral
  642. samples, which you can combine however you want using pcomb before the
  643. final display.
  644.  
  645. This is obviously less efficient than having more spectral samples in
  646. the calculation itself, but until I have the spectral response data,
  647. I can't see the sense in implementing more samples right at the moment.
  648.  
  649. Regarding IES luminaire data, I put what I have into the archive directory
  650. pub/iesdata.  Thank you for reminding me of this.  Although I didn't have
  651. much to contribute myself, maybe others will pitch in.
  652.  
  653. -Greg
  654.  
  655. From: spencer@cgrg.ohio-state.edu (Stephen N. Spencer)
  656. Subject: Radiance archive
  657.  
  658. Thanks!  I don't think this is what my user will want to hear (it sounds 
  659. rather time-consuming) but hey, it WILL work.  
  660.  
  661. steve
  662.  
  663. ======================================================================
  664. DAYF    Daylight factors and unknown programs
  665.  
  666. [The following is in response to a letter from John Mardaljevic at Leicester
  667. Polytechnic.  I am too lazy to retype the letter here, but John was
  668. having some problems with Sun Open-Windows and Radiance version 1.3,
  669. and he also had some questions about undocumented programs and computing
  670. daylight factors.  Incidentally, I have added documentation for cnt,
  671. neat, and total and plan to have a daylight factor calculation script
  672. ready in the next release.]
  673.  
  674. Date: Wed, 29 May 91 10:02:09 +0200
  675. From: greg (Greg Ward)
  676. To: edu@leicp.ac.uk
  677. Subject: Radiance
  678.  
  679. Hello John,
  680.  
  681. Your letter was just forwarded to me regarding your questions on v1.3.1.
  682. The problem you are having is an initialization problem that is associated
  683. with the open look window manager (olwm).  It has been fixed in version
  684. 1.4, which is available by anonymous ftp from hobbes.lbl.gov (128.3.12.38).
  685. If you do not have access to ftp and do not want to wait for another
  686. upgrade via mail, I can send you the new version of x11image.c by e-mail
  687. and you can recompile it yourself.  Alternatively, you can run twm or some
  688. other window manager instead of olwm and x11image should work.
  689. X11image never has a command window, so that is normal.  The manual page
  690. for x11image is identical to ximage, and I even renamed the program to
  691. ximage in the next release.  Sorry for the confusion.  Unfortunately,
  692. the problems with xshowtrace haven't been fixed in release 1.4,
  693. although I've fixed them since 1.4 and the program will work in the
  694. next release.  Rtrace should work fine, since it doesn't depend on
  695. the window system unless you run it in conjunction with x11image.
  696.  
  697. As for the missing manual pages, I apologize.  I never did write up
  698. some of the programs I include on the distribution since I figure
  699. most people won't be using them.  There are manual pages for calc,
  700. rcalc and ev in ray/src/cal/man.  I am sorry they are not in the
  701. expected place.  The only documentation for the others is the source
  702. code, but here is a one line description of each:
  703.  
  704.     cnt        - integer counter, try "cnt 2 5"
  705.     colorscale    - generates color scale picture
  706.     genwindow    - calculates light from window with venetian blinds
  707.     greyscale    - generates grey scale picture
  708.     lam        - joins lines from multiple files
  709.     lookamb        - examines contents of Radiance ambient file
  710.     mt160r        - output driver for Mannesman-Tally dot matrix printer
  711.     neat        - neatens up columns of numbers and aligns decimals
  712.     oki20c        - output driver for OkiData OkiMate 20 color printer
  713.     paintjet    - output driver for HP color paintjet printer
  714.     sun.com, sundev    - driver programs used by rview for sun windows
  715.     total        - sums up columns of numbers
  716.  
  717. As for daylight factors, the most efficient method is to use rtrace with
  718. the -oi option (will be -I in 1.5) and give it your list of workplane
  719. points with up vectors (ie. 0,0,1).  Then, take the output numbers and
  720. divide them by the ambient level given to you by gensky (multiplied by
  721. pi).  Here is a more complete example:
  722.  
  723. Let's say we have a room that we have compiled into room.oct and we
  724. want to calculate daylight factors on a 10x8 grid running from x=1
  725. to x=10 and y=5 to y=11 at a height z=3.  First, we run gensky manually
  726. for the day and time we are interested in, like so:
  727.  
  728.     gensky 5 29 10 -a 47 -o -7 -m -15
  729.  
  730. Of course, you would adjust the latitude, longitude and standard meridian
  731. to correspond with your site location.  The above produced the following
  732. comment in its output:
  733.  
  734.     # Ground ambient level: 7.582072
  735.  
  736. This ground ambient level corresponds to the irradiance/pi due to the sky
  737. without direct solar, which is what we will divide into our irradiance
  738. values from rtrace to get daylight factors, thus:
  739.  
  740.     cnt 10 8 | rcalc -e '$1=$1+1;$2=$2+5;$3=3;$4=0;$5=0;$6=1' \
  741.     | rtrace -oi room.oct | rcalc -e '$1=(.3*$1+.59*$2+.11*$3)/PI/7.582' \
  742.     > room.df
  743.  
  744. The factors of .3, .59 and .11 are to get from RGB to brightness.
  745. Note that the values in the output file do not have their associated input
  746. values with them.  You can add them in again like so:
  747.  
  748.     cnt 10 8 | rcalc -e '$1=$1+1;$2=$2+5' | lam - room.df \
  749.     | neat 4.9 > room.df.final
  750.  
  751. Notice that I tried to use as many of the programs you asked about as I
  752. could!  Notice also that doing real calculations with Radiance
  753. currently requires long, unreadable command lines.  We hope to make
  754. some of this easier in the next release by adding shell scripts to do
  755. these kinds of useful things without requiring so much user guidance.
  756.  
  757. I hope some of this helps.
  758. -Greg
  759.  
  760. =================================================================
  761. VISION    Vision-3D modeler for the MacIntosh
  762.  
  763. Date: Fri, 17 May 91 9:58:22 NZT
  764. From: pdbourke@ccu1.aukuni.ac.nz
  765. To: ray@hobbes.lbl.gov
  766. Subject: Mac modeller
  767.  
  768. The public domain modeller Vision-3D for the Mac II family is about to
  769. support Radiance data files as an export option. This has already been
  770. done but the copy on our FTP site hasn't yet been updated (I want to put
  771. some more features in the next release) If anyone is interested however
  772. the current version of Vision-3D with Radiance file export can be made
  773. available.
  774. -- 
  775.  |   Paul D Bourke        pdbourke@ccu1.aukuni.ac.nz         (130.216.1.5)   |
  776.  
  777.  
  778. Date: Fri, 17 May 91 11:16:42 +0200
  779. From: greg (Greg Ward)
  780. Subject: Re:  Mac modeller
  781.  
  782. Hi Paul,
  783.  
  784. Thank you for putting a Radiance output option into your modeller!  I have
  785. had a student working on a translator from Sculp 3D RIB files to Radiance
  786. with limited success.  It would be great to get a hold of a real 3D
  787. modeller for the MacIntosh II, since that's the computer I use most
  788. often.  Does your program work with A/UX 2.0?  I have Radiance working
  789. on the Mac under this operating system now.
  790.  
  791. -Greg
  792.  
  793. Date: Sat, 18 May 91 10:38:22 NZT
  794. From: pdbourke@ccu1.aukuni.ac.nz
  795. Subject: Re: Mac modeller
  796.  
  797. > Thank you for putting a Radiance output option into your modeller!  I have
  798. > had a student working on a translator from Sculp 3D RIB files to Radiance
  799. > with limited success.  It would be great to get a hold of a real 3D
  800. > modeller for the MacIntosh II, since that's the computer I use most
  801. > often.
  802.  
  803. Well, Vision-3D is a shareware modeller...MicroStation is a real modeller.
  804. The RayShade and Radiance export facility has received so much attention
  805. that I will put a preliminary copy of the next version of Vision-3D in our
  806. FTP directories early next week. The readme file will indicate when this
  807. has been done. In case you don't know we are ccu1.aukuni.ac.nz (130.216.1.5)
  808. The directory you want is mac/architec.
  809.  
  810. > Does your program work with A/UX 2.0?
  811.  
  812. Don't know. What are the issue, I use Think C (never even seen AUX)
  813.  
  814. > I have Radiance working on the Mac under this operating system now.
  815.  
  816. Is it possible to generate a version that would run under the finder OS.
  817. This would be of great interest to many users.
  818. -- 
  819.  |   Paul D Bourke        pdbourke@ccu1.aukuni.ac.nz         (130.216.1.5)   |
  820.  
  821. Date: Tue, 21 May 91 08:55:41 +0200
  822. From: greg (Greg Ward)
  823. Subject: Re: Mac modeller
  824.  
  825. Hi Paul,
  826.  
  827. Unfortunately, I don't have a version of Radiance for the MacOS, and I don't
  828. expect to in the near future.  The rendering program in Radiance was really
  829. meant to run in the background and may require large amounts of memory for
  830. complex scenes, so I don't think it would be very simple to port it to the
  831. native Macintosh OS.  You are welcomed to try!  Frankly, I haven't got much
  832. patience for menus and that sort of programming.  A few years ago, someone
  833. I hired wrote a 3d editor for Radiance files on the Mac and the code was
  834. bigger than my renderer!  It never quite worked to my satisfaction (it
  835. crashed a lot) so I didn't advertize it much.  This is another problem
  836. with the Mac environment -- frequent crashes that spell disaster for
  837. background processes.  Also, the system does not allow that much CPU
  838. time to such programs, preferring to reserve as much as possible for
  839. the application running in the foreground.  Perhaps this will change
  840. a bit with version 7, but I doubt it.
  841.  
  842. I will pick up the modeller as soon as you have the right release on there.
  843. Thanks again.
  844.  
  845. -Greg
  846.  
  847. Date: Wed, 22 May 91 7:48:49 NZT
  848. From: pdbourke@ccu1.aukuni.ac.nz
  849. Subject: Re: Mac modeller
  850.  
  851. > Unfortunately, I don't have a version of Radiance for the MacOS, and I don't
  852. > expect to in the near future.  The rendering program in Radiance was really
  853. > meant to run in the background and may require large amounts of memory for
  854. > complex scenes, so I don't think it would be very simple to port it to the
  855. > native Macintosh OS.  
  856.  
  857. Yes, I tried to render some landscapes woth 2 million polygonal facets, no
  858. luck yet and our SGI has 64MB !
  859.  
  860. > You are welcomed to try!  Frankly, I haven't got much
  861. > patience for menus and that sort of programming.  A few years ago, someone
  862. > I hired wrote a 3d editor for Radiance files on the Mac and the code was
  863. > bigger than my renderer!  
  864.  
  865. You shouldn't be very surprised at this, a modeller is much more complex
  866. and varied than a renderer. 
  867.  
  868. > It never quite worked to my satisfaction (it
  869. > crashed a lot) so I didn't advertize it much.  This is another problem
  870. > with the Mac environment -- frequent crashes that spell disaster for
  871. > background processes.
  872.  
  873. Can't remember my last crash! I am afraid that the impression people have
  874. of the Mac as unstable is almost always due to substandard software
  875. especially INITs, games, utilities in the public domain. The system
  876. software and toolbox is only resposible for a small fraction of the
  877. problems people have with Macs.
  878.  
  879. > Also, the system does not allow that much CPU
  880. > time to such programs, preferring to reserve as much as possible for
  881. > the application running in the foreground.  Perhaps this will change
  882. > a bit with version 7, but I doubt it.
  883.  
  884. No it hasn't really changed. An application can specifiy how often a 
  885. background task is "looked" at and for how long. Most developers tend
  886. to give background tasks only a peek every now and then because they
  887. want maximum performance for themselves. I have only seen one application
  888. which allowed the user to specify the sharing load, a good idea though.
  889.  
  890. > I will pick up the modeller as soon as you have the right release on there.
  891. > Thanks again.
  892.  
  893. I have placed a beta version of the modeller that supports Radiance in our
  894. archive. There is an administrative problem though with our site, they are
  895. worried about the huge amount of traffic they are experiencing.
  896. -- 
  897.  |   Paul D Bourke        pdbourke@ccu1.aukuni.ac.nz         (130.216.1.5)   |
  898.  
  899. Date: Wed, 22 May 91 09:26:03 +0200
  900. From: greg (Greg Ward)
  901. Subject: Re: Mac modeller
  902.  
  903. Hi Paul,
  904.  
  905. I just picked up your modeller yesterday, and I must say I'm impressed.
  906. I hope it took you a long time to write and document.  Please don't tell
  907. me you did it during donut breaks on Thursdays.
  908.  
  909. If you want to render large scenes with Radiance, you need to somehow
  910. break them down into repeatable groups using instances.  Of course, this
  911. doesn't work if what you're rendering doesn't have any inherent repetition
  912. inherent repitition.  Almost everything I do does.
  913.  
  914. I agree that crashes are caused by poor inits more than bad system software,
  915. but I have little control over what other people do to their machines and
  916. they seem to like those silly little bastards.  I've been using a shared
  917. machine here at EPFL and every day I switch it on it seems like there's
  918. another one.  Maybe they breed overnight.  I go for a bite while the thing
  919. boots up.
  920.  
  921. I didn't find the export option for Radiance in the modeller.  It's not
  922. in the expected place (File Export...).  Are you sure it was on yesterday's
  923. release?
  924.  
  925. If network traffic is a problem, I would be happy to put Vision 3D on
  926. my ftp site in California.  That is, if you have no objections.  From
  927. the manual, it sounds like you were (thinking?) of marketing the program
  928. at one time.  I'd be interested to hear what your current attitude is on that.
  929.  
  930. By the way, I ran Vision 3D under A/UX to try it out, and everything I
  931. tested seemed to work fine.  The only problem I noticed was that the
  932. cursor disappeared after I quit.  There must be some deinitialization that's
  933. required for A/UX that the normal Finder takes care of.  I've noticed other
  934. strange cursor happenings in the past with other programs as well.  The
  935. other thing that wasn't quite right was that the 32-bit clean flag was not
  936. set on the program.  That's a function of the compiler, I suppose, though
  937. it is possible to set this flag yourself using ResEdit.  The requirements
  938. for applications running under A/UX (as I understand it) besides 32-bit
  939. clean are that you stick with Apple's guidelines (which I guess you have)
  940. and that you don't access certain little-used toolbox routines that the A/UX
  941. people haven't implemented yet.  Most of these have to do with strange
  942. color table manipulations as near as I can tell.
  943.  
  944. Once I get the correct version of Vision 3D (assuming I ain't got it),
  945. I'll do a more thorough testing under A/UX so I can tell you if there are
  946. any other problems.  I don't expect there will be too many, anyway.
  947.  
  948. Do you know Robert Amor?  How did New Zealand get so many hot shots when
  949. they have so little money?  As I said before, I'm impressed.
  950.  
  951. -Greg
  952.  
  953. Date: Wed, 22 May 91 20:32:14 NZT
  954. From: pdbourke@ccu1.aukuni.ac.nz
  955. Subject: Re: Mac modeller
  956.  
  957. > I just picked up your modeller yesterday, and I must say I'm impressed.
  958. > I hope it took you a long time to write and document.  Please don't tell
  959. > me you did it during donut breaks on Thursdays.
  960.  
  961. I did work on it fairly well full time for a few months. I would love to
  962. have time to rewrite the "definitive" modeller now that I know know how. ie:
  963. Vision-3D was my first 3D software but it has been left behind because of
  964. other commitments. I would love to write a good modeller specifically for
  965. RenderMan but it's probably a years work!
  966.  
  967. > I didn't find the export option for Radiance in the modeller.  It's not
  968. > in the expected place (File Export...).  Are you sure it was on yesterday's
  969. > release?
  970.  
  971. Sorry, humble...humble... my mistake, don't know how it happened, etc etc...
  972. I will fix up the directory, I might try mailing you the application. 
  973.  
  974. > If network traffic is a problem, I would be happy to put Vision 3D on
  975. > my ftp site in California.  That is, if you have no objections.  From
  976. > the manual, it sounds like you were (thinking?) of marketing the program
  977. > at one time.  I'd be interested to hear what your current attitude is 
  978. > on that.
  979.  
  980. Please put it somewhere in the US and let me know where. There has been
  981. huge traffic loads to our site, I am becoming unpopular with the Computer
  982. Centre administrators. The current position is that the program is shareware,
  983. which means in my book that you should feel free to copy and distribute the
  984. software. If you keep and use it for any sort of financial gain then I would
  985. appreciate $120 NZ (approx US$80)
  986.  
  987. > By the way, I ran Vision 3D under A/UX to try it out, and everything I
  988. > tested seemed to work fine.  The only problem I noticed was that the
  989. > cursor disappeared after I quit.  There must be some deinitialization that's
  990. > required for A/UX that the normal Finder takes care of.  I've noticed other
  991. > strange cursor happenings in the past with other programs as well.  The
  992. > other thing that wasn't quite right was that the 32-bit clean flag was not
  993. > set on the program.  That's a function of the compiler, I suppose, though
  994. > it is possible to set this flag yourself using ResEdit.  The requirements
  995. > for applications running under A/UX (as I understand it) besides 32-bit
  996. > clean are that you stick with Apple's guidelines (which I guess you have)
  997. > and that you don't access certain little-used toolbox routines that the A/UX
  998. > people haven't implemented yet.  Most of these have to do with strange
  999. > color table manipulations as near as I can tell.
  1000.  
  1001. Yeah, I have just installed system 7 and all my programs seem to work OK. I
  1002. do use my own cursors when the mouse is in "my" windows (it looks like the
  1003. normal crosshair cursor but it's not). You will probably find that if you
  1004. quit from Vision-3D with the cursor away from my windows all will be fine.
  1005. I'll put cursor initialising on my list of things to do.
  1006.  
  1007. > Once I get the correct version of Vision 3D (assuming I ain't got it),
  1008. > I'll do a more thorough testing under A/UX so I can tell you if there are
  1009. > any other problems.  I don't expect there will be too many, anyway.
  1010.  
  1011. Thanks
  1012.  
  1013. > Do you know Robert Amor?  How did New Zealand get so many hot shots when
  1014. > they have so little money?  As I said before, I'm impressed.
  1015.  
  1016. Yes, how do you know him? I met him last week, he's come up to the Computer
  1017. Science dept here to do some brief contract work on an expert system for
  1018. a building industry firm. His address here is robert-a@cs.aukuni.ac.nz
  1019. He just gave me 40MB of radiance examples...!
  1020. -- 
  1021.  |   Paul D Bourke        pdbourke@ccu1.aukuni.ac.nz         (130.216.1.5)   |
  1022.  
  1023. Date: Thu, 23 May 91 09:02:01 +0200
  1024. From: greg (Greg Ward)
  1025. Subject: Re: Mac modeller
  1026.  
  1027. Hi Paul,
  1028.  
  1029. Thank you for sending the beta version of Vision3D.  I know what you mean
  1030. about wanting to start over.  I've put the modeller just by itself on
  1031. anonymous ftp at hobbes.lbl.gov (128.3.12.38) under pub.  You can put the
  1032. other hqx files there yourself if you feel like it.  I am planning to get
  1033. the whole thing organized with drop off points and pick up points and
  1034. read me files and so on, in a day or two.  (How many weeks have I been
  1035. saying this?)  Actually, it was largely Robert Amor's idea to have a
  1036. shared Radiance archive, and I recently got a lot of interest at the
  1037. Eurographics workshop on rendering.
  1038.  
  1039. Robert came by Berkeley at some point last year and we talked a bit.
  1040. He knew an awful lot about Radiance and had some good suggestions and
  1041. one or two programs for me.  Also, we had been exchanging e-mail for
  1042. some time on the topic of building data representation, a shared interest.
  1043.  
  1044. I had a quick look at the Radiance export files from Vision3D and they
  1045. look great.  I haven't run any tests, yet, though, so I'll have to let
  1046. you know how they turn out.  I read quickly through your little article
  1047. on CAD formats and took some of the things you said to heart.  My next
  1048. release of Radiance will be much more forgiving of cones and spheres with
  1049. "illegal" radii so there will be a little less for you to worry about.
  1050. I would be interested in any specific comments or criticism you have
  1051. about the Radiance scene description format.  It was basically written
  1052. for my own (ie. the implementer's) convenience rather than ease of use,
  1053. so I realize it is somewhat brain dead.  (Scanf is my parser and printf
  1054. is my formatter...)
  1055.  
  1056. -Greg
  1057.  
  1058. Date: Sun, 26 May 91 12:02:00 NZT
  1059. From: pdbourke%ccu1.aukuni.ac.nz@csa1.lbl.gov
  1060. Subject: Triangulate
  1061.  
  1062. Something else of mine that now supports Radiance export...!
  1063.  
  1064. Triangulate is a Mac II utility that takes a "random" distribution of samples
  1065. of a surface and generates a triangulated (Delauney) or gridded mesh 
  1066. (user specified resolution) representation of the surface. We use it
  1067. extensively for generating terrain models, the data is generated either from
  1068. manual entry from site surveys or by digitizing existing contour maps. A
  1069. number of export formats are supported, DXF, Super3D text, and now Radiance.
  1070.  
  1071. The archive I uploaded has been passed through Stuffit (.sit) and then
  1072. BinHex (.Hqx). It contains the application and the user manual in MS Word 4
  1073. format. 
  1074. -- 
  1075.  |   Paul D Bourke        pdbourke@ccu1.aukuni.ac.nz         (130.216.1.5)   |
  1076.