POV-Ray : Newsgroups : povray.newusers : Isosurfaces doesn't work very well... Server Time
25 Nov 2024 05:32:28 EST (-0500)
  Isosurfaces doesn't work very well... (Message 1 to 4 of 4)  
From: Gyscos
Subject: Isosurfaces doesn't work very well...
Date: 13 May 2006 04:45:01
Message: <web.44659be2a18bc2191ba56a630@news.povray.org>
Hello !
Well i've been trying to use some isosurfaces, i copied the exact source
code from a tutorial, and the output image is ugly. Why ??

Here is the code :

#include "colors"
#declare Check1 = pigment {checker color YellowGreen color OrangeRed}
camera {location <2,1.6,1.2> direction z*1 look_at <0,0,0>}
box {-1,1 pigment {White transmit .7} no_shadow} //montre le conteneur
light_source {<40,50,30> White*2}

isosurface {
        function {x*x + y*y + z*0 - 0.5}
        threshold 0
        contained_by {box {-1,1}}
        max_trace 3
        pigment {Check1}
}

And here is the picture :
http://img142.imageshack.us/img142/1672/objets7eo.th.png


Post a reply to this message

From: Mr Seb
Subject: Re: Isosurfaces doesn't work very well...
Date: 13 May 2006 05:29:41
Message: <4465a705$1@news.povray.org>
This is a problem of max_gradient.

Look at the documentation, chapter 2.3.3.3.10 and 3.4.4

Then, add the line

max_gradient 3

into your isosurface block

news:web.44659be2a18bc2191ba56a630@news.povray.org...
> Hello !
> Well i've been trying to use some isosurfaces, i copied the exact source
> code from a tutorial, and the output image is ugly. Why ??
>
> Here is the code :
>
> #include "colors"
> #declare Check1 = pigment {checker color YellowGreen color OrangeRed}
> camera {location <2,1.6,1.2> direction z*1 look_at <0,0,0>}
> box {-1,1 pigment {White transmit .7} no_shadow} //montre le conteneur
> light_source {<40,50,30> White*2}
>
> isosurface {
>         function {x*x + y*y + z*0 - 0.5}
>         threshold 0
>         contained_by {box {-1,1}}
>         max_trace 3
>         pigment {Check1}
> }
>
> And here is the picture :
> http://img142.imageshack.us/img142/1672/objets7eo.th.png
>
>


Post a reply to this message

From: Gyscos
Subject: Re: Isosurfaces doesn't work very well...
Date: 13 May 2006 05:35:00
Message: <web.4465a82942cf46ca1ba56a630@news.povray.org>
well okay i hadnt seen the FAQ xD


Post a reply to this message

From: Mike Williams
Subject: Re: Isosurfaces doesn't work very well...
Date: 13 May 2006 05:57:12
Message: <ada14HAwaaZEFwA0@econym.demon.co.uk>
Wasn't it Gyscos who wrote:
>Hello !
>Well i've been trying to use some isosurfaces, i copied the exact source
>code from a tutorial, and the output image is ugly. Why ??
>
>Here is the code :
>
>#include "colors"
>#declare Check1 = pigment {checker color YellowGreen color OrangeRed}
>camera {location <2,1.6,1.2> direction z*1 look_at <0,0,0>}
>box {-1,1 pigment {White transmit .7} no_shadow} //montre le conteneur
>light_source {<40,50,30> White*2}
>
>isosurface {
>        function {x*x + y*y + z*0 - 0.5}
>        threshold 0
>        contained_by {box {-1,1}}
>        max_trace 3
>        pigment {Check1}
>}

Somehow you've got "max_trace" instead of "max_gradient".

See: http://www.econym.demon.co.uk/isotut/maxgradient.htm

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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