POV-Ray : Newsgroups : povray.binaries.images : isosurface <> height_field : Re: isosurface <> height_field Server Time
4 Nov 2024 17:54:32 EST (-0500)
  Re: isosurface <> height_field  
From: Thomas de Groot
Date: 2 Mar 2006 03:07:10
Message: <4406a7ae@news.povray.org>
"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


Post a reply to this message

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