![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
hall <tre### [at] ww-interlink net> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <391f4ac0@news.povray.org>, "hall"
<tre### [at] ww-interlink net> 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] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |