POV-Ray : Newsgroups : povray.general : Infinite object question : Re: Infinite object question Server Time
6 Aug 2024 16:56:40 EDT (-0400)
  Re: Infinite object question  
From: Patrick Dugan
Date: 2 Apr 2002 21:20:12
Message: <3caa66dc@news.povray.org>
Would I simply use a bounded_by for the heightfield itself rather than on
the difference between it and the box?

"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3caa034f@news.povray.org>,
>  "Patrick Dugan" <pat### [at] usnetcomcorpcom> wrote:
>
> > #declare One =
> > difference {
> >    height_field {
> >       tga "MyPicture.tga"
> >       smooth
> >       hierarchy on
> >       translate <-0.5, -0.5, -0.5>
> >       rotate <-90,0,0>
> >       scale <0.3,1,0.1>
> >       photons {target reflection on}
> >    }
> >    box{<-0.2,-0.6,-0.02>,<0.2,0.6,2> pigment {rgbft <1,1,1,0,1>}
> >       no_shadow no_reflection no_image photons {collect off}
> >    }
> >     bounded_by { box{<-5,-5,-5>,<5,5,5>}}
> > }
>
> A point is considered "inside" a height_field if it is "below" it. If
> the height_field is not rotated or sheared, all points -y of some part
> of the surface are inside it.
>
> POV seems to have a hard time with this fact in this case, it knows the
> height field isn't bound to a cubic space and that the difference
> surface may occur anywhere, so it considers it to be infinite when
> computing the bounding boxes. A better solution might be to use a box
> extending very far downward for the CSG bounding computations, or to
> limit the height_field object to a cube.
>
> --
> 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

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