POV-Ray : Newsgroups : povray.general : Infinite object question Server Time
7 Nov 2024 07:33:25 EST (-0500)
  Infinite object question (Message 1 to 10 of 42)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Patrick Dugan
Subject: Infinite object question
Date: 2 Apr 2002 14:15:27
Message: <3caa034f@news.povray.org>
When I try to render this object Povray tells me it is infinite.  The
"bounded_by"
seems to have no effect on this object.   Why does Povray think this is
infinite?


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


object{One}


Post a reply to this message

From: Warp
Subject: Re: Infinite object question
Date: 2 Apr 2002 14:20:46
Message: <3caa048e@news.povray.org>
Patrick Dugan <pat### [at] usnetcomcorpcom> wrote:
> When I try to render this object Povray tells me it is infinite.

  So?

> The "bounded_by" seems to have no effect on this object.

  Why should it?
  bounded_by does not change the shape or dimensions of an object. It's
not CSG.

> Why does Povray think this is infinite?

  Because it is?

-- 
#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: Patrick Dugan
Subject: Re: Infinite object question
Date: 2 Apr 2002 14:22:33
Message: <3caa04f9$1@news.povray.org>
I'm trying to use it with photons and reduce the time it requires.  That is
why.  I see no reason why this
would be infinite.

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3caa048e@news.povray.org...
> Patrick Dugan <pat### [at] usnetcomcorpcom> wrote:
> > When I try to render this object Povray tells me it is infinite.
>
>   So?
>
> > The "bounded_by" seems to have no effect on this object.
>
>   Why should it?
>   bounded_by does not change the shape or dimensions of an object. It's
> not CSG.
>
> > Why does Povray think this is infinite?
>
>   Because it is?
>
> --
> #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: Warp
Subject: Re: Infinite object question
Date: 2 Apr 2002 14:34:37
Message: <3caa07cd@news.povray.org>
Ah, I see.
  The problem is that the box is inverted. (It's implicitly inverted because
you are using a difference.)
  But there's a solution to the problem: Clip the entire CSG with for
example a box.

-- 
#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: Patrick Dugan
Subject: Re: Infinite object question
Date: 2 Apr 2002 15:15:48
Message: <3caa1174$1@news.povray.org>
The inverted box should still not be infinite.  Clipping the entire csg
results in no image!

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3caa07cd@news.povray.org...
>   Ah, I see.
>   The problem is that the box is inverted. (It's implicitly inverted
because
> you are using a difference.)
>   But there's a solution to the problem: Clip the entire CSG with for
> example a box.
>
> --
> #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: Warp
Subject: Re: Infinite object question
Date: 2 Apr 2002 15:30:58
Message: <3caa1501@news.povray.org>
Patrick Dugan <pat### [at] usnetcomcorpcom> wrote:
> The inverted box should still not be infinite.

  An inverted box is infinite.

>  Clipping the entire csg
> results in no image!

  How did you clip it?

  Just add something like clipped_by { box { -1,1 } } at the end of the CSG
or whatever.

-- 
#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: JRG
Subject: Re: Infinite object question
Date: 2 Apr 2002 16:51:07
Message: <3caa27cb$1@news.povray.org>
"Warp" wrote:
> Patrick Dugan <pat### [at] usnetcomcorpcom> wrote:
> > The inverted box should still not be infinite.
>
>   An inverted box is infinite.

No, it's not.
At least not from POV-Ray's point of view (just try).

--
Jonathan.

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

From:
Subject: Re: Infinite object question
Date: 2 Apr 2002 17:01:20
Message: <f1akau43uc8teqpiq8pcch83k4s23rjkui@4ax.com>
On Tue, 2 Apr 2002 23:50:35 +0200, "JRG" <jrg### [at] hotmailcom> wrote:
> >   An inverted box is infinite.
>
> No, it's not.

it is

> At least not from POV-Ray's point of view (just try).

ok, try inverse box - it is hole in everything

// begin scene
box{-1 1 translate z*10 inverse}
// end scene

Warning: Camera is _inside_ a non-hollow object.
And put camera anywhere to test where box will finish.
But You can be mistaken by:

// begin scene
#include "strings"
#local B=box{-1 1 translate z*10 inverse}
#warning VStr(min_extent(B))
#warning VStr(max_extent(B))
// end scene

but min/max_extent returns coordinates of _bounding box_ which isn't object but
speed trick - as documentation says: "the bounding box does not represent the
actual dimensions of the object".

ABX


Post a reply to this message

From: JRG
Subject: Re: Infinite object question
Date: 2 Apr 2002 17:08:03
Message: <3caa2bc3$1@news.povray.org>
That does not make it an infinite object.
I can read:
"scene contains 1 frame level objects; 0 infinite".

Either an inverted object isn't infinite, or that message is wrong.
BTW, I used difference many times, and my CSG objects never happened to become
infinte.

--
Jonathan.

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

From: Christopher James Huff
Subject: Re: Infinite object question
Date: 2 Apr 2002 17:17:47
Message: <chrishuff-0655F0.17185602042002@netplex.aussie.org>
In article <f1akau43uc8teqpiq8pcch83k4s23rjkui@4ax.com>,
 W?odzimierz ABX Skiba <abx### [at] babilonorg> wrote:

> ok, try inverse box - it is hole in everything
> 
> // begin scene
> box{-1 1 translate z*10 inverse}
> // end scene
> 
> Warning: Camera is _inside_ a non-hollow object.
> And put camera anywhere to test where box will finish.

You are mistaken. This message means exactly what it says, the camera is 
inside the box. It has nothing to do with finite-vs-infinite, any solid 
shape can produce it. If you put it at < 0, 0, 0>, you won't get this 
message.


> but min/max_extent returns coordinates of _bounding box_ which isn't 
> object but speed trick - as documentation says: "the bounding box 
> does not represent the actual dimensions of the object".

But infinite objects don't have finite bounding boxes. And anyway, the 
bounding box of an axis-aligned box is pretty accurate.

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

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