POV-Ray : Newsgroups : povray.general : Rotate list : Re: Rotate list Server Time
7 Aug 2024 11:23:22 EDT (-0400)
  Re: Rotate list  
From: Tom Bates
Date: 24 Nov 2001 02:50:17
Message: <3bff5139@news.povray.org>
Bill DeWitt <bde### [at] cflrrcom> wrote in message
news:3bf6acf8$1@news.povray.org...
>
> "Ken" <tyl### [at] pacbellnet> wrote :
> >
> > Perhaps you are merely over complicating things.
>
>     Merely over-complicating... is that an oxymoron?
>
>     One of the best things about POV-Ray, as I am sure you know, is that
by
> being very complicated once, you can make things very easy more often. I
> think, after using it most of the morning, that using (for instance)
> zxy(z,x,y) is going to be easier once I get used to it. the thing to do is
> to use xyz(x,y,z) too, so I don't lose the new habit.
>
>

Bill, what kind of macros are these?

Do they actually do the rotations, like this:

#macro zxy(pz,px,py)
  rotate pz*z
  rotate px*x
  rotate py*y
#end

object { MyObject
  zxy(30,45,-60)
}

Or, do they create a vector that can be used for the correct rotation, like
this:

#macro zxy(pz,px,py)
  #local rx = ????;
  #local ry = ????;
  #local rz = ????;
  // I don't know what goes here, I'm working on it.
  <rx,ry,rz>
#end

object { MyObject
  rotate zxy(30,45,-60)
}

Obviously, the first one is easier to do, but the second one is what I'm
trying to figure out.

Do you have some help for me?

Tom Bates


Post a reply to this message

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