POV-Ray : Newsgroups : povray.general : Help with isosurface intersection needed Server Time
8 Aug 2024 18:14:39 EDT (-0400)
  Help with isosurface intersection needed (Message 1 to 5 of 5)  
From: BigCeef
Subject: Help with isosurface intersection needed
Date: 9 Oct 2000 09:22:43
Message: <39e1c6a3@news.povray.org>
Hi all,

This is the first time I've used the isosurface function, and things aren't
behaving as I thought they would.

Using the code below, if I simply render the isosurface, I get a sphere with
the pattern all the way through, which is what I want.

However, when I use the isosurface within a CSG intersection, all (or most)
of the insides disappear, and the effect is similar to simply using a
color_map with filter...which is NOT what I want.

Am I doing something wrong, or is it impossible to achieve the effect I'm
after? I wa under the impression that isosurfaces could be used without
problems in CSG's.

Thanks,

Andy Cocker

-\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--
\|/--\|/--\|/--\|/--\|/--\|/--\|/-

#declare tex1=
texture {
pigment { crackle color_map {[0 rgb 1][0.25 rgb <1,.6,.47>][0.5 rgb
<.2,.7,.9>][0.75 rgb <1,.916,.6>][1 rgb <.2,.7,.9>]}}
finish {  ambient 0 }
scale 0.5
}

#declare rad=0.4;
#declare X=
merge {
cylinder { <-2,0,0>,<2,0,0>,rad}
cylinder { <0,-2,0>,<0,2,0>,rad}
sphere {<-2,0,0>,rad}
sphere {<2,0,0>,rad}
sphere {<0,2,0>,rad}
sphere {<0,-2,0>,rad}
sphere {<-2-rad*.5,0,0>,rad/2}
sphere {<2+rad*.5,0,0>,rad/2}
sphere {<0,2+rad*.5,0>,rad/2}
sphere {<0,-2-rad*.5,0>,rad/2}
sphere {<0,0,0>,rad*1.5}
}

#declare Func =
function {
    pigment {crackle turbulence 0 color_map {[0 rgb 1][0.25 rgb 0][0.5 rgb
1][0.75 rgb 0][1 rgb 1]}}
}

#declare Main=yes;

#if (Main)
intersection {
isosurface {
    function {Func(x, y, z)}
    threshold 0.5
    contained_by {
         sphere {<0,0,0>,4 }//box {<-4,-4,-4>, < 4, 4, 4>}
    }
    texture {tex1}
    scale 0.5

}
object {X texture {tex1}hollow}
rotate z*45}
#end


Post a reply to this message

From: Warp
Subject: Re: Help with isosurface intersection needed
Date: 9 Oct 2000 09:44:36
Message: <39e1cbc3@news.povray.org>
BigCeef <big### [at] mariner9fsnetcouk> wrote:
: object {X texture {tex1}hollow}

  Just curious: Why did you use a media keyword (ie. 'hollow') here?

  (Removing it doesn't fix the problem but I'm just curious.)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: BigCeef
Subject: Re: Help with isosurface intersection needed
Date: 9 Oct 2000 11:49:32
Message: <39e1e90c@news.povray.org>
HI Warp,

I was just clutching at straws...I thought it might possibly fix the
problem, but it didn't, and I forgot to remove it before posting the code.

"Warp" <war### [at] tagpovrayorg> wrote in message
news:39e1cbc3@news.povray.org...
> BigCeef <big### [at] mariner9fsnetcouk> wrote:
> : object {X texture {tex1}hollow}
>
>   Just curious: Why did you use a media keyword (ie. 'hollow') here?
>
>   (Removing it doesn't fix the problem but I'm just curious.)
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Micha Riser
Subject: Re: Help with isosurface intersection needed
Date: 9 Oct 2000 15:19:05
Message: <39E21A29.E58FB8DD@datacomm.ch>
Just set 'max_trace 5' in your isofunction. I haven't tested it now but
I think this should do it. (See MegaPOV Docs 5.2.5 CSG-Operation).
> 
> #if (Main)
> intersection {
> isosurface {
>     function {Func(x, y, z)}
>     threshold 0.5

-->    max_trace 5

>     contained_by {
>          sphere {<0,0,0>,4 }//box {<-4,-4,-4>, < 4, 4, 4>}
>     }
>     texture {tex1}
>     scale 0.5
> 
> }
> object {X texture {tex1}hollow}
> rotate z*45}
> #end

-- 
--------------------------------------------------------------
 email:                      mic### [at] michavirtualavenet
 visit my homepage:          http://micha.virtualave.net
 POVRay Objects Collection:  http://povobjects.keyspace.de


Post a reply to this message

From: BigCeef
Subject: Re: Help with isosurface intersection needed
Date: 9 Oct 2000 17:23:14
Message: <39e23742@news.povray.org>
Thanks very much Micha, I shall give that a try.

Andy Cocker


"Micha Riser" <mri### [at] datacommch> wrote in message
news:39E21A29.E58FB8DD@datacomm.ch...
>
> Just set 'max_trace 5' in your isofunction. I haven't tested it now but
> I think this should do it. (See MegaPOV Docs 5.2.5 CSG-Operation).
> >
> > #if (Main)
> > intersection {
> > isosurface {
> >     function {Func(x, y, z)}
> >     threshold 0.5
>
> -->    max_trace 5
>
> >     contained_by {
> >          sphere {<0,0,0>,4 }//box {<-4,-4,-4>, < 4, 4, 4>}
> >     }
> >     texture {tex1}
> >     scale 0.5
> >
> > }
> > object {X texture {tex1}hollow}
> > rotate z*45}
> > #end
>
> --
> --------------------------------------------------------------
>  email:                      mic### [at] michavirtualavenet
>  visit my homepage:          http://micha.virtualave.net
>  POVRay Objects Collection:  http://povobjects.keyspace.de


Post a reply to this message

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