[Radiance-general] rotation
iebele
info at iebele.nl
Wed Aug 16 11:33:11 CEST 2006
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
> 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
> -------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Radiance-general mailing list
>Radiance-general at radiance-online.org
>http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
More information about the Radiance-general
mailing list