POV-Ray : Newsgroups : povray.unofficial.patches : See-through function :( Server Time
1 Sep 2024 16:14:50 EDT (-0400)
  See-through function :( (Message 1 to 5 of 5)  
From: Tony[B]
Subject: See-through function :(
Date: 13 Mar 2001 12:48:23
Message: <3aae5d67@news.povray.org>
Why do I see the background through it? How do I fix it?



#version unofficial megapov 0.7;

camera {up y*3/5 right x location <2,8,-21> look_at <0,9,5>}

light_source {vnormalize(<3,2,-1>)*100 rgb 1}
light_source {<0,25,25>/2 rgb <1,1,0.9>/4 shadowless}

sky_sphere {pigment {planar rotate -z*35 rotate x*10 color_map {[0.25 rgb
x][1 rgb 1]}}}

#declare Par = function {"paraboloid", <1>}

#declare Obj =
isosurface
{
 function {(Par(x,y,z) & -Par(x*1.25,y-0.2,z*1.25))}
 sign -1 method 2 max_gradient 2.648
 contained_by {box {<-1,0,-1>,<1,1,1>}}
}

difference
{
 object {Obj}
 plane {-x,0}
 scale 10 rotate y*10 translate <-3.25,3.35,20>
 pigment {rgb 1} finish {ambient 0 diffuse 1}
}


Post a reply to this message

From: Tom Melly
Subject: Re: See-through function :(
Date: 13 Mar 2001 15:40:52
Message: <3aae85d4@news.povray.org>
Odd behaviour verified on mp 0.6. Looks like a bug. Here's a workaround
(only tested on 0.6).

Make the contained_by limited to x=0, not x=1. Then render the object w/o
the difference, as it's no longer required. So, your code should read:

 #declare Obj =
 isosurface {
  function {(Par(x,y,z) & -Par(x*1.25,y-0.2,z*1.25))}
  sign -1 method 2 max_gradient 2.648
  contained_by {box {<-1,0,-1>,<0,1,1>}}
 }

object {Obj
  scale 10 rotate y*10 translate <-3.25,3.35,20>
  pigment {rgb 1} finish {ambient 0 diffuse 1}
}


Post a reply to this message

From: Christoph Hormann
Subject: Re: See-through function :(
Date: 13 Mar 2001 16:00:47
Message: <3AAE8A7E.FC45DD62@gmx.de>
Tom Melly wrote:
> 
> Odd behaviour verified on mp 0.6. Looks like a bug. 

No, just add

max_trace 3

or higher in the isosurface definition.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Tony[B]
Subject: Re: See-through function :(
Date: 13 Mar 2001 21:23:36
Message: <3aaed628@news.povray.org>
> max_trace 3

Cool. That worked. Thanks. I'd never needed it before. :)


Post a reply to this message

From: Tom Melly
Subject: Re: See-through function :(
Date: 14 Mar 2001 05:09:22
Message: <3aaf4352$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3AAE8A7E.FC45DD62@gmx.de...
>
>
> Tom Melly wrote:
> >
> > Odd behaviour verified on mp 0.6. Looks like a bug.
>
> No, just add
>
> max_trace 3
>
> or higher in the isosurface definition.
>

Doh! I tried all the other obvious params, except that one...


Post a reply to this message

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