POV-Ray : Newsgroups : povray.newusers : help! my sphere test function creates a quad! Server Time
26 Dec 2024 13:10:21 EST (-0500)
  help! my sphere test function creates a quad! (Message 1 to 3 of 3)  
From: Christian Parpart
Subject: help! my sphere test function creates a quad!
Date: 31 Jul 2002 13:07:53
Message: <3d481969@news.povray.org>
Hi all,

that's interesting,

I'm about to understand the povray functions but the simple examples (shown 
in the official povray doc) doesn't work.

I created an isosurface as follows

isosurface {
  function { sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2)) - 2 }
  pigment { color Gold }
}

All I get is a block not a sphere. So how is this happening. What did I 
forget? any extra command line parameter or anything else?

Thanks in advance,
Christian Parpart.


Post a reply to this message

From: Christopher James Huff
Subject: Re: help! my sphere test function creates a quad!
Date: 31 Jul 2002 14:21:06
Message: <chrishuff-67484F.13131231072002@netplex.aussie.org>
In article <3d481969@news.povray.org>,
 Christian Parpart <cpa### [at] surakwarenet> wrote:

> isosurface {
>   function { sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2)) - 2 }
>   pigment { color Gold }
> }
> 
> All I get is a block not a sphere. So how is this happening. What did I 
> forget? any extra command line parameter or anything else?

You need to specify an appropriate contained_by shape. If I recall 
correctly, the default is a box from <-1,-1,-1> to < 1, 1, 1>, which is 
just too small to contain your sphere.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Christian Parpart
Subject: Re: help! my sphere test function creates a quad!
Date: 31 Jul 2002 16:35:11
Message: <3d4849ff@news.povray.org>
Christopher James Huff inspired the electrons to say:
> In article <3d481969@news.povray.org>,
>  Christian Parpart <cpa### [at] surakwarenet> wrote:
> 
>> isosurface {
>>   function { sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2)) - 2 }
>>   pigment { color Gold }
>> }
>> 
>> All I get is a block not a sphere. So how is this happening. What did I
>> forget? any extra command line parameter or anything else?
> 
> You need to specify an appropriate contained_by shape. If I recall
> correctly, the default is a box from <-1,-1,-1> to < 1, 1, 1>, which is
> just too small to contain your sphere.

Exactly, have many thankx :D
Christian.


Post a reply to this message

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