POV-Ray : Newsgroups : povray.general : Bug, or just an oversight? Server Time
7 Aug 2024 23:21:24 EDT (-0400)
  Bug, or just an oversight? (Message 1 to 3 of 3)  
From: Xplo Eristotle
Subject: Bug, or just an oversight?
Date: 18 Mar 2001 18:09:00
Message: <3AB540E0.3675BD02@unforgettable.com>
I'm trying to create kind of a crescent-shaped island and I'm using an
isosurface to do it, but I've run into kind of a strange problem: if I
increase the size of the containing sphere, the top half of the iso
disappears. Thing is, I don't know if this is a bug or an oversight on
my part.. so I'm posting it here in .general instead of
povray.unofficial.mac.bugreports.unconfirmed.etcetcetc or something of
the sort.

Using MacMegaPOV 0.7 (the problem appears in both classic and carbon
versions). Short test code follows:

#version unofficial MegaPov 0.7;
	
camera { location <0, 6, -10> look_at <0, 0, 0> }

light_source { <-2, 10, -3> rgb 1 }
	
#declare test = function { pigment { wrinkles scale .5 } }
#declare test2 = function { pigment { wrinkles scale .5 translate <100,
100, 100> } }
	
isosurface {
	function { (x^2 + y*10 + z^2) + .5^(((x*3)+.75)^2 + ((y-0)*10)^2 +
((z*3)+.75)^2 + test2 - 1) + 2*test - 1.8 }
	threshold 0
	eval
	contained_by { sphere { <0, 0, 0>, 1 } } // Change this to a higher
number to see the problem.
	pigment { color rgb .5 }
	finish { ambient .5 }
	scale 5
	}
	
plane { y, 0 pigment { color rgbf <1, .5, .5, 1> } }

Can anyone reproduce this, or figure out what I'm doing wrong?


Post a reply to this message

From: Gilles Tran
Subject: Re: Bug, or just an oversight?
Date: 20 Mar 2001 04:24:01
Message: <3AB72242.5843EC56@inapg.inra.fr>
Xplo Eristotle wrote:

> I'm trying to create kind of a crescent-shaped island and I'm using an
> isosurface to do it, but I've run into kind of a strange problem: if I
> increase the size of the containing sphere, the top half of the iso
> disappears. Thing is, I don't know if this is a bug or an oversight on
> my part..

(cutting and pasting from a recent post...)
This is very probably a max_gradient problem. It has driven many people
mad before (including me). The trick is to give a proper max_gradient
value instead of relying on eval. A detailed explanation can be found here
:
http://www.econym.demon.co.uk/isotut/keywords.htm

G.
--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

From: Xplo Eristotle
Subject: Re: Bug, or just an oversight?
Date: 20 Mar 2001 16:25:46
Message: <3AB7CBB2.241D3547@unforgettable.com>
Gilles Tran wrote:
> 
> Xplo Eristotle wrote:
> 
> > I'm trying to create kind of a crescent-shaped island and I'm using an
> > isosurface to do it, but I've run into kind of a strange problem: if I
> > increase the size of the containing sphere, the top half of the iso
> > disappears. Thing is, I don't know if this is a bug or an oversight on
> > my part..
> 
> (cutting and pasting from a recent post...)
> This is very probably a max_gradient problem. It has driven many people
> mad before (including me). The trick is to give a proper max_gradient
> value instead of relying on eval.

Damn you, max_gradient! DAMN YOU TO HELL!!

*cough*

Er, I mean, thanks a lot, I'll be sure to look into it.

-Xplo


Post a reply to this message

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