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:27:59 EDT (-0400)
  Re: Can you use the trace command on a heightfield?  
From: Warp
Date: 12 Apr 2010 07:47:59
Message: <4bc3086f@news.povray.org>
Dre <and### [at] gmailcom> wrote:
> "Warp" <war### [at] tagpovrayorg> wrote in message 
> news:4bbebfde@news.povray.org...
> > Dre <and### [at] gmailcom> wrote:
> >> No it parses correctly, however none of the intersections are correct, 
> >> they
> >> are all either at <0, 0, 0> or some weird location.
> >
> >  Because you are not shooting the rays towards <0, -1, 0>.
> >
> > -- 
> >                                                          - Warp

> I believe I am shooting them in that direction, they are starting at <x, 10, 
> z> and finishing at <x, -10, y>, thats towards <0, -1, 0> in my mind or am I 
> wrong here?

  You are shooting them towards <x, -10, y>, not towards <0, -1, 0> because
that's what you are telling trace() to do.

  You have to do it like this:

trace(TheObject, <X, 10, Z>, <0, -1, 0>, TheNormal)

-- 
                                                          - Warp


Post a reply to this message

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