POV-Ray : Newsgroups : povray.binaries.images : Rotation calculation problem Server Time
16 Aug 2024 08:18:39 EDT (-0400)
  Rotation calculation problem (Message 1 to 3 of 3)  
From: Arie Stavchansky
Subject: Rotation calculation problem
Date: 11 Mar 2002 08:04:27
Message: <64ap8uol71hi0c38lhuo23tcbdh9apr3du@4ax.com>
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

From: Steve
Subject: Re: Rotation calculation problem
Date: 11 Mar 2002 15:14:56
Message: <slrna8q41p.492.steve@zero-pps.localdomain>
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

From: Shay
Subject: Re: Rotation calculation problem
Date: 12 Mar 2002 14:53:07
Message: <3c8e5ca3@news.povray.org>
The problem is that what I *think* you're asking is impossible. Either
rotation or translation could put the text where you want it, but only using
both will orient the text properly.

I would suggest building the box the way you want it and then translating it
as a union.

 -Shay

Arie Stavchansky <nat### [at] hotmlcom> wrote in message
news:64ap8uol71hi0c38lhuo23tcbdh9apr3du@4ax.com...


Post a reply to this message

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