![](/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) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
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) |
> max_trace 3
Cool. That worked. Thanks. I'd never needed it before. :)
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) |
"Christoph Hormann" <chr### [at] gmx de> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |