rotation

Hi all.

Im back with my spotlights again im afraid. Im havin immense trouble rotating them so that they face the same way. i have tried using a range of values for rx ry and rz in my xform command and keep gettin odd results. instead of rotating my spot they seem to actually move it.

this is incredible frustrating! my xform file is below.

# move display into place

!xform -n display -t 2.4 7 2 display2.rad

# move 3 spotlights into rear of room

!xform -n spot1 -t 1.25 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot2 -t 2.5 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot3 -t 3.75 1 3.8 (-rx -ry -rz being used here) spotc.rad

my spotlight dimensions

spotc_light ring spotc.d
0
0
8
  0 0 -0.00025
  0 0 -1
  0 0.15

i have tried this for a couple of days now and it is beginnin to get my goat. i want them in the same position as in the translate command, just pointing in a different direction. the spotlights defualt is aimed vertical down and i am trying to get them to aim about 45-60 degrees from the horizontal as well as all converged to one point (the display). can anyone please help in this matter before i throw my computer out the window...(probably just throw myself though as the computer can only do what i tell it!)

thanks in advance.

Chris

p.s. thanks for ur display help tom

void light display_light
0
0
3 2.23 2.23 2.23

void mirror display_surface
1 display_light
0
3 0.8 0.8 0.8

(example for something with 80 % reflectance).

···

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

Hi Chris,

i have tried this for a couple of days now and it is beginnin to get my

goat. i want them in the same position >as in the translate command,
just pointing in a different direction. the spotlights defualt is aimed
vertical >down and i am trying to get them to aim about 45-60 degrees
from the horizontal as well as all converged to

one point (the display). can anyone please help in this matter before i

throw my computer out the

window...(probably just throw myself though as the computer can only do

what i tell it!)

Rotate first, then translate to your preferred position.

Ciao,

Francesco

···

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

Hi Chris,

If you change the order you write the translation/rotation commands in
xform it should solve the problem...

The IES file is inserted at XYZ co-ordinate 0,0,0. With your command
you've translated it approx 1m from 0,0,0 and then rotated it in a big
arc around 0,0,0.

!xform -n spot1 -t 1.25 1 3.8 (-rx -ry -rz being used here) spotc.rad

...and it disappears out of your view (zoom out and you'll probably find
it somewhere!)

The answer is to rotate the luminaire first and then place it in
position i.e.

!xform -n spot1 (-rx -ry -rz being used here) -t 1.25 1 3.8 spotc.rad

Hope this helps
Richard

···

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

Hi Chris,

A rotation in Radiance is always done using 0 0 0 as the anchor point for the rotation.

I cannot see your scene from here, but if you rotate after a certain translation, you might get odd results.
I think you should rotate your spot first (and before that make sure its anchorpoint of rotation is located at 0 0 0) and then move it.
so, as an example:

!xform -n spot1 -rx 90 -ry 0 -rz 0 -t 1.25 1 3.8 spotc.rad

should work fine
(instead of: !xform -n spot1 -t 1.25 1 3.8 -rx 90 -ry 0 -rz 0 spotc.rad which is NOT the same )

Consider using replmarks also (see the manpage) , which works also OK for aiming light geometry in a proper direction (and position).
Good luck,

Iebele

···

Hi all.

Im back with my spotlights again im afraid. Im havin immense trouble rotating them so that they face the same way. i have tried using a range of values for rx ry and rz in my xform command and keep gettin odd results. instead of rotating my spot they seem to actually move it.

this is incredible frustrating! my xform file is below.

# move display into place

!xform -n display -t 2.4 7 2 display2.rad

# move 3 spotlights into rear of room

!xform -n spot1 -t 1.25 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot2 -t 2.5 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot3 -t 3.75 1 3.8 (-rx -ry -rz being used here) spotc.rad

my spotlight dimensions

spotc_light ring spotc.d
0
8
        0 0 -0.00025
        0 0 -1
        0 0.15

i have tried this for a couple of days now and it is beginnin to get my goat. i want them in the same position as in the translate command, just pointing in a different direction. the spotlights defualt is aimed vertical down and i am trying to get them to aim about 45-60 degrees from the horizontal as well as all converged to one point (the display). can anyone please help in this matter before i throw my computer out the window...(probably just throw myself though as the computer can only do what i tell it!)

thanks in advance.

Chris

p.s. thanks for ur display help tom

void light display_light
0
3 2.23 2.23 2.23

void mirror display_surface
1 display_light
0
3 0.8 0.8 0.8

(example for something with 80 % reflectance).

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

------------------------------------------------------------------------

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

why not to use replmarks?

draw triangles in your favourite 3d program and use them to feed
xform...

easy and quick...

ciao

···

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of Chris
Foster
Sent: 16 August 2006 09:54
To: Radiance general discussion
Subject: [Radiance-general] rotation

Hi all.

Im back with my spotlights again im afraid. Im havin immense trouble
rotating them so that they face the same way. i have tried using a range
of values for rx ry and rz in my xform command and keep gettin odd
results. instead of rotating my spot they seem to actually move it.

this is incredible frustrating! my xform file is below.

# move display into place

!xform -n display -t 2.4 7 2 display2.rad

# move 3 spotlights into rear of room

!xform -n spot1 -t 1.25 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot2 -t 2.5 1 3.8 (-rx -ry -rz being used here) spotc.rad

!xform -n spot3 -t 3.75 1 3.8 (-rx -ry -rz being used here) spotc.rad

my spotlight dimensions

spotc_light ring spotc.d
0
0
8
        0 0 -0.00025
        0 0 -1
        0 0.15

i have tried this for a couple of days now and it is beginnin to get my
goat. i want them in the same position as in the translate command, just
pointing in a different direction. the spotlights defualt is aimed
vertical down and i am trying to get them to aim about 45-60 degrees
from the horizontal as well as all converged to one point (the display).
can anyone please help in this matter before i throw my computer out the
window...(probably just throw myself though as the computer can only do
what i tell it!)

thanks in advance.

Chris

p.s. thanks for ur display help tom

void light display_light
0
0
3 2.23 2.23 2.23

void mirror display_surface
1 display_light
0
3 0.8 0.8 0.8

(example for something with 80 % reflectance).

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

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

Hi all.

Im back with my spotlights again im afraid. Im havin immense trouble
rotating them so that they face the same way. i have tried using a range
of values for rx ry and rz in my xform command and keep gettin odd
results. instead of rotating my spot they seem to actually move it.

As Francesco pointed out - you're rotating after translating. The rotations
are always performed around the origin (0,0,0). If the object isn't centred
on the origin (as it might not be after a translation) then you'll get
additional "movement". Imagine your lights being on the end of an
imaginary pole that you're swinging about.

Hope this helps,
bye

Giulio,

How would you do this? Do you have an example?

Thanks

Mark

Message: 5

···

Date: Wed, 16 Aug 2006 10:35:26 +0100
From: "Giulio Antonutto" <[email protected]>
Subject: RE: [Radiance-general] rotation
To: "Radiance general discussion"
<[email protected]>
Message-ID:
<C[email protected]>
Content-Type: text/plain; charset="us-ascii"

why not to use replmarks?

draw triangles in your favourite 3d program and use them to feed
xform...

easy and quick...

ciao

1) triangle must be rectangle, the longer leg is the X axis and with the 90° corner in 0,0,0.

2) add to the triangle a line pointing in the main photometric axis

3) displace and rotate the triangle by the 90° corner, copy freely where you wish and use the line to understand where are they looking at.

4) save the file as a radiance file and note the modifier of the triangles, that ideally is the same for all of them (assuming you are placing 1 type of light)

now use:

5) replmarks -x the-object-to-copy.rad modifier-name the-file-with-the-triangles > the-file-with-the-light-in-place

the only variant is to use -i instead of -x but this applies to instances and therefore not good for your task (lights) since instances cannot have light inside.

hope this is a quick hands on,

for further information man replmarks will help :slight_smile:

ciao

G.

···

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Mark de la Fuente
Sent: 16 August 2006 14:51
To: Radiance
Subject: RE: [Radiance-general] rotation

Giulio,

How would you do this? Do you have an example?

Thanks

Mark

Message: 5
Date: Wed, 16 Aug 2006 10:35:26 +0100
From: "Giulio Antonutto" <[email protected]>
Subject: RE: [Radiance-general] rotation
To: "Radiance general discussion"
<[email protected]>
Message-ID:
<C[email protected]>
Content-Type: text/plain; charset="us-ascii"

why not to use replmarks?

draw triangles in your favourite 3d program and use them to feed
xform...

easy and quick...

ciao

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

Hi all.

I'll step in on this:

The basics are spelled out in the man page of 'replmarks'
(not 'xform' as Giulio wrote). He has explained the usage
himself in the meantime. Just two things to note:

1) Check the orientation of the lumiaire or box created by ies2rad.
    For linear luminaires the 'main luminous axis' runs right across,
    not along the luminare. If you have a fitting for a 35 W fluorescent
    tube (about 1.5m long) it will extend from y=-0.75 to y=0.75 while
    the x dimension may only be 0.1 m. The replmark marker therefore
    is orthogonal to the luminare body.

2) Photometric files are usually created with the luminaire pointing
    down, even if the fitting is intended and constructed to light up a
wall.
    Check a photometic plot and decide wether you have to turn around
    the luminaire.

Thomas

···

_____

From: [email protected]
[mailto:[email protected]] On Behalf Of Mark
de la Fuente
Sent: 16 August 2006 14:51
To: Radiance
Subject: RE: [Radiance-general] rotation

Giulio,

How would you do this? Do you have an example?

Thanks

Mark

Message: 5
Date: Wed, 16 Aug 2006 10:35:26 +0100
From: "Giulio Antonutto" <[email protected]>
Subject: RE: [Radiance-general] rotation
To: "Radiance general discussion"
<[email protected]>
Message-ID:
<C[email protected]>
Content-Type: text/plain; charset="us-ascii"

why not to use replmarks?

draw triangles in your favourite 3d program and use them to feed
xform...

easy and quick...

ciao

***********************************************************************************
This e-mail, (and any attachments) is confidential and may be privileged. It may be read, copied and used by the intended addressee only. If you have received this in error please contact BDP immediately.

If you have any queries, please contact the sender.
***********************************************************************************
Building Design Partnership
Registered in England No 2207415:
Registered Office: Building Design Partnership Ltd, Sunlight House, PO Box 85, Quay Street, Manchester, M60 3JA, http://www.bdp.co.uk
***********************************************************************************

Thanks for your help fran, guilio ian richard iebele(<---hope i havent missed anyone out), much appreciated.

Next time i should really try changin the order of the commands rather than just banging my head against a brick wall for two days....headache abound. It works now, of course, and i have my spotlights aimed. thankyou thankyou thankyou

chris

···

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------