POV-Ray : Newsgroups : povray.general : Can you use the trace command on a heightfield? : Re: Can you use the trace command on a heightfield? Server Time
30 Jul 2024 06:18:17 EDT (-0400)
  Re: Can you use the trace command on a heightfield?  
From: Dre
Date: 11 Apr 2010 20:21:52
Message: <4bc267a0@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:4bbebfaf@news.povray.org...
> Dre <and### [at] gmailcom> wrote:
>> "Warp" <war### [at] tagpovrayorg> wrote in message
>> news:4bbda1be@news.povray.org...
>> > Dre <and### [at] gmailcom> wrote:
>> >> Yet this does:
>> >
>> >> #declare norm = <0, 0, 0>;
>> >> #declare startPoint =<xPos, 10, zPos>;
>> >> #declare endPoint = <xPos, -10, zPos>;
>> >> trace(object, startPoint, endPoint, norm)
>> >
>> >  I don't think it does (well, not in the way you want). The third
>> > parameter
>> > of trace() specifies a direction, not an endpoint.
>> >
>> >  Probably you want the third parameter to be <0, -1, 0> because that's
>> > the direction you are shooting the rays towards.
>> >
>> > -- 
>> >                                                          - Warp
>
>> Well it does to what I want now that I changed the way I coded it to the
>> example above.  I then modified the norm as you stated but it didn't make
>> any difference at all.  Both my norm and yours are below my start point 
>> so
>> they are essentially shooting the rays in the same direction.
>
>  The normal is the *fourth* parameter. I was talking about the *third*
> parameter, which is the direction. That should be <0, -1, 0>.
>
> -- 
>                                                          - Warp

What difference does it make if its -1 or -10, they are both in the same 
plane.

Or are you saying the 3rd parameters is a direction vector not a final end 
point vector?

Cheers Dre


Post a reply to this message

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