|
|
"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
|
|