POV-Ray : Newsgroups : povray.newusers : lining up with a vector : lining up with a vector Server Time
28 Jul 2024 20:24:33 EDT (-0400)
  lining up with a vector  
From: Simon
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

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