POV-Ray : Newsgroups : povray.general : Cutaway view Server Time
13 Aug 2024 19:25:49 EDT (-0400)
  Cutaway view (Message 1 to 6 of 6)  
From: jon
Subject: Cutaway view
Date: 31 May 1998 23:56:10
Message: <1103_896673370@default.ce.mediaone.net>
Hopefully somebody out there can help wit this.

As a part of some of my scenes i'm working on, I want to have a cutaway iew.

the most obvious thing was to just difference a part of the model like so:

  difference
   {
    union
     {
      object { TANK }
      object { TankBuzbee translate <wide*19,0,-wide*4>}
     }
    box { <-1,-1,wide*75> <60,tall*11,-wide*25> rotate <0,45,0>  texture {l3g0_white}
}
    bounded_by { box { <-wall,-wall,-wall> <wide*55,tall*11,wide*55> } }
   }

where the object TANK is a VERY complex model (100,000 + objects)

This works but its inordnately SLOW.

any ideas on how to speedup this  process?

Thanks,
Jon

http://www.apc.net/jon/


Post a reply to this message

From: Nieminen Mika
Subject: Re: Cutaway view
Date: 1 Jun 1998 11:01:24
Message: <6kufo4$41u$2@oz.aussie.org>
jon### [at] apcnet wrote:
: where the object TANK is a VERY complex model (100,000 + objects)

: This works but its inordnately SLOW.

: any ideas on how to speedup this  process?

  If you don't need a surface on the cutted part, you should use a
clipped_by instead of the difference. I think it's faster. (note that
clipped_by works like intersection, not like difference)

-- 
                                                              - Warp. -


Post a reply to this message

From: Klauss, Master of the Sewers
Subject: Re: Cutaway view
Date: 2 Jun 1998 02:27:41
Message: <35739B5C.A1187868@geocities.com>
Off the top of my head, it seems that you could probably specify a visibility flag,
like
so:

#declare cutaway=x

The x in this case would represent weather or not you were doing a cutaway
perspective.
You can then (for portions of the object that would be entirely obscured), insert a
simple
#if ... #endif structure to eliminate these shapes entirely.  Then, when you insert
the
bounding box, there are less objects accounted for that are not rendered.

I don't know how much faster that will go, but it's something to experiment with, at
any
rate.

jon### [at] apcnet wrote:

> Hopefully somebody out there can help wit this.
>
> As a part of some of my scenes i'm working on, I want to have a cutaway iew.


Post a reply to this message

From: Michael Lundahl
Subject: Re: Cutaway view
Date: 3 Jun 1998 06:16:12
Message: <6l37pc$a37$3@oz.aussie.org>
In article <110### [at] defaultcemediaonenet>,
	jon### [at] apcnet writes:
>Hopefully somebody out there can help wit this.
>any ideas on how to speedup this  process?

Try clipped_by and/or bounded_by instead. Think that is faster.

/Michael


Post a reply to this message

From: Nieminen Mika
Subject: Re: Cutaway view
Date: 3 Jun 1998 09:49:44
Message: <6l3k9o$aia$1@oz.aussie.org>
Michael Lundahl <d93### [at] efdlthse> wrote:
: Try clipped_by and/or bounded_by instead. Think that is faster.

  bounded_by will not clip the object if the camera is looking at the
clip surface.

-- 
                                                              - Warp. -


Post a reply to this message

From: Jon Paynter
Subject: Re: Cutaway view
Date: 3 Jun 1998 10:43:13
Message: <6l3n9u$an8$1@oz.aussie.org>
Nieminen Mika <war### [at] assaricctutfi> wrote:

>Michael Lundahl <d93### [at] efdlthse> wrote:
>: Try clipped_by and/or bounded_by instead. Think that is faster.

>  bounded_by will not clip the object if the camera is looking at the
>clip surface.

Thanks everyone for your suggestions!

I forgot about clipped_by.  Turns out its at least 3 times faster than
difference.   I'll post links when the image is done.  Its still
rendering but at least it will be done before the year 2000 :>

Jon.


Post a reply to this message

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