this is mike stephens at waterways experiment station (wes) in vicksburg, miss.
i just got the 5th release of your program radiance 1.4 and plan to use it
for several projects we have going on at the scientific visualization center
(svc).
i have tried to compile it on our sgi (4D) boxes and have run into some
problems. i was wondering what sgi machines you have successfully
installed radiance on?
i get errors in the 'malloc.c' routine (v_pageshift not defined)
also things in tty.c get 'twisted' somehow.
we are running irix ver 3.3.2 on our sgi's.
any help on this would be greatly
appreciated.
thanks,
mike
(stephens@slowhand.wes.army.mil)
Date: Wed, 17 Jul 91 08:57:27 +0200
From: greg (Greg Ward)
To: stephens@minnie.wes.army.mil
Subject: Re: radiance
Hi Mike,
You need to change the COMPAT=malloc.o to COMPAT=bmalloc.o in the
Makefiles in the src/rt and src/ot directories. The memory stuff
has not been very well standardized under System V, so some of the
definitions in my malloc.c cause trouble for some implementations.
The routines in tty.c are really written for BSD derivatives, and
don't work for any System V Unix's, but this module is only used
by the AED 512 driver, which you probably don't need. I guess I
made an error in my makeall script and included this driver when
I shouldn't have. Anyway, it just won't be made properly --
everything else should work fine. If you want, you can change
the line in makeall under the Silicon Graphics IRIS choice from
special="aed" to special=
I have never tried to compile 1.4 on an IRIS, just 1.3. I no longer
have easy access to an IRIS workstation. (Actually, I have never
had easy access to anything except a Sun 3/60.)
Hope this helps!
-Greg
From: stephens@slowhand.wes.army.mil
To: GJWard@Csa2.lbl.gov
Subject: sgi's and radiance
greg,
many thanks for your quick response!
the malloc problem could have been solved by yours truly if
i had bothered to CAREFULLY read the comments in malloc.c.
oh, well....
instead of the bmalloc=>malloc solution for the sgi anyway
i changed malloc.c so that getpagesize was called as a system
routine (which it is on the sgi irix 3.3.2) and also added
an include because as it wass it couldn't find the type 'daddr_t'
which is in <sys/types.h> in irix 3.3.2.
did this last night after i wrote to you and viola the main
critters got made!! aed still didn't but at least i had the
majority of the goodies to play with.
went in first thing today (7/17) and drew a pretty daffodil!!!
your code is pretty slick...thanks for your efforts...
atta boy... and all that stuff.
take care
mike (stephens@slowhand.wes.army.mil)
-----------
Date: Wed, 17 Jul 1991 13:52 +0200
From: "Sigge Ruschkowski email:f87-sir@nada.kth.se or kjr@ekab1.ericsson.se"
<KJR@kkeka1.ericsson.se>
Subject: Radiance for the Mac
To: greg@hobbes.lbl.gov
Hi Greg,
I read in RTNEWS that there is a version of Radiance
for the Mac. What kind of Macs does Radiance run on?
Sigge
Sweden
Date: Wed, 17 Jul 91 17:28:48 +0200
From: greg (Greg Ward)
To: KJR@kkeka1.ericsson.se
Subject: Re: Radiance for the Mac
Hi Sigge,
Radiance runs under A/UX (Apple's UNIX) on the Mac II family. Since
most folks use the ordinary Mac OS, this doesn't do much good. But,
if you're interested in A/UX for the MacIntosh, it's not all that
expensive and Radiance will run on it. I've been using a Mac IIfx
myself successfully to do animations using Radiance.
A/UX costs around $500 in the US and X11 software is another $200 or so.
The main drawback is that it requires 80+ Mbytes of disk space and X11
doesn't run well unless you have at least 8 Mbytes of RAM. Also,
installation is difficult unless you buy it already installed on an
Apple external drive (very expensive). CD-ROM is the next best
installation method. You don't want the floppy disk product!
-Greg
Date: Thu, 18 Jul 1991 08:02 +0200
From: "Sigge Ruschkowski email:f87-sir@nada.kth.se or kjr@ekab1.ericsson.se"
<KJR@kkeka1.ericsson.se>
Subject: Re: Radiance for the Mac
To: greg@lesosun1.epfl.ch
Hi Greg,
thank you for the answer!
As I am using my MacII/8/170 just for private things and
am just a poor student, I can't afford to by AUX and a
80MB hard drive. We will soon have AUX on some of the
Macs at school and I will get your ray-tracer and try
it out.
Have a nice life,
Sigge
--------------
To: greg@hobbes.lbl.gov
Subject: Radiance1R4.tar.Z
Date: Thu, 18 Jul 91 11:42:39 EDT
From: Scott Hankin <hankin@osf.org>
Howdy -
I've been trying to work with your latest release, and I appear to be
missing some files. When I try to build the cubspace model, make tells me it
doesn't know how to make "proof" which the model depends upon. When I try to
run rview on anything, it fails because it can't open rayinit.cal. I can't find
rayinit.cal in the tree, I deleted the distribution after expanding it, and I am
reluctant to ftp it again to see if it was indeed in the distribution, but
deleted by one of the many makeall clean's I did while getting things going.
Can you help me out with these files? I'd really appreciate it. Thanks.
- Scott
Scott Hankin (hankin@osf.org)
Open Software Foundation
Date: Fri, 19 Jul 91 08:54:05 +0200
From: greg (Greg Ward)
To: hankin@osf.org
Subject: Re: Radiance1R4.tar.Z
Dear Scott,
Sure enough, the critical file "proof" was missing from the distribution.
An over-zealous cleanup job on my part, I'm afraid. I've added it back
in again -- thanks for bringing it to my attention. To save you from
ftp'ing it again (though it's small), I'll send you the file in the next
message.
The rayinit.cal file (and other essential library files) come in the ray/lib
directory of the distribution. They are not deleted by any cleanup procedure
I wrote, but you may not have remembered to set the RAYPATH environment
variable to tell the programs where to find this directory. The makeall
script is supposed to do this automatically, but it only works if you
tell it to go ahead and install the library in the location you select.
You can always set the RAYPATH variable manually with a line in your
.login file like so:
setenv RAYPATH .:/installpath/ray/lib
Where "installpath" is replaced with the place you installed the distribution.
Hope this helps!
-Greg
To: "(Greg Ward)" <greg@lesosun1.epfl.ch>
Subject: Re: Radiance1R4.tar.Z
Date: Fri, 19 Jul 91 09:47:43 EDT
From: Scott Hankin <hankin@osf.org>
It does indeed. Thanks for the info - things are up and running great even
as we speak. It seems that in a moment of insanity (and a temporary shortage of
disk space) I removed the ray/lib subtree - for some reason I had decided it was
generated during the build process. I was obviously wrong.
Thanks for the help, the software, the work it involved - thanks for
everything. I never cease to be amazed at the effort folks like you will put
into things they make available to the public. You are one of the heroes of
learning. I know I will get a great deal out of using and examining Radiance.
Keep up the terrific work!
- Scott
Scott Hankin (hankin@osf.org)
Open Software Foundation
-------------------
The following message is not specifically about Radiance, but it does
get around a bug in the 1.4 release of x11image so take note. By the
way, both x11image (now called just plain old "ximage") and xshowtrace
have been fixed for the next release.
Date: Sat, 20 Jul 91 12:23:12 PDT
From: raja@robotics.berkeley.edu (Raja R. Kadiyala)
To: robotics-users@robotics.berkeley.edu
Subject: xdvi and openwindows
Many have noticed that some programs such as xdvi and xfig do not work
properly under openwindows -- they fail to accept input in the window.
The fix is to tell the window manager to explicitely get input from the window
this is done by putting the following lines in your
.Xresourses/.Xdefaults/.Xdef (or wherever your applications resources are
kept)
xfig.Input: true
xdvi.Input: true
raja
----------------------
Date: Wed, 7 Aug 91 20:09:43 EDT
From: chen@eleceng.ee.queensu.ca (Junan Chen)
To: greg@hobbes.lbl.gov
Subject: Radiance
Status: RO
Hi, Greg:
Thanking you for your mail of July 31. I tried to grab Radiance at midnight,
and successfully got everything I need.
After I installed the Radiance, I found *rview* didn't get compiled. I also
checked the *devtable.c*, and the default_driver is x11_init(), though I
replied "no x10 support" during the installation. I modified default_driver
of devtable.c to *sun*, but *make rview* still doesn't work properly.
The other thing is how to specify the focal length with the command *rpict*.
I checked the reference manual and relevant manual pages, but couldn't find
any direct way to do that.
Could you please give me some hint to my questions.
BTW, we use a sparc-2 station with a 24-bit graphics adaptor which is compatiblewith CG8 and can be set up as 8-bit CG4 as well. Most of the time we use it as
a 8-bit CG4 workstation.
I really appreciate your help.
Junan Chen
Date: Thu, 8 Aug 91 09:46:06 +0200
From: greg (Greg Ward)
To: chen@eleceng.ee.queensu.ca
Subject: Re: Radiance
Hi Junan,
I have had this asked of me before, so I decided to make a little readme
file explaining what to do if you don't have X11 support. I've attached
it to the end of this letter. (When you answered "no" to X10 support,
the script still assumed you had X11 support -- which is very different!)
There is no adjustment for focal length, since the renderers do not have
depth of field in their simple pinhole camera model. If you want this,
you will have to add it yourself. [But see PINTERP topic below -G]
-Greg
--------------
This Radiance distribution assumes that you have X11 support
(ie. a /usr/include/X11 directory and /usr/lib/libX11.a library).
If this is not the case, you will have to make a couple of changes
to the files in the src/rt directory to make "rview" compile properly.
If you are a thorough person, you can also make changes to the Makefile's
in the src/util and src/px directory to avoid some other spurious but
unimportant errors.
The following diffs should be applied to Makefile and devtable.c in the