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

  1. Hello folks,
  2.  
  3. Since I've gone to the trouble of setting up this mailing list of Radiance
  4. users, I might as well use it for something.  (By the way, feel free to
  5. send mail directly to the group yourself -- it's ray@hobbes.lbl.gov.)
  6.  
  7. This is the first edition of a digest of correspondence between myself and
  8. other program users.  I just take what I think might be interesting to
  9. the general populace, not everthing.  (You're welcome.)  If you send me
  10. mail that you don't want shared in this fashion, please tell me so at
  11. the time.
  12.  
  13. I will start with mail I received (or sent) this year -- I think the older
  14. stuff is too out of date now, anyway.  In this digest, you will find
  15. discussions on the following topics:
  16.  
  17.     New options and programs (-p, -z, pinterp)
  18.     Penumbras and source sampling
  19.     Modeling software
  20.     Radiance display drivers
  21.     Pfilt and ies2rad light sources
  22.     Modifiying source for huge scenes
  23.     Radiance course possibility
  24.  
  25. --------------
  26. From greg Thu Jan 11 12:18:04 1990
  27. Date: Thu, 11 Jan 90 12:17:59 PST
  28. Subject: new programs and options
  29.  
  30. Dear Radiance users,
  31.  
  32. There is a new rview driver for X11 (written by Anat Gryberg) and a new
  33. program for interpolating new views from images, called pinterp.  There is
  34. also a new option for rpict and pfilt to set the pixel aspect ratio of the
  35. output picture, and rview no longer takes x and y resolution arguments.
  36. Under X10 at least, you will notice that rview now responds to resize
  37. requests.
  38.  
  39. Here are some release notes on the changes:
  40.  
  41. Added a -p option to rpict and pfilt to set the pixel aspect ratio for
  42. output.  Instead of giving the absolute x and y resolutions, the user
  43. now gives rpict and pfilt the maximum desired resolution for x and y
  44. and the pixel aspect ratio is used along with the given view to
  45. calculate appropriate values within this boundary.  This makes for
  46. much more natural view specifications.  For example, for a 512x400
  47. device with a pixel aspect ratio of 1.0, the pfilt command:
  48.  
  49.     pfilt -x 512 -y 400 -p 1
  50.  
  51. will always produce the appropriate output, regardless of the aspect
  52. ratio of the input picture.  If necessary, the x or y output resolution
  53. will be reduced to accommodate the device's resolution.  A square image
  54. would occupy a region of 400x400 pixels.
  55.  
  56. View shift and lift options were added to the list of standard view
  57. parameters, for specifying views for panoramas and holograms.
  58.  
  59. Rview no longer takes options for x and y resolution, but instead
  60. gets them from the device driver along with the pixel ratio.  This
  61. makes it much easier to change the view aspect ratio (with the vh
  62. and vv parameters).
  63.  
  64. A -z option was added to rpict to write out the distances for each
  65. pixel in an image.  This may be useful for z-buffer operations, and
  66. is used by the new program pinterp, described below.
  67.  
  68. A program called pinterp, was added to the burgeoning list of
  69. picture filters and converters.  This program is designed primarily
  70. to interpolate animated frames for walk-throughs of static scenes,
  71. but it has a number of other useful functions besides.  It takes as
  72. its input one or more rendered pictures (with their corresponding z
  73. value files) and desired viewpoint (hopefully not too far afield from
  74. the given images).  Pinterp then takes the input frames and moves the
  75. pixels to their new computed location.  Filling operations make sure
  76. that the final image does not have large unpainted regions.
  77.  
  78. -Greg
  79.  
  80. From greg Tue Jan 16 08:48:57 1990
  81. Date: Tue, 16 Jan 90 08:48:48 PST
  82. To: dasilva%ced.Berkeley.EDU@jade.berkeley.edu
  83. Subject: Re:  recovering rpicts
  84.  
  85. Hello Deanan,
  86.  
  87. The -x and -y options have not been replaced in rpict, -vs and -vl are new
  88. options.  There is another new option, -p, which you will need to set to 0
  89. to get your recovery operation to work.  Simply add -p 0 to every rpict
  90. command in your makefile.  This wouldn't normally be required, except that
  91. you are recovering files you created with the old rpict, which didn't pay
  92. attention to pixel aspect ratios.  Read the new manual page for rpict to
  93. understand what I'm talking about.
  94.  
  95. The -z option of rpict is easy to use.  Simply give it the name of the
  96. file where you want to store the z buffer information, then stand back!
  97. The z-file can be quite large, since it stores 4 bytes for every pixel.
  98. For a 512x512 image, that's already 1 megabyte.  You don't need to do
  99. anything special to recover z-file information, just use the option as
  100. you did in the aborted rendering.
  101.  
  102. Good luck, and let me know if you have any other questions.
  103.  
  104. -Greg
  105.  
  106. -----------
  107. From greg Fri Jan 19 11:36:32 1990
  108. Date: Fri, 19 Jan 90 11:36:25 PST
  109. To: anderdla@cs.uoregon.edu
  110. Subject: penumbras
  111.  
  112. Dear Darren,
  113.  
  114. Thank you for your letter.
  115.  
  116. You don't need to change your scene description at all to generate
  117. penumbras, only the options to rpict (or rview).  Set -dj to some
  118. value less than 1.  For most scenes, a value of .5 will do nicely.
  119. If the value is too close to 1, strange things may happen for
  120. irregularly shaped light sources (see the BUGS section of the rpict
  121. manual page).  Spherical light sources work best, but rings and nearly
  122. square polygons work also as area light sources.  Note that if your
  123. light source is small in relation to the ratio of the obstruction-
  124. shadow vs source-shadow distance, then the penumbras will not be
  125. very pronounced (ie. the shadows will be sharp).
  126.  
  127. I am glad to hear that you are using the software!
  128.  
  129. -Greg
  130.  
  131. From greg Fri Jan 19 11:39:57 1990
  132. To: anderdla@cs.uoregon.edu
  133.  
  134. There is one other thing I should mention.  When you generate penumbras,
  135. image sampling may start to cause problems.  You may need to set the -sp
  136. option to 1, which will result in longer rendering times.  This is why
  137. direct jitter is not turned on normally (rpict -defaults).
  138.  
  139. -Greg
  140.  
  141. From anderdla@cs.uoregon.edu Mon, 22 Jan 90 13:07:12 PST
  142. To: greg@hobbes.lbl.gov
  143. Subject: More questions!
  144.  
  145. Well, thanks for telling me about -dj!  There is a real nasty side
  146. effect,though.  It seems the as I increase shadow jitter, the picture
  147. becomes increasingly grainy.  I have tried changing the -sj, and -sp
  148. parameters to overcome this.  I have also tried using pfilt to no
  149. avail.  Do you know how to overcome this problem??
  150.  
  151. Thanks.
  152. Darren Anderson
  153.  
  154. From greg Mon Jan 22 13:26:05 1990
  155. To: anderdla@cs.uoregon.edu
  156. Subject: Re:  More questions!
  157.  
  158. Are your light sources very long and narrow?  This can cause big
  159. problems for the -sj algorithm.  You must break up any long sources
  160. into smaller, more square pieces.  Even if your light sources have
  161. an aspect ratio around 1 (ideal), you still should not use a value
  162. for -dj greater than about .7 .
  163.  
  164. A modest amount of graininess is to be expected of any Monte Carlo
  165. sampling technique.  In this case, it is caused by the angle between
  166. the surface and the light source direction varying with the source
  167. sampling.  To reduce the amount of graniness, either lower -dj
  168. (cheap) or raise the resolution for rpict and use pfilt to antialias
  169. down to the final picture resolution (accurate):
  170.  
  171.     rpict -dj .5 -sp 1 -x 1024 -y 1024 octree > rpict.pic
  172.     pfilt -x 512 -y 512 -r .7 rpict.pic > pfilt.pic
  173.  
  174. The -r option of pfilt uses a Gaussian filter, which looks slightly
  175. better than the default box filter.  If you have adjusted your
  176. light sources to give you the picture brightness you want straight
  177. out of rpict, you can use the -1 option of pfilt to speed it up.
  178. If you don't want to produce an intermediate file (rpict.pic), you
  179. can pipe the output of rpict directly into pfilt.
  180.  
  181. -Greg
  182.  
  183. -----------
  184. From hchen@gumbo.age.lsu.edu Tue Apr 10 07:34:56 1990
  185. To: gjward@Csa1.lbl.gov
  186. Subject: CAD programs
  187.  
  188. Dear Mr. Ward,
  189.  
  190. 1.  We read your RADIANCE Tutorial within RADIANCE package, it says that 
  191. the input model may contain many thousands of surfaces, and is often 
  192. produced by a separate CAD program'.  We would like to know what kind of 
  193. CAD programs can be used in this situation.  Can we use AutoCAD as a mean 
  194. to produce a model?  If so, how?
  195.  
  196. 2.  I try to run the examples under examples/conf subdirectory using make 
  197. command.   It give me the error message of "chair1.oct not found".  The 
  198. original Makefile is as:
  199.  
  200.    #
  201.    # Makefile for the conference room
  202.    #
  203.  
  204.    VIEW = -vf vf/current
  205.    SCENE = test
  206.    #DEV = X
  207.    DEV = sundev
  208.    AMB = -av .02 .02 .02
  209.    OCTOPTS = -f
  210.  
  211.    view:   $(SCENE).oct
  212.            rview $(VIEW) -o $(DEV) $(AMB) $(SCENE).oct
  213.  
  214. Actually, octree file 'chair.oct' sits under current directory. I don't 
  215. know why the programs couldn't find it.
  216.  
  217. Thank you for your help.
  218.  
  219. Huaiming Chen
  220.  
  221. From greg Tue Apr 10 12:04:25 1990
  222. To: hchen@gumbo.age.lsu.edu
  223. Subject: Re:  CAD programs
  224.  
  225. The conference model is probably not working because you haven't set your
  226. RAYPATH variable to include the current directory ".".  Radiance uses this
  227. environment variable to determine where to look for auxiliary files (incl.
  228. instance octrees).  The default value is ".:/usr/local/lib/ray", which
  229. includes the current working directory.
  230.  
  231. There is currently no translator from AutoCAD, but we expect to have one
  232. sometime in the near future.  For it to work, the model would have to 
  233. have been created with surfaces, rather than lines.
  234.  
  235. We have a translator for GDS (from McDonnell Douglas) and may have one
  236. for MacArchitrion soon as well.
  237.  
  238. Right now, genbox, genrev and gensurf are the most useful surface description
  239. generators (oh, not to forget genprism, one of my personal favorites).
  240.  
  241. -Greg
  242.  
  243. ----------
  244. From mb@cs.albany.edu Thu Jun 21 12:50:30 1990
  245. To: GJWard@Csa1.lbl.gov
  246. Subject: RADIANCE
  247.  
  248. Dear Mr Ward,
  249.  
  250.    We have a network of sun3's and sun4's running sunos 4.0.3. We
  251. just installed RADIANCE on both architectures but we're having some
  252. problems getting it to run. The installation process seemed fairly
  253. simple - a matter of placing binaries and library files in the right
  254. places, and so we did not recompile anything. Following the tutorial
  255. given we get error messages when tyring to invoke rview. These are
  256. the messsages:
  257.  
  258.      rview: cannot  open X-windows; DISPLAY variable set?
  259.      rview: fatal - cannot initalize X
  260.  
  261. The display variable is set to unix:0.0 for any user, it was not clear
  262. that this had to be changed in any way. And these messages occurred
  263. while in X (we run XllR4). If you could give some help in this matter
  264. we would appreciate it, as we would very much like to use this software.
  265.  
  266.                                   Thank you,
  267.  
  268.                                    Michele Buselli
  269.                                    State University of New York - Albany
  270.                                    (518) 442-4279
  271.  
  272. ...some back and forth, then:
  273.  
  274. From greg Wed Jun 27 11:23:12 1990
  275. To: mb@cs.albany.edu
  276. Subject: Re:  RADIANCE
  277.  
  278. Michele,
  279.  
  280. Since you are already linking the X11 driver into rview directly, there
  281. is no need to compile the separate driver program x11dev.  Just remove
  282. it from the DRIVERS definition in your Makefile.  (If you were going to
  283. build x11dev, you would have to add one more special compile similar to
  284. that for x10.o, but as I said, it would be redundant in your case.)
  285.  
  286. If you don't use X10 at all, you should remove the line for x10dev from
  287. devtable.c.  Rview will still compile with it in, but without building
  288. x10dev, this driver would not function.
  289.  
  290. Perhaps I should better explain how drivers work in rview.  A driver
  291. is an interface to the rview program that provides a few basic graphics
  292. input and output functions, which are described in driver.h in some
  293. detail.  There are two basic driver types, drivers that are linked to
  294. rview directly, and standalone programs that talk to rview via a pair
  295. of UNIX pipes.  Due to efficiency considerations, linked drivers are usually
  296. preferred, but there are a few reasons for having standalone drivers
  297. instead:
  298.  
  299.     1) The libraries used by the driver are incompatible with
  300.         other program requirements or drivers.  (Eg. sunview
  301.         libraries prevent the use of UNIX signal facilities,
  302.         and X10 and X11 calls interfere.)
  303.  
  304.     2) The libraries are only supported on certain machines.
  305.  
  306.     3) The driver's libraries result in a huge program.  (Eg. when
  307.         I attempted to link rview to sunview in the past, the
  308.         compiled program quadrupled in size!)
  309.  
  310.     4) Standalone drivers can be compiled without changing any of
  311.         the code for rview, thus avoiding the need for source
  312.         recompilation.
  313.  
  314. In your case, you will still need to compile sundev as a standalone
  315. driver, but you can link to x11 directly (as your Makefile does already).
  316. Compile x10dev only if you are still using X10 on some machines.
  317.  
  318. -Greg
  319.  
  320. From mb@cs.albany.edu Wed Jun 27 14:54:11 1990
  321. To: greg@hobbes.lbl.gov
  322. Subject:  RADIANCE
  323.  
  324. Hi Greg,
  325.  
  326. Thanks very much. The Makefile compiled just fine. I'm in the process
  327. of looking through the rest to see if I need to make any changes. At
  328. first glance, there doesn't seem to be a need for this. Just out of
  329. curiosity, what kind of environment do you run Radiance under?
  330.  
  331. Michele
  332.  
  333. From greg Wed Jun 27 15:05:57 1990
  334. To: mb@cs.albany.edu
  335. Subject: Re:  RADIANCE
  336.  
  337. Hi Michele,
  338.  
  339. The environment here is sunny most of the summer, although we do get some
  340. fog in the mornings (which is nice because things cool down then).
  341. Oh -- I guess you mean what kind of computer environment, huh?
  342.  
  343. I have a single Sun-3/60 running SunOS 3.5 and X10R4, and it hasn't
  344. changed much in the two years since I bought it.  We recently received
  345. a grant from Apple and have been running the programs on a MacIntosh
  346. IIcx running A/UX 1.1.1 and X11R3.  (We have just ordered A/UX 2.0.)
  347. The architecture department at UCB, which has been using Radiance quite
  348. a bit, is running mostly Sun computers, although they were recently
  349. given about 10 Silicon Graphics IRIS workstations and I am in the
  350. process of getting drivers up on those machines.
  351.  
  352. I don't use sunview much myself, though I have easy access to it.  By far
  353. the environment Radiance has been used and tested in most heavily is Sun-3's
  354. running SunOS 3.5 or 4.0 and X10.  I wish I had better contact with people
  355. using the software on different systems, so I could incorporate their
  356. modifications and additions back into the distributed code, but I don't
  357. communicate much with folks outside of UCB.
  358.  
  359. -Greg
  360.  
  361. ----------
  362. From emo@cica.indiana.edu Wed Aug 15 07:41:29 1990
  363. To: greg@hobbes.lbl.gov
  364. Subject: why luminance intensities so low???
  365.  
  366. Why is it the case that the radiance values output from ies2rad
  367. seem to be woefully low?  It's not unusual for the initial values
  368. to have to be increased by factors of 3-10.  Is there some trick
  369. I'm missing that can be played with the '-dX' option to ies2rad?
  370.  
  371. For instance, if one were to set up an actual IES lighting device
  372. 10 feet from a white wall the visual impact of that illumination
  373. is much more profound than that obtained by simulating the same IES
  374. light source in Radiance projected onto a white wall 10' away.
  375.  
  376. Any clues/suggestions?
  377.  
  378. eric
  379.  
  380. From greg Wed Aug 15 07:54:00 1990
  381. To: emo@cica.indiana.edu
  382. Subject: Re:  why luminance intensities so low???
  383.  
  384. Hi Eric,
  385.  
  386. Thanks for spotting the inconsistency in func.c!  I will fix it on
  387. future distributions.  (I think only one other went out with the wrong
  388. version.)
  389.  
  390. As far as the low light levels are concerned, you must specify the
  391. same units to ies2rad with the -dX option as you are using in your
  392. scene.  Other than that, you must also realize that the image you
  393. get from rpict is not exposure-adjusted, and you will probably have
  394. to use pfilt to get a nice picture.  The pixel values in the file
  395. correspond to radiance, which is not always in the right range for
  396. display.  Pfilt fixes that.
  397.  
  398. -Greg
  399.  
  400. From emo@cica.indiana.edu Wed Aug 15 09:06:00 1990
  401. To: greg@hobbes.lbl.gov
  402. Subject: using pfilt
  403.  
  404. Could you send me a bit more info on using 'pfilt' to obtain
  405. an exposure-adjusted image?  Is the 'one-pass' option better
  406. in this regard?  What about using the other 'filtering' functions?
  407.  
  408. eric
  409.  
  410. From greg Wed Aug 15 18:22:53 1990
  411. To: emo@cica.indiana.edu
  412. Subject: Re:  using pfilt
  413.  
  414. Pfilt without any options just does an automatic exposure adjustment.
  415. The -1 option is faster, but only works if you know already what
  416. exposure to set.  If you had run pfilt before, then getinfo printed
  417. a line from the final picture saying:
  418.  
  419.     EXPOSURE=3.52
  420.  
  421. then you could run pfilt -1 -e 3.52 the next time and get the same
  422. picture a little bit faster.
  423.  
  424. The other options are for anti-aliasing and rely on turning a big,
  425. high-resolution picture into a smaller, anti-aliased picture.  The
  426. -r option (with a value of .6 or so) produces a nicer image at a
  427. slightly higher processing cost.
  428.  
  429. -Greg
  430.  
  431. ---------
  432. From emo@cica.indiana.edu Sun Sep  2 14:55:54 1990
  433. To: greg@hobbes.lbl.gov
  434. Subject: large polyhedra
  435.  
  436. Greetings Greg.
  437.  
  438. Another of the projects I am working on involves some astronomers who
  439. produce large-ish data sets, on the order of 65x65x15 (symmetric about
  440. x-z plane).  We then use a modified marching-cubes 3D contouring algorithm 
  441. to resolve certain polyhedra of interest, e.g. surfaces w/ specific gas density.
  442. These polyhedra are sometimes composed of 40,000+ discrete polygons
  443. (actually, triangles).  Converted to Radiance 'polygon' format,
  444. this file becomes ~9+ Mb and 'oconv' crashes when producing the .oct
  445. file, indicating that it is out of 'object space'.
  446.  
  447. Thus, I have two questions:
  448.  
  449. 1. by modifying MAXOBJBLK in object.h and recompiling 'oconv' can
  450. I increase the available space for object storage and thereby permit
  451. the loading of my 9+ Mb polyhedra specification?
  452.  
  453. 2. alternatively, I would like to simply be able to load a .geom
  454. file, composed of a vertex table and edge list for each discrete
  455. polygon.  Looking at the code in 'readobj.c', it's not clear how
  456. I can go about implementing the code to interface to this new kind
  457. of 'object'.  What would you suggest?
  458.  
  459. As always, thanks for the support!
  460.  
  461. eric
  462.  
  463. From emo@cica.indiana.edu Sun Sep  2 14:58:24 1990
  464. To: greg@hobbes.lbl.gov
  465. Subject: polyhedra size
  466.  
  467. I just discovered that some of the contour surface have upwards of 80,000
  468. polygons in their specification.
  469.  
  470. One more question:  when approaching 100K polygons, am I going to run into
  471. performance bottlenecks in Radiance's implementation.  In other words,
  472. is it realistic to expect rapid renderings, esp. using 'rview', of
  473. such large polyhedra?
  474.  
  475. Thanks.
  476.  
  477. eric
  478.  
  479. From greg Sun Sep  2 16:16:10 1990
  480. To: emo@cica.indiana.edu
  481. Subject: Re:  polyhedra size
  482.  
  483. Hi Eric,
  484.  
  485. I was wondering when someone would want to start working with huge models.
  486. The main concern is, do you have enough memory?  The performance of oconv
  487. O(N), meaning 100,000 surfaces should take 100 longer than 1000 surfaces
  488. to convert.  That is actually going to be your main cost in terms of time.
  489. Rview and rpict have an O(n^.33) intersection algorithm, so 100,000 surfaces
  490. in general will take roughly 4.5 times longer than 1000 surfaces.
  491.  
  492. I don't recommend implementing a vertex sharing polygon structure.  I have
  493. considered such a model, and it doesn't save much space -- especially for
  494. triangles.  You are better off just changing the definitions as you suggested.
  495.  
  496. Besides increasing MAXOBJBLK in object.h (you might try 2047 or 4095 to start),
  497. you will have to change the type of OBJECT from short to int (or long).  Also,
  498. you will probably need to increase MAXOBLK in octree.h to 8191 or more or you
  499. will run out of octree space when running oconv.  Also, for better performance,
  500. you should probably increase OSTSIZ in objset.c a like amount, using a prime
  501. number.  (I suggest you start with 12329.)
  502.  
  503. I hope you have done a "back of the envelope" calculation to figure out how
  504. much memory this is all going to take.  You may find yourself in over your
  505. head in a hurry.  For example, I have 16M on my machine, and it starts to
  506. choke on models of around 18,000 surfaces.
  507.  
  508. Let me know how it goes and if you run into any other errors.
  509.  
  510. -Greg
  511.  
  512. -------------
  513. From arthur@abies.cfnr.colostate.edu Mon Oct  8 23:04:48 1990
  514. To: GJWard@Csa1.lbl.gov
  515. Subject: RADIANCE
  516.  
  517. Hello Greg;
  518.  
  519.     If you recall, I first made contact with you last winter.
  520. I have recently attempted to tackle RADIANCE again.  The Tutorial
  521. available in the updated version gave me hope!  I do find it very
  522. cryptic, however.  Do you offer short courses in RADIANCE ?  I would
  523. gladly fly out for instruction.  I am unable to progress rapidly
  524. enough. ANy suggestions?
  525.  
  526.  
  527. D. Arthur Sampson
  528. Dept. Forest and Wood Sciences
  529. Colorado State University
  530.  
  531. Ph.D. Student
  532.  
  533. From greg Tue Oct  9 10:45:02 1990
  534. To: arthur@abies.cfnr.colostate.edu
  535. Subject: Re:  RADIANCE
  536.  
  537. We are going to have a meeting on Radiance and Superlite (a daylighting
  538. analysis program) this January at LBL, and might be able to work a short
  539. tutorial into it.  If that's too far away for you, and you have a little
  540. money to spend, I might be able to recommend someone who has an excellent
  541. background in using the software to serve up some private lessons.
  542.  
  543. -Greg
  544.  
  545. From arthur@abies.CFNR.ColoState.EDU Tue Oct  9 11:53:43 1990
  546. To: greg@hobbes.lbl.gov
  547. Subject: RADIANCE meeting
  548.  
  549. Hi;
  550.     I would be interested in seeing an agenda for the meeting,
  551. or if a Tutorial is appropriate for my request (Would I be 
  552. welcome in the meeting?), that would work nicely. Also, of 
  553. interest now is this Superlite program you mentioned.
  554.  
  555. Arthur
  556.  
  557. ------------
  558. End of Radiance Digest v1n1
  559.  
  560. Let me know if this has been useful to you.  It is not my intention to
  561. flood people's boxes with unread mail.
  562.  
  563. -Greg
  564.