.cal files

Dear subscribers,

I would like to define a .cal file to link a particular discretised
sky luminance distribution with Radiance. Unfortunately, my
knowledge of .cal syntax is very limited and the cal files within
the Radiance distribution don't seem to contain a case of what
I would like to do. If someone could point me towards a location
where I can find some more general documentation or help I
would be very grateful.

Many thanks in advance,

Darren Robinson.

···

************************************
Dr. Darren Robinson
BDSP Partnership
Summit House
27 Sale Place
London, W2 1YR

Tel: +44 (0)20 7298 8383
Fax: +44 (0)20 7298 8393
URL: www.bdsp.com

Hi Darren,

The man page for the "calc" program provides some basic information regarding the syntax of the .cal files, which is quite simple in essence. (http://radsite.lbl.gov/radiance/man_html/calc.1.html\) There are some good examples in Chapter 4 of "Rendering with Radiance," which I naturally recommend to anyone who is using this system. (Rendering with Radiance (The Morgan Kaufmann Series in Computer Graphics): 9781558604995: Computer Science Books @ Amazon.com
102-0825924-1038525) You should also browse the initialization file in ray/src/rt/rayinit.cal, which defines and describes the variables and functions you have access to within the ray tracer.

Hope this helps!
-Greg

···

Dear subscribers,

I would like to define a .cal file to link a particular discretised
sky luminance distribution with Radiance. Unfortunately, my
knowledge of .cal syntax is very limited and the cal files within
the Radiance distribution don't seem to contain a case of what
I would like to do. If someone could point me towards a location
where I can find some more general documentation or help I
would be very grateful.

Many thanks in advance,

Darren Robinson.

Hi there!

I need some help with the .cal files...

1) Is it possible inside a cal file to execute a shell command and use its
properly formatted output ?

I am using a prism2 material, and I would like to cast an other program that I
wrote inside the cal file casted by prism2...

2) alternatively
Is it possible to read a data file inside a cal file ? I want to read different
angular behavior materials with the same cal file... And not to include them IN
the cal file everytime!

Thanx !!!

Jerome

···

---
Jerome Kaempf
LESO / EPFL
1015 Lausanne
Switzerland

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Hi Jerome,

It's generally a bad idea to attempt to do any file i/o when evaluating the expressions in a .cal file, as this would incur a cost at every ray computation. It's better to read and parse a file once, then deal with it in memory.

Certain types of materials can use the .dat file format to handle interpolated tables, but not prism or prism2. For these, you may use the tabfunc program to generate 1-dimensional tables for you, with optional interpolation, and include the output as part of your .cal file.

-Greg

···

Date: Fri, 26 Jul 2002 11:34:13 +0200
From: [email protected]
To: [email protected]
Subject: [Radiance-general] .cal files
Reply-To: [email protected]

Hi there!

I need some help with the .cal files...

1) Is it possible inside a cal file to execute a shell command and use its
properly formatted output ?

I am using a prism2 material, and I would like to cast an other program that I
wrote inside the cal file casted by prism2...

2) alternatively
Is it possible to read a data file inside a cal file ? I want to read different
angular behavior materials with the same cal file... And not to include them IN
the cal file everytime!

Thanx !!!

Jerome