POV-Ray : Newsgroups : povray.unofficial.patches : Using trace : Re: Using trace Server Time
6 Oct 2024 11:39:31 EDT (-0400)
  Re: Using trace  
From: Andrea Ryan
Date: 22 Jul 2001 22:56:23
Message: <3B5B8E46.DBAE87BD@global2000.net>
Rune wrote:
> 
> "Andrea Ryan" wrote:
> > #declare Start = <xtrans,10000,ztrans>;
> > #declare Inter =
> > trace ( Island, Start, <xtrans,-10000,ztrans>);	<--- I thought that it would go
toward this point.

But it's a vector and they have a initial point which is Start, and a
direction, which should be -y as you suggested.
> >
> > object { tower translate <xtrans,0,ztrans>+Inter*y }
> 
> The third parameter in trace is a direction, not a point.
> 
> Try the following (not tested):
> 
> > #declare Start = <xtrans,10000,ztrans>;
> > #declare Inter =
> > trace ( Island, Start, -y);		<--- This worked.
> >
> > object { tower translate Inter }
> 
> Hope that helps!
> 
Yes, it worked.  Thank you.  Time to move the tower around and add some
textures to it...
Brendan


Post a reply to this message

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