POV-Ray : Newsgroups : povray.advanced-users : Simple one : Re: Simple one Server Time
28 Jul 2024 10:23:20 EDT (-0400)
  Re: Simple one  
From: Orchid XP v2
Date: 12 Mar 2006 06:41:35
Message: <441408ef$1@news.povray.org>
>>OK, this is going to take somebody about 3 seconds to answer I would 
>>think...
>>
>>I have an object who's surface normal is +Y. I need to rotate it in such a 
>>way that its surface normal becomes equal to a user-supplied vector. How 
>>do I figure out the necessary angles?
> 
> 
> Unless you actually need to know the angles you can reorient an object 
> without knowing them by using Point_At_Trans(YAxis) or Reorient_Trans(Axis1, 
> Axis2) from transforms.inc.
> 
> These both rotate the object around an axis perpendicular to the plane that 
> both the initial vector and the final vector lie on.

Right. That should work...


Post a reply to this message

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