POV-Ray : Newsgroups : povray.binaries.images : isosurface <> height_field : Re: isosurface <> height_field Server Time
4 Nov 2024 17:57:25 EST (-0500)
  Re: isosurface <> height_field  
From: Bruno Cabasson
Date: 2 Mar 2006 03:40:01
Message: <web.4406ae9612c4035382fc96790@news.povray.org>
"Thomas de Groot" <t.d### [at] internlnet> wrote:
> "Vincent LE CHEVALIER" <gal### [at] libertysurffr> schreef in
> bericht news:4405babf@news.povray.org...
> > The problematic code is :
> >
> > [...]
> > isosurface {
> >    function {y - P(x, 0, 1-z)}
> > [...]
> >
> > which you can replace with
> >
> > [...]
> > isosurface {
> >    function {y - P(x, 0, -z)}
> > [...]
> >
> > which works fine :-) Amazing what a nasty char can do...
> >
> > The explanation is that you just want to reverse the z-axis to be
> > coherent with the height field. By writing  P(x, 0, 1-z) not only do you
> > reverse the z axis, but you translate it as well...
> >
> > Hope this helps
> >
>
> oh-oh! A little error in Mike's tutorial, eh? :-)
> I shall try this out! Thanks a lot!
>
> Thomas

Mike's code works OK, and his tutorial is fantastic. It just adresses a
different portion of the pattern (not centered, see mountain4.pov example:
the isosurface is contained_by { box {<0,0,0>, <1,1,1>}}, and not <-1/2,
-1/2, -1/2>, <1/2, 1/2, 1/2>). If you 'recenter' Mike's code, you get the
same.

   Bruno


Post a reply to this message

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