POV-Ray : Newsgroups : moray.win : Local coordinates? Server Time
1 Jul 2024 03:02:16 EDT (-0400)
  Local coordinates? (Message 1 to 5 of 5)  
From: Timothy R  Cook
Subject: Local coordinates?
Date: 21 Feb 2002 20:40:03
Message: <3C75A182.3922E90D@scifi-fantasy.com>
Is there any way to rotate an object about its local axes instead of
world axes without doing it the hard way?  I'm making an iris on a
sphere, and wish to animate it at some point.  Without the ability
to rotate it about local axes, I'd have to set up each frame
manually, which I'd rather not do.
-- 
Tim Cook
http://empyrean.scifi-fantasy.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Local coordinates?
Date: 22 Feb 2002 02:59:19
Message: <9hub7uo250s2tddl5air73uug4m2ck9tlb@4ax.com>
Hi Timothy R. Cook, you recently wrote in moray.win:

> Is there any way to rotate an object about its local axes instead of
> world axes without doing it the hard way?  
Ahhm, objects always rotate about their local axis.... is there
something I'm misunderstanding here?

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Timothy R  Cook
Subject: Re: Local coordinates?
Date: 22 Feb 2002 03:50:04
Message: <3C76063C.6898CEFE@scifi-fantasy.com>
Lutz Kretzschmar wrote:
> Ahhm, objects always rotate about their local axis.... is there
> something I'm misunderstanding here?

Perhaps...problem is this: if you change the local coordinate
rotation of an object, then click/drag in a view to later rotate
it, it rotates around that view's axis, not the object's.  Plus
I'm having a hard time figuring out how to manipulate a triangular
slice of a sphere ...here, I'll post the scene in moray.binaries.
I'm trying to make an iris that I can easily open/close by only
changing one rotation value per piece.  All well and good with
slice occupying the 12-to-1-o'clock position, but if I try to
copy that and rotate it around the world X axis, it screws up
the rotating about its own X axis...for instance, in my scene
file:
CSG Iris01 works the way I want.
CSG Iris02 is a copy of Iris01 without any rotations, local or
    otherwise.  Observe how it rotates when you click/drag.
CSG Iris03 is a copy of Iris01 positioned at one of the reference
    dots (bright green), and rotated in an amount that SHOULD
    make its edge match that of Iris01.  It doesn't.  That and
    watch the values in the rotate input boxes when you click/
    drag it to rotate it.  Strange.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Local coordinates?
Date: 22 Feb 2002 12:32:16
Message: <fnvc7uom3c40j3mjsamno5bhsu837ps2ek@4ax.com>
Hi Timothy R. Cook, you recently wrote in moray.win:

> CSG Iris01 works the way I want.
This is a classic case where you should use reference objects. 

Remove Iris02 and Iris03. Select Iris01 and click the Freeze button.
Click it again (it's now called Modify). Uncheck the Y-axis rotation
and set the limits -65 and -31.5.  This limits the rotation of this
object to the Y-axis in that range, which results in the opening and
closing movement for that one blade.

Now press Ctrl-D to duplicate the Iris. Check the 'Create References'
checkbox and the 'Attach to Same Parent' checkbox. Make 11 copies (for
a total of 12 blades).

Successively select the new reference objects and set their X-rotation
to multiples of 30.

Now to open the iris, simply select Iris01 and rotate it about Y. The
other 11 will follow that movement (that's the nice thing about
reference objects) and the whole thing will open and close.....

Let me know if you have any more questions.....

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Timothy R  Cook
Subject: Re: Local coordinates?
Date: 22 Feb 2002 18:14:27
Message: <3C76D0D0.40A05A2F@scifi-fantasy.com>
Lutz Kretzschmar wrote:
> Now to open the iris, simply select Iris01 and rotate it about Y. The
> other 11 will follow that movement (that's the nice thing about
> reference objects) and the whole thing will open and close.....
> 
> Let me know if you have any more questions.....

WOOHOO!  That works!  ('cept I wanted to lock the X-axis rotation, not
the Y, with a range of 0 to -60)  But that's exactly what I was looking
for!  Trying to open it by hand by rotating Iris01 is sort of strange,
it jiggles a bit, then snaps fully open where it jiggles a bit...have
to enter the value by hand.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.