[Radiance-general] Problem whith file.oct

Thomas Bleicher tbleicher at googlemail.com
Thu Jul 19 06:26:10 PDT 2012


Hi Imene

The RAYPATH environment variable tells the Radiance binaries where to
search for files if they can't be found in the current directory. In your
case with the command

!xform -t 1 1.5 0 chair.rad

Radiance expects the file "chair.rad" in the current directory, that is the
directory where you issue the "oconv" command. Since you have the chair.rad
and table.rad files in a subdirectory called "objects" you should use the
following line to place your scene elements:

!xform -t 1 1.5 0 objects/chair.rad

Try this first before you start to fiddle with the RAYPATH variable.

BTW: A common way to organize your scene files is to keep all your geometry
in a "objects" directory (and optionally a "skies" directory for sky files
and so on). Then you create a single file "scene.rad" that only references
the files in the "objects" directory via "!xform" commands:

!xform materials.rad
!xform skies/sunny_sky.rad

!xform objects/room.rad
!xform -t 1 1.5 0 objects/chair.rad
!xform -t 1.5 1.5 0 objects/table.rad


Then you only need the command

oconv scene.rad > scene.oct

to create the octree file. If you want a differente scene you just copy the
scene.rad file and add or remove whichever geometry you want to change.

Regards
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20120719/235bff30/attachment.html>


More information about the Radiance-general mailing list