POV-Ray : Newsgroups : povray.advanced-users : Trace, Normal: a problem : Re: Trace, Normal: a problem Server Time
2 Nov 2024 03:16:41 EDT (-0400)
  Re: Trace, Normal: a problem  
From: Chris Huff
Date: 28 Jun 2000 13:40:14
Message: <chrishuff-84140E.12401628062000@news.povray.org>
In article <395A2C86.6EDCD317@aol.com>, STB### [at] aolcom wrote:

> Hello. I have a problem regarding the MegaPOV feature, 'trace' and
> surface normals detected by it. I want to rotate objects according to
> the surface normal, to get boxes or other objects to stick out
> perpendicular from slanted surfaces. Here is what I tried, using
> information for the surface normal from trace:
> 
> rotate < Norm.z*90, 0, Norm.x*90 >

That code is wrong. The normal values aren't angles, the normal is an 
ordinary vector. The usual way of doing it is to use a matrix transform, 
try using one of the ReOrient macros drifting around.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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