From: Simon
Subject: lining up with a vector
Date: 9 Oct 2007 19:12:26
Message: <470c0ada@news.povray.org>
Hi, wonder if anyone can help me...
I have an cylinder (think tree) at the origin oriented so that the top is in
the +y direction and the bottom is located at the origin
I'm using trace to work out the location (and normal) of a heightfield to
"plant" the tree.
Now what I need to do is work out how to use that normal to (initially) make
sure the cylinder is perpendicular to the surface at the point. After I've
got this bit, I'll attenuate the rotation so I can't have horizontal trees.
Can someone please point me in the right direction?
Thanks in advance
Simon
From: Warp
Subject: Re: lining up with a vector
Date: 9 Oct 2007 19:32:27
Message: <470c0f8b@news.povray.org>
Simon <povray@*nospam*soware.co.uk> wrote:
> Can someone please point me in the right direction?
http://povray.org/documentation/view/3.6.1/488/
Especially Reorient_Trans() and Point_At_Trans() may be of interest.
--
- Warp
From: Simon
Subject: Re: lining up with a vector
Date: 10 Oct 2007 06:35:27
Message: <470caaef$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:470c0f8b@news.povray.org...
> Simon <povray@*nospam*soware.co.uk> wrote:>> Can someone please point me in the right direction?>> http://povray.org/documentation/view/3.6.1/488/>> Especially Reorient_Trans() and Point_At_Trans() may be of interest.>> -- > - Warp
Thanks very much, it's much appreciated
Regards,
Simon