practical question about radiance

Hi community,
when we create an object in radiance software, for example : simple chair. How can we put it in the room in a specific location? I know, you will tell me that xform is a command that allows this funtion. The problems is that i used xform for the design of the chair itself and it's a bit difficult to use it again to move each element of the chair in the desired location. Is there a command in radiance to create a block called chair ?It will be easy after this to use xform to move the bloc chair in the desired location.
Thank you
Imène

···

___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles

Can you save the geometry of the chair in its own .rad file with an appropriate origin point at the center or corner of the chair extents? Then in your overall scene you can include as many lines as you like to repeat the chair such as:

### full scene rad file

#rest of your scene
materialname polygon name
0 0 4 ...
[other scene geometry]

# one instance of chair moved one unit in x direction
!xform -t 1 0 0 chair.rad
# another instance of chair moved one unit in y direction after rotating it 90deg
!xform -rz 90 -t 0 1 0 chair.rad
# a 2x2 array of chairs after starting 2 units in the y direction
!xform -t 0 2 0 -a 2 -t 0 1 0 -a 2 -t 1 0 0 chair.rad

#rest of scene
[other scene geometry]

···

-----Original Message-----

Is there a command in radiance to create a block called chair ?

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

I tried your method and it worked
thank you very much Christopher
imène

···

Message du 16/07/12 à 16h34
De : "Christopher Rush"
A : "Radiance general discussion"
Copie à :
Objet : Re: [Radiance-general] practical question about radiance

Can you save the geometry of the chair in its own .rad file with an appropriate origin point at the center or corner of the chair extents? Then in your overall scene you can include as many lines as you like to repeat the chair such as:

### full scene rad file

#rest of your scene
materialname polygon name
0 0 4 ...
[other scene geometry]

# one instance of chair moved one unit in x direction
!xform -t 1 0 0 chair.rad
# another instance of chair moved one unit in y direction after rotating it 90deg
!xform -rz 90 -t 0 1 0 chair.rad
# a 2x2 array of chairs after starting 2 units in the y direction
!xform -t 0 2 0 -a 2 -t 0 1 0 -a 2 -t 1 0 0 chair.rad

#rest of scene
[other scene geometry]

-----Original Message-----
> Is there a command in radiance to create a block called chair ?

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles

Hi Imene,

There are several way to accomplish this. If we assume that you have a separate file for your chair object called "simple_chair.rad" with its origin at the lowest point midway between the front legs and facing along positive X (for example), here are a few ways to place the chair or multiple copies of the chair in your scene.

In a new file called "scene_chairs.rad" you could use xform as follows:

    !xform -rz 90 -t 10 0 0 simple_chair.rad
    !xform -rz 270 -t 10 5 0 simple_chair.rad

This should place two chairs (simple_chair.rad) 5 units apart from each other in Y located 10 units from the origin in X.

However if you are going to do lots of repeated instances of the chair, it would be better to use real octree instances as these will save on memory. To do this you need to do the following:

Step 1: compile the chair object into a frozen octree - assumes that the materials are in a separate file

        oconv -f mats.simple_chair.rad simple_chair.rad > simple_chair.oct

        NOTE that this creates what is known as a "frozen" octree which
        basically means that the materials and geometry are all compiled
        together and changes to any of the base rad files will NOT
        effect the octree....

Step 2: create a file called - "simple_chair.instance.rad" and input the following

        void instance my_simple_chair_instance
        7 simple_chair.oct -s 1.0 -t 0.0 0.0 0.0
        0

Step 3: place your chair object (for example in scene_chairs.rad):

    !xform -rz 90 -t 10 0 0 -a 20 -t 2.5 0 0 simple_chair.instance.rad
    !xform -rz 270 -t 10 5 0 -a 20 -t 2.5 0 0 simple_chair.instance.rad

assuming that I did this correctly this would create 2 rows (offset by 10 units in X from the origin) of 20 chairs each facing each other at a distance of 5 units in Y.

I hope this helps.

-Jack

···

--
# Jack de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

On 7/16/2012 10:15 AM, [email protected] wrote:

Hi community,
when we create an object in radiance software, for example : simple chair. How can we put it in the room in a specific location? I know, you will tell me that xform is a command that allows this funtion. The problems is that i used xform for the design of the chair itself and it's a bit difficult to use it again to move each element of the chair in the desired location. Is there a command in radiance to create a block called chair ?It will be easy after this to use xform to move the bloc chair in the desired location.
Thank you
Imène

___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general