POV-Ray : Newsgroups : povray.unofficial.patches : contained_by qiery Server Time
8 Jul 2024 15:56:32 EDT (-0400)
  contained_by qiery (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Dennis Milller
Subject: contained_by qiery
Date: 21 Jul 2001 13:03:29
Message: <3b59b5e1$1@news.povray.org>
Hello. I wonder if there is any way to modify or transform the box or sphere
inside the contain_by statement. Often when making isosurfaces, I see the
outline of the contained_by object. In fact, are those the only two legal
contained_by objects, and why can't you rotate or otherwise modify what's
inside the statement?
For example, this doesn't work:
contained_by {box <-X, -X, -X>, <X, X, X> rotate 90}
nor does this: {{box <-X, -X, -X>, <X, X, X> rotate 90}  }

Are there any ways to modify the box or sphere and why can't other shapes be
used?
Thanks much,
Dennis

--
dhm### [at] mediaonenet
www.casdn.neu.edu/~dmiller


Post a reply to this message

From: Warp
Subject: Re: contained_by qiery
Date: 21 Jul 2001 16:21:28
Message: <3b59e448@news.povray.org>
I'm not sure about this, but I have the impression that the contained_by
object has nothing (or at least very little) to do with the actual sphere or
box primitives. The syntax is just the same for convenience, but internally
it's not a primitive, but just ranges that limit the calculations to certain
limits (isosurfaces must be calculated inside certain limits; you can't have
infinite isosurfaces).

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


Post a reply to this message

From: Ken
Subject: Re: contained_by qiery
Date: 21 Jul 2001 16:55:22
Message: <3B59EC61.3CF0C0C4@pacbell.net>
Warp wrote:

> limits (isosurfaces must be calculated inside certain limits; you can't have
> infinite isosurfaces).

Overflow problems ?

-- 
Ken Tyler


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: contained_by qiery
Date: 21 Jul 2001 17:50:03
Message: <3b59f90b@news.povray.org>
In article <3B59EC61.3CF0C0C4@pacbell.net> , Ken <tyl### [at] pacbellnet>  
wrote:

>> limits (isosurfaces must be calculated inside certain limits; you can't have
>> infinite isosurfaces).
>
> Overflow problems ?

No.  Actually there can be (semi-)infinite isosurfaces. As you know, the
POV-Ray scene space is finite, just make the container big enough to fill
the whole scene.  The actual problem is that the bigger the container the
more calculations are needed unless the accuracy parameter is adjusted.


     Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Dennis Milller
Subject: Re: contained_by qiery
Date: 21 Jul 2001 22:58:34
Message: <3b5a415a@news.povray.org>
Well to clarify, the shape of the contained_by object is very clear (a box
or a sphere) in some points of the animations that I am working on. I'm
trying to find out if there are any ways to modify those shapes, which are
like a frame for the isosurface. Why you can't rotate or scale the
contained-by object independent of the isosurface itself or for that matter,
use other types of contained by shapes (cylinder, cone, etc.).
Anyone know?
thanks,
Dennis
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3b59f90b@news.povray.org...
> In article <3B59EC61.3CF0C0C4@pacbell.net> , Ken <tyl### [at] pacbellnet>
> wrote:
>
> >> limits (isosurfaces must be calculated inside certain limits; you can't
have
> >> infinite isosurfaces).
> >
> > Overflow problems ?
>
> No.  Actually there can be (semi-)infinite isosurfaces. As you know, the
> POV-Ray scene space is finite, just make the container big enough to fill
> the whole scene.  The actual problem is that the bigger the container the
> more calculations are needed unless the accuracy parameter is adjusted.
>
>
>      Thorsten
>
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trfde
>
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: contained_by qiery
Date: 21 Jul 2001 23:19:26
Message: <3b5a463d@news.povray.org>
Dennis Milller <dhm### [at] mediaonenet> wrote:
: Why you can't rotate or scale the
: contained-by object independent of the isosurface itself or for that matter,
: use other types of contained by shapes (cylinder, cone, etc.).
: Anyone know?

  I already explained the most probable reason.
  The contained_by object is not an object at all. It's just a set of limits
for the isosurface calculation function. Thus you can't transform it as if
it was a regular primitive (because it isn't).
  The syntax for the contained_by object is the same as for a sphere or a
box, but only for convenience.

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


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: contained_by qiery
Date: 22 Jul 2001 07:24:33
Message: <3b5ab7f1@news.povray.org>
In article <3b5a415a@news.povray.org> , "Dennis Milller" 
<dhm### [at] mediaonenet> wrote:

> Well to clarify, the shape of the contained_by object is very clear (a box
> or a sphere) in some points of the animations that I am working on. I'm
> trying to find out if there are any ways to modify those shapes, which are
> like a frame for the isosurface. Why you can't rotate or scale the
> contained-by object independent of the isosurface itself or for that matter,
> use other types of contained by shapes (cylinder, cone, etc.).

Well, be aware that scaling or rotating an isosurface object does work on
its container only, not the isosurface function (because its easier to
implement).  So you just have to put the transformations in the isosurface
block, not the contained_by block.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: contained_by qiery
Date: 22 Jul 2001 07:44:56
Message: <3b5abcb7@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: Well, be aware that scaling or rotating an isosurface object does work on
: its container only, not the isosurface function (because its easier to
: implement).  So you just have to put the transformations in the isosurface
: block, not the contained_by block.

  This makes no sense, and it doesn't work that way, I just tested.
  If you scale (for example non-uniformly) an isosurface, the whole object
is scaled, not the container object only. That is, if you scale non-uniformly,
the isosurface gets squeezed as well, not the container only. As it should,
as it's logical.

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


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: contained_by qiery
Date: 22 Jul 2001 10:29:33
Message: <3b5ae34d@news.povray.org>
In article <3b5abcb7@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   This makes no sense, and it doesn't work that way, I just tested.

It used to work this way in MegaPOV, didn't it?  I remember there was some
problem with containers...

> As it should, as it's logical.

I never disputed that the behavior is illogical.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Andy Cocker
Subject: Re: contained_by qiery
Date: 22 Jul 2001 11:37:26
Message: <3b5af336@news.povray.org>
I may have misunderstood your problem, but couldn't you intersect the
isosurface with your desired primitive ie cone, cylinder etc? Then you could
apply all your rotates and scales to the intersected primitive.

Andy

"Dennis Milller" <dhm### [at] mediaonenet> wrote in message
news:3b5a415a@news.povray.org...
> Well to clarify, the shape of the contained_by object is very clear (a box
> or a sphere) in some points of the animations that I am working on. I'm
> trying to find out if there are any ways to modify those shapes, which are
> like a frame for the isosurface. Why you can't rotate or scale the
> contained-by object independent of the isosurface itself or for that
matter,
> use other types of contained by shapes (cylinder, cone, etc.).
> Anyone know?
> thanks,
> Dennis


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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