POV-Ray : Newsgroups : povray.newusers : lining up with a vector Server Time
31 Oct 2024 16:16:40 EDT (-0400)
  lining up with a vector (Message 1 to 3 of 3)  
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


Post a reply to this message

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


Post a reply to this message

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


Post a reply to this message

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