POV-Ray : Newsgroups : povray.general : Objects on a slope : Re: Objects on a slope Server Time
31 Jul 2024 12:16:21 EDT (-0400)
  Re: Objects on a slope  
From: Jim Holsenback
Date: 13 Mar 2007 13:39:23
Message: <45f6efdb@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:45f6cb0a@news.povray.org...
>  I'm not exactly sure what is it that you want to to do exactly.
>
>  I understood that you wanted to reorient the objects so that they are
> parallel to the heightfield surface where they are laying on.
>
>  When you used trace() to get the location of that point on the 
> heightfield
> where you want to place the object, you can get the normal vector of the
> heightfield at that point (using the fourth parameter of trace()).

Ahhhh ..... I see what I was doing wrong!!!!

#local Intercept = trace (Target, Start, Location - Start ,Norm);

I was using:
object {Object rotate y*(360 * DFactor) scale (0.1 * DFactor) Reorient_Trans 
(Intercept,SLoc) translate Intercept}
when I restated my problem ....

instead of:
object {Object rotate y*(360 * DFactor) scale (0.1 * DFactor) Reorient_Trans 
(y,Norm) translate Intercept}

I should have been using Norm (the 4th parameter of trace) .... works 
now!!!!

Sorry for the confusion!!! You've been very helpful, and I appreciate ALL 
your efforts.

Jim


Post a reply to this message

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