POV-Ray : Newsgroups : povray.general : contained_by problem... Server Time
6 Aug 2024 12:24:31 EDT (-0400)
  contained_by problem... (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Patrick Dugan
Subject: contained_by problem...
Date: 31 Mar 2002 12:32:43
Message: <3ca7483b@news.povray.org>
I am having problems trying to contain an object.  The object defined is:

#declare DaggerHilt =
union {
   difference {
      height_field {
         tga "DaggerHilt.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}
        XXXXXXXXXXXXXXXXXX
      }
      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}
      }
   }
   difference {
      superellipsoid {<0.10, 0.30> scale <0.033,0.11,0.045>}
      cylinder{<-0.15,0,0>,<0.15,0,0>,0.015 translate <0,0.10,-0.05>}
      cylinder{<-0.15,0,0>,<0.15,0,0>,0.015 translate <0,-0.10,-0.05>}
      cylinder{<-0.15,0,0>,<0.15,0,0>,0.015 translate <0,0.10,0.05>}
      cylinder{<-0.15,0,0>,<0.15,0,0>,0.015 translate <0,-0.10,0.05>}
      translate <-0.01,0.005,-0.035>
      photons {target reflection on}
     XXXXXXXXXXXXXXXXXXX
   }
   texture {BChrome rotate z * 90}
   XXXXXXXXXXXXXXXXXXXXX
}

The XXXXXX lines are different places where I have tried to place a
container.  In this case the container would be:
contained_by {box <-2,-2,-2>,<2,2,2>}

Povray tells me that it expects the end of the union or difference
(depending on where I place the container.)  If I don't contain this
object povray considers it infinite.  I'm trying to get rid of the infinite
objects to help the photons.

How can I contain this thing or make it finite?

Patrick Dugan


Post a reply to this message

From: Ken
Subject: Re: contained_by problem...
Date: 31 Mar 2002 12:40:02
Message: <3CA74A84.D41629C3@pacbell.net>
Patrick Dugan wrote:
> 
> I am having problems trying to contain an object.  The object defined is:
>snip>
> How can I contain this thing or make it finite?

There is no reason why with that scale POV-Ray should be treating the HF
as an infinite object. Are you sure that you don't have a plane or something
else in the scene that is infinite?

P.S. contain_by is only valid syntax in isosurface objects.

-- 
Ken Tyler


Post a reply to this message

From: Patrick Dugan
Subject: Re: contained_by problem...
Date: 31 Mar 2002 12:49:09
Message: <3ca74c15@news.povray.org>
I *thought* I used contained_by with other objects in the past, but perhaps
the syntax has changed since then.

No the object was copied here verbatim.  If I comment out this object the
infinite goes to zero.  With it the infinite goes to 1.



"Ken" <tyl### [at] pacbellnet> wrote in message
news:3CA74A84.D41629C3@pacbell.net...
>
>
> Patrick Dugan wrote:
> >
> > I am having problems trying to contain an object.  The object defined
is:
> >snip>
> > How can I contain this thing or make it finite?
>
> There is no reason why with that scale POV-Ray should be treating the HF
> as an infinite object. Are you sure that you don't have a plane or
something
> else in the scene that is infinite?
>
> P.S. contain_by is only valid syntax in isosurface objects.
>
> --
> Ken Tyler


Post a reply to this message

From: Ken
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:00:14
Message: <3CA74F44.3AFF5602@pacbell.net>
Patrick Dugan wrote:
> 
> I *thought* I used contained_by with other objects in the past, but perhaps
> the syntax has changed since then.

Perhaps you are confusing contained_by with bounded_by ?

-- 
Ken Tyler


Post a reply to this message

From: Patrick Dugan
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:28:41
Message: <3ca75559$1@news.povray.org>
Ahhhhhh!!  Yes you are right!  Thank you!

"Ken" <tyl### [at] pacbellnet> wrote in message
news:3CA74F44.3AFF5602@pacbell.net...
>
>
> Patrick Dugan wrote:
> >
> > I *thought* I used contained_by with other objects in the past, but
perhaps
> > the syntax has changed since then.
>
> Perhaps you are confusing contained_by with bounded_by ?
>
> --
> Ken Tyler


Post a reply to this message

From: Mahalis
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:30:16
Message: <3ca755b8$1@news.povray.org>
You probably used clipped_by or bounded_by- most likely the latter. Try one of those
instead of an iso keyword.
"Patrick Dugan" <pat### [at] netinsnet> wrote in message
news:3ca74c15@news.povray.org...
>
> I *thought* I used contained_by with other objects in the past, but perhaps
> the syntax has changed since then.
>
> No the object was copied here verbatim.  If I comment out this object the
> infinite goes to zero.  With it the infinite goes to 1.
>
>
>
> "Ken" <tyl### [at] pacbellnet> wrote in message
> news:3CA74A84.D41629C3@pacbell.net...
> >
> >
> > Patrick Dugan wrote:
> > >
> > > I am having problems trying to contain an object.  The object defined
> is:
> > >snip>
> > > How can I contain this thing or make it finite?
> >
> > There is no reason why with that scale POV-Ray should be treating the HF
> > as an infinite object. Are you sure that you don't have a plane or
> something
> > else in the scene that is infinite?
> >
> > P.S. contain_by is only valid syntax in isosurface objects.
> >
> > --
> > Ken Tyler
>
>


Post a reply to this message

From: Patrick Dugan
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:30:59
Message: <3ca755e3$1@news.povray.org>
I'm still not sure why it was infinite though...

"Ken" <tyl### [at] pacbellnet> wrote in message
news:3CA74F44.3AFF5602@pacbell.net...
>
>
> Patrick Dugan wrote:
> >
> > I *thought* I used contained_by with other objects in the past, but
perhaps
> > the syntax has changed since then.
>
> Perhaps you are confusing contained_by with bounded_by ?
>
> --
> Ken Tyler


Post a reply to this message

From: Mike Williams
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:38:37
Message: <QXx$oFAnd1p8Ewym@econym.demon.co.uk>
Wasn't it Ken who wrote:
>
>
>Patrick Dugan wrote:
>> 
>> I *thought* I used contained_by with other objects in the past, but perhaps
>> the syntax has changed since then.
>
>Perhaps you are confusing contained_by with bounded_by ?

Perhaps you are confusing contained_by and clipped_by ?

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Warp
Subject: Re: contained_by problem...
Date: 31 Mar 2002 13:56:49
Message: <3ca75bf1@news.povray.org>
Mike Williams <mik### [at] nospamplease> wrote:
> Perhaps you are confusing contained_by and clipped_by ?

  Does clipped_by convert an infinite object to a finite one (internally,
I mean)?

  The best thing to do is:

clipped_by { something } bounded_by { clipped_by }

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: contained_by problem...
Date: 31 Mar 2002 15:07:05
Message: <chrishuff-530D90.15080431032002@netplex.aussie.org>
In article <QXx$oFAnd1p8Ewym@econym.demon.co.uk>,
 Mike Williams <mik### [at] nospamplease> wrote:

> >Perhaps you are confusing contained_by with bounded_by ?
> 
> Perhaps you are confusing contained_by and clipped_by ?

It doesn't sound like it...bounded_by is the feature used to, well, 
bound infinite objects, and based on the description it is the one he 
wants.
The clipped_by feature is for removing parts of an object that are 
outside another object, which doesn't seem to have anything to do with 
this.
The contained_by keyword is only used in isosurfaces, to specify the 
volume in which to test for the surface. It has never been used for 
other objects (except maybe parametric), and wasn't even added until 
after the isosurface patch had been around a while. (previous versions 
reused bounded_by, which caused some problems)

-- 
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

Goto Latest 10 Messages Next 5 Messages >>>

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