POV-Ray : Newsgroups : povray.unofficial.patches : isosurface bug? Server Time
2 Sep 2024 06:13:31 EDT (-0400)
  isosurface bug? (Message 1 to 5 of 5)  
From: hall
Subject: isosurface bug?
Date: 14 May 2000 20:42:10
Message: <391f47e2@news.povray.org>
I tried the following two scenes in MegaPOV, and expected to get a unit
sphere in both of them, needless to say this did not happpen.  The first
rendered the expected sphere, the second didn't.  Is this a bug or am I just
not seeing a stupid mistake?  Any help would be appreciated--Quadhall.

*****************
scene 1
#version unofficial MegaPOV 0.4;
light_source { <0,0,-8> 1}
camera { location <0,0,-5> look_at <0,0,0> }
isosurface
{
 function {sqrt(sqr(x)+sqr(y)+sqr(z))}
 contained_by{sphere {0,4}}
 threshold 1
 pigment{color rgb <1,1,1>}
}
***********************
scene 2
version unofficial MegaPOV 0.4;
light_source { <0,0,-8> 1}
camera { location <0,0,-5> look_at <0,0,0> }
isosurface
{
 function {(sqr(x)+sqr(y)+sqr(z))}
 contained_by{sphere {0,4}}
 threshold 1
 pigment{color rgb <1,1,1>}
}


Post a reply to this message

From: hall
Subject: Re: isosurface bug?
Date: 14 May 2000 20:54:24
Message: <391f4ac0@news.povray.org>
Well, I tried the previously listed code, and (very strangely) it started
working as expected.  But the following listing is not working on my windows
version of MegaPOV:

#version unofficial MegaPOV 0.4;
#include "colors.inc"
light_source { <0,0,-8> 1}
camera { location <0,0,-5> look_at <0,0,0> }
#declare a=function{sqr(x)+sqr(y)+sqr(z)}
isosurface
{
 function {a(x,y,z)}
 contained_by{sphere {0,4}}
 threshold 1
 pigment{color rgb <1,1,1>}
}

Is this my computer acting up, or is it MegaPOV, or am I just losing it?

Quadhall -- the puzzled.


Post a reply to this message

From: david sharp
Subject: Re: isosurface bug?
Date: 14 May 2000 20:56:52
Message: <391f4b54@news.povray.org>
hall <tre### [at] ww-interlinknet> wrote in message
news:391f47e2@news.povray.org...
> I tried the following two scenes in MegaPOV, and expected to get a unit
> sphere in both of them, needless to say this did not happpen.  The first
> rendered the expected sphere, the second didn't.  Is this a bug or am I
just
> not seeing a stupid mistake?  Any help would be appreciated--Quadhall.

I just ran each scene (Windows Mega 0.4) and got what looked like identical
spheres so I vote for mistake, but not in the scene.


Post a reply to this message

From: Chris Huff
Subject: Re: isosurface bug?
Date: 14 May 2000 21:19:47
Message: <chrishuff_99-A36CE4.20231514052000@news.povray.org>
In article <391f4ac0@news.povray.org>, "hall" 
<tre### [at] ww-interlinknet> wrote:

> #version unofficial MegaPOV 0.4;
> #include "colors.inc"
> light_source { <0,0,-8> 1}
> camera { location <0,0,-5> look_at <0,0,0> }
> #declare a=function{sqr(x)+sqr(y)+sqr(z)}
> isosurface
> {
>  function {a(x,y,z)}
>  contained_by{sphere {0,4}}
>  threshold 1
>  pigment{color rgb <1,1,1>}
> }
> 
> Is this my computer acting up, or is it MegaPOV, or am I just losing it?

Perhaps you should try using "eval" or a higher "max_gradient". The 
exponentially increasing values may be throwing the calculations off.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Pabs
Subject: Re: isosurface bug?
Date: 14 May 2000 23:07:50
Message: <391F6A2F.52A86C22@hotmail.com>
hall wrote:

> I tried the following two scenes in MegaPOV, and expected to get a unit
> sphere in both of them, needless to say this did not happpen.  The first
> rendered the expected sphere, the second didn't.  Is this a bug or am I just
> not seeing a stupid mistake?  Any help would be appreciated--Quadhall.
>
> *****************
> scene 1
> #version unofficial MegaPOV 0.4;
> light_source { <0,0,-8> 1}
> camera { location <0,0,-5> look_at <0,0,0> }
> isosurface
> {
>  function {sqrt(sqr(x)+sqr(y)+sqr(z))}
>  contained_by{sphere {0,4}}
>  threshold 1
>  pigment{color rgb <1,1,1>}
> }
> ***********************
> scene 2
> version unofficial MegaPOV 0.4;
> light_source { <0,0,-8> 1}
> camera { location <0,0,-5> look_at <0,0,0> }
> isosurface
> {
>  function {(sqr(x)+sqr(y)+sqr(z))}
>  contained_by{sphere {0,4}}
>  threshold 1
>  pigment{color rgb <1,1,1>}
> }

I think because you have used the same bounding object, but not sqrt'ed the
second iso the surface is outside your contained_by object or something

Just an idea
Pabs


Post a reply to this message

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