.cal files

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