Building Radiance 3.5 on Tru64

Hello,

Has anyone any experience building Radiance 3.5 on Compaq tru64
systems ? I am trying this, and having some difficulty.

Initially, I was getting errors in the librt build due to conflicting
definitions of random functions. I have cut down the file random.h
to a minimum (included below) and now can get all the programs built
without errors (although warnings are quite numerous).

On running the oconv program on a file cut from the tutorial I get:

cropwell2$ /opt/pkg/radiance/bin/oconv room.rad
#?RADIANCE
/opt/pkg/radiance/bin/oconv room.rad
FORMAT=Radiance_octree

/opt/pkg/radiance/bin/oconv: fatal - bad # arguments for light "bright"

the room.rad is also included below. Any advice would be welcome.

regards,

Colin Bannister

room.rad:

···

#
# My first scene.
#
#
# The basic primitive format is:
#
# modifier TYPE identifier
# number_string_arguments [string arguments...]
# number_integer_arguments [integer arguments...]
# number_real_arguments [real arguments...]
#
# The special modifier "void" means no modifier.
# TYPE is one of a finite number of predefined types, and
# the meaning of the arguments following is determined by
# this type. (See RADIANCE Reference Manual for details.)
# The identifier may be used as a modifier later
# in this file or in files following this one.
# All values are separated by white space
# (spaces, tabs, newlines).
#

# this is the material for my light source:

void light bright
0
0
3 100 100 100
# red_emission green_emission blue_emission #

# this is the material for my test ball:

void plastic red_plastic
0
0
5 .7 .05 .05 .05 .05
# red green blue specularity roughness #

# here is the light source:

bright sphere fixture
0
0
4 2 1 1.5 .125
# xcent ycent zcent radius #

# here is the ball:
red_plastic sphere ball
0
0
4 .7 1.125 .625 .125

random.h:

/* RCSid $Id: random.h,v 2.9 2003/02/25 02:47:21 greg Exp $ */
/*
* random.h - header file for random(3) and urand() function.
*/

#include "copyright.h"

#define frandom() random()

#define urand(i) frandom()

extern unsigned short *urperm;

--

Dr. Colin Bannister
Information Services Tel: 0115 9513326
Cripps Computing Centre
The University of Nottingham Fax: 0115 9513358
Nottingham NG7 2RD
www: http://www.nottingham.ac.uk/~cczcb/
email: [email protected]

Unless people feel strongly otherwise, I'm going to suggest we move this discussion to the radiance-dev list.

The error you get from oconv suggests that its getting confused about basic types, as the "bad # arguments" should not show up at all unless it thinks the light is a sphere or a face or something.

My first suggestion is that you try building from CVS head, which may be found on the radiance-online.org site under the "download Radiance" link. Download the current experimental bug-fix version, called radiance-HEAD.tgz, and compile from that. If you still get compile errors with the latest random.h, please forward them directly to me and I'll see what I can do. It's probably best to send me the entire output of makeall.

-Greg
[email protected]

···

Begin forwarded message:

From: Colin Bannister <[email protected]>
Date: Wed Jul 2, 2003 2:15:43 AM US/Pacific
To: [email protected]
Subject: [Radiance-general] Building Radiance 3.5 on Tru64

Hello,

Has anyone any experience building Radiance 3.5 on Compaq tru64
systems ? I am trying this, and having some difficulty.

Initially, I was getting errors in the librt build due to conflicting
definitions of random functions. I have cut down the file random.h
to a minimum (included below) and now can get all the programs built
without errors (although warnings are quite numerous).

On running the oconv program on a file cut from the tutorial I get:

cropwell2$ /opt/pkg/radiance/bin/oconv room.rad
#?RADIANCE
/opt/pkg/radiance/bin/oconv room.rad
FORMAT=Radiance_octree

/opt/pkg/radiance/bin/oconv: fatal - bad # arguments for light "bright"

the room.rad is also included below. Any advice would be welcome.

regards,

Colin Bannister

room.rad:

#
# My first scene.
#
# The basic primitive format is:
#
# modifier TYPE identifier
# number_string_arguments [string arguments...]
# number_integer_arguments [integer arguments...]
# number_real_arguments [real arguments...]
#
# The special modifier "void" means no modifier.
# TYPE is one of a finite number of predefined types, and
# the meaning of the arguments following is determined by
# this type. (See RADIANCE Reference Manual for details.)
# The identifier may be used as a modifier later
# in this file or in files following this one.
# All values are separated by white space
# (spaces, tabs, newlines).
#

# this is the material for my light source:

void light bright
0
3 100 100 100
# red_emission green_emission blue_emission #

# this is the material for my test ball:

void plastic red_plastic
0
5 .7 .05 .05 .05 .05
# red green blue specularity roughness #

# here is the light source:

bright sphere fixture
0
4 2 1 1.5 .125
# xcent ycent zcent radius #

# here is the ball:
red_plastic sphere ball
0
4 .7 1.125 .625 .125

random.h:

/* RCSid $Id: random.h,v 2.9 2003/02/25 02:47:21 greg Exp $ */
/*
* random.h - header file for random(3) and urand() function.
*/

#include "copyright.h"

#define frandom() random()

#define urand(i) frandom()

extern unsigned short *urperm;

--

Dr. Colin Bannister
Information Services Tel: 0115 9513326
Cripps Computing Centre
The University of Nottingham Fax: 0115 9513358
Nottingham NG7 2RD
www: http://www.nottingham.ac.uk/~cczcb/
email: [email protected]