POV-Ray : Newsgroups : povray.general : Ray Intersection Server Time
19 Nov 2024 07:42:21 EST (-0500)
  Ray Intersection (Message 1 to 6 of 6)  
From: Alastair Murray
Subject: Ray Intersection
Date: 30 Apr 2002 12:51:44
Message: <3ccecba0$1@news.povray.org>
What I need is to know the y coordinate of any particular <x,z> coordinate
of a height_field.

I thought this could maybe be done with the Trace macro but I think this is
only for spheres.

Anyone know how I may go about doing this?


Post a reply to this message

From: Christoph Hormann
Subject: Re: Ray Intersection
Date: 30 Apr 2002 13:03:12
Message: <3CCECE50.11888295@gmx.de>
Alastair Murray wrote:
> 
> What I need is to know the y coordinate of any particular <x,z> coordinate
> of a height_field.
> 
> I thought this could maybe be done with the Trace macro but I think this is
> only for spheres.

Which leads to the question why you think 'trace()' is a macro and why it
should only work on spheres...

See: http://www.povray.org/working-docs/id000139.html#6_1_4_6

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 26 Apr. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Tim Nikias
Subject: Re: Ray Intersection
Date: 30 Apr 2002 13:12:32
Message: <3CCED04C.FDF752E4@gmx.de>
I guess it has to do with the docs. When searching for trace, you
get the trace-macro from the SDL-Raytracer within POV,
not the trace() of POV.

Christoph Hormann wrote:

> Alastair Murray wrote:
> >
> > What I need is to know the y coordinate of any particular <x,z> coordinate
> > of a height_field.
> >
> > I thought this could maybe be done with the Trace macro but I think this is
> > only for spheres.
>
> Which leads to the question why you think 'trace()' is a macro and why it
> should only work on spheres...
>
> See: http://www.povray.org/working-docs/id000139.html#6_1_4_6
>
> Christoph
>
> --
> POV-Ray tutorials, IsoWood include,
> TransSkin and more: http://www.tu-bs.de/~y0013390/
> Last updated 26 Apr. 2002 _____./\/^>_*_<^\/\.______

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Alastair Murray
Subject: Re: Ray Intersection
Date: 30 Apr 2002 13:26:45
Message: <3cced3d5$1@news.povray.org>
Regardless, I still need a way of knowing how the y-coordinate at any
particular point on a height field.


"Tim Nikias" <tim### [at] gmxde> wrote in message
news:3CCED04C.FDF752E4@gmx.de...
> I guess it has to do with the docs. When searching for trace, you
> get the trace-macro from the SDL-Raytracer within POV,
> not the trace() of POV.
>
> Christoph Hormann wrote:
>
> > Alastair Murray wrote:
> > >
> > > What I need is to know the y coordinate of any particular <x,z>
coordinate
> > > of a height_field.
> > >
> > > I thought this could maybe be done with the Trace macro but I think
this is
> > > only for spheres.
> >
> > Which leads to the question why you think 'trace()' is a macro and why
it
> > should only work on spheres...
> >
> > See: http://www.povray.org/working-docs/id000139.html#6_1_4_6
> >
> > Christoph
> >
> > --
> > POV-Ray tutorials, IsoWood include,
> > TransSkin and more: http://www.tu-bs.de/~y0013390/
> > Last updated 26 Apr. 2002 _____./\/^>_*_<^\/\.______
>
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
> Email: Tim### [at] gmxde
>
>


Post a reply to this message

From: Mike Williams
Subject: Re: Ray Intersection
Date: 30 Apr 2002 13:47:56
Message: <u$SwSFAAjtz8Ewmb@econym.demon.co.uk>
Wasn't it Alastair Murray who wrote:
>Regardless, I still need a way of knowing how the y-coordinate at any
>particular point on a height field.

#declare Point = trace(My_Heightfield, <X,0,Z>, y);
#declare Y = Point.y;

(Actually that assumes that your height field always has y positive.)

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Alastair Murray
Subject: Re: Ray Intersection
Date: 30 Apr 2002 14:37:14
Message: <3ccee45a$1@news.povray.org>
Cheers, I've got it working now :)


"Mike Williams" <mik### [at] nospamplease> wrote in message
news:u$SwSFAAjtz8Ewmb@econym.demon.co.uk...
> Wasn't it Alastair Murray who wrote:
> >Regardless, I still need a way of knowing how the y-coordinate at any
> >particular point on a height field.
>
> #declare Point = trace(My_Heightfield, <X,0,Z>, y);
> #declare Y = Point.y;
>
> (Actually that assumes that your height field always has y positive.)
>
> --
> Mike Williams
> Gentleman of Leisure


Post a reply to this message

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