recompiling ambient.c

Hi ---

I've been trying to render large images using rpict_random and have been
getting the following error:

rpict_random: consistency - address not found in avlmemi

I read your previous messages regarding this and know that I need
to recompile ambient.c with the -Dtracktime=0 switch. Unfortunately, I
don't really know how to do this. Which rmake file do I put this command
in? Where do I need to put it?

I'm new to UNIX so I have been using the precompiled binaries that I
downloaded from the website. I have now downloaded the source code but I
don't want to ruin my existing files by compiling them incorrectly. As I
understand it, I should compile a new version of rpict_random by:

(1) adding the -Dtracktime=0 command to the Rmakefile script that is in
ray/src/rt [although I don't know where to put it]
(2) and then running that Rmakefile script.

I'm guessing that this will produce new executables for the ray-tracing
programs, which I can then place in my ray/radbin_lnx directory. Is this
correct?

Sorry for the rather basic level of these questions. Radiance is
brilliant, I use it for generating realistic stimuli for my psychology
experiments!

Best wishes,
Roland

···

--
r o l a n d f l e m i n g
m i t p e r c e p t u a l s c i e n c e g r o u p
r o o m n e 2 0 4 5 1 e
t e l :: 6 1 7 2 5 8 9 6 7 5

Hi Roland !

What is rpict_random ?? Never heard of it, maybe I missed something.
(probably a normal rpict compiled with -DMC ??)...

For the compiling issue: If you already have the sources, then just
start the normal installation script (follow the README). You will be
asked for a directory, where to put the new executives in. Specify a new
one for that, separate from the one in which your precompiled binaries
are residing. So you won't spoil them no matter what happens during the
compiling of the new ones. Later, you can move them to the place you
want.

Concerning the -Dtracktime=0 switch: You can set this in the rmake
script, as you already know. Just put it among the other -D's at the top
of the file. The ominous rmake resides in the directory where all the
Radiance executives can be found, i.e. the one you specified for putting
the executives in during the installation procedure. During installation
you will be asked if you want to edit the rmake script, this is a good
chance to put in the critical switch, too.

There is one pitfall when you do recompilings later, (without the
installation script): Then the rmake will be searched in the directories
specified by the 'path' environment variable, like every other
executive. So if you gave a 'dummy' directory during installation, you
have to copy the rmake into your ray/radbin_lnx directory, too.

Having done this, you can do recompilngs of just what module you want by
entering the source subdirectory and typing - example:

(in ray/src/rt:)
$> rmake rpict

Good luck !

Carsten

Roland William Fleming wrote:

I'm new to UNIX so I have been using the precompiled binaries that I
downloaded from the website. I have now downloaded the source code but I
don't want to ruin my existing files by compiling them incorrectly. As I
understand it, I should compile a new version of rpict_random by:

(1) adding the -Dtracktime=0 command to the Rmakefile script that is in
ray/src/rt [although I don't know where to put it]
(2) and then running that Rmakefile script.

I'm guessing that this will produce new executables for the ray-tracing
programs, which I can then place in my ray/radbin_lnx directory. Is this
correct?

Perfect! Obviously you're not THAT new to UNIX! :^)

--The other Roland

···

--
"Life is too short for core dumps"