|
|
Hi Everybody! It's been a while since I posted here, and it's good to
see all the work is flowing out. I haven't had time to use POV Ray in
some time but want to get back working on it.
I do, however, have a question that some of you may be able to help
with. It involves rotations.
Let's say I make a rectangle, and then apply a 3D
trasform filter. I have extruded it and rotated it with NO
PERSPECTIVE. Then I decide I want to place text on at least two sides
of the new 3D box. Well, I know for certain that I can accurately
rotate (in 3D space) a text object to match one sides, but how can I
accurately place text on the other sides of the box so that it matches
the angle of this side. In other words, how can I find out the angles
of which to rotate objects so that they match any side of the
transformed rectangle? I imagine that this is simply a math problem,
but don't know how to approach it. For example, if you rotate a
rectangle and extrude it, then you should be able to calculate the
angle for all sides of the box. Am I mistaken?
Please see the following graphic to gain a clearer sense of what I am
speaking of:
http://www.contrib.andrew.cmu.edu/~arie/problem
Thank you for your time and help!
Post a reply to this message
|
|
|
|
On Mon, 11 Mar 2002 08:02:51 -0500, Arie Stavchansky wrote:
> Hi Everybody! It's been a while since I posted here, and it's good to
> see all the work is flowing out. I haven't had time to use POV Ray in
> some time but want to get back working on it.
>
> I do, however, have a question that some of you may be able to help
> with. It involves rotations.
It's better to post questions that don't include binaries to
povray.newusers or povray.general.
--
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve
Post a reply to this message
|
|