POV-Ray : Newsgroups : povray.binaries.images : Building facades (1) Server Time
7 Nov 2024 11:34:26 EST (-0500)
  Building facades (1) (Message 1 to 10 of 10)  
From: StDunstan
Subject: Building facades (1)
Date: 3 Sep 2004 04:55:01
Message: <web.41382ff9ce83a56bd99800df0@news.povray.org>
I am currently on a big scene in town. thus needing to have lot of building
facades.

Starting from macros found on Gilles Tran's website
(http://www.oyonale.com/) I built these walls brick by brick to get those
small variations unpossible to get from the built in "brick pattern".

The problem : It needs ages to be rendered on an average PC, especially as
soon as you use CSG to get the window holes.


Post a reply to this message


Attachments:
Download 'topshop.jpg' (416 KB)

Preview of image 'topshop.jpg'
topshop.jpg


 

From: Xplo Eristotle
Subject: Re: Building facades (1)
Date: 3 Sep 2004 05:13:50
Message: <413835ce@news.povray.org>
StDunstan wrote:

> The problem : It needs ages to be rendered on an average PC, especially as
> soon as you use CSG to get the window holes.

I've no idea how to fix that problem, but I must say the upper third of 
this pic looks nearly photorealistic. :O

-Xplo


Post a reply to this message

From: Josh
Subject: Re: Building facades (1)
Date: 3 Sep 2004 05:56:02
Message: <41383fb2$1@news.povray.org>
> I built these walls brick by brick to get those
> small variations unpossible to get from the built in "brick pattern".

Swap out the individual bricks for a heightfield.


Post a reply to this message

From: Hugo Asm
Subject: Re: Building facades (1)
Date: 3 Sep 2004 09:30:21
Message: <413871ed$1@news.povray.org>
Looks very very good! Impressive! I don't think you need CSG for the
windows. It will require a bit more coding, though...

Josh suggested to replace the bricks with a heightfield. That won't speed up
anything, assuming you didn't use CSG for the bricks.

Regards,
Hugo


Post a reply to this message

From: Rarius
Subject: Re: Building facades (1)
Date: 3 Sep 2004 09:36:12
Message: <4138734c$1@news.povray.org>
I've found that swapping code around can help a LOT in CSG work...

Using difference to chop out bits of a large union is very slow compaired to 
unioning up lots of differences... Here's an example... The following took 
1m14s to render...

difference
{
 union
 {
  #local n=0;
  #while(n<1000)
   sphere{vnormalize(<rand(R1), rand(R1), rand(R1)>), .01}
   #local n=n+1;
  #end
 }
 sphere{1, 0}
}

While the following produced exactly the same results in only 10s

union
{
 #local n=0;
 #while(n<1000)
  difference
  {
   sphere{vnormalize(<rand(R1), rand(R1), rand(R1)>), .01}
   sphere{1, 0}
  }
  #local n=n+1;
 #end
}

If you difference each of your bricks with the window "holes" and then union 
them, you should see a massive speed increase...

BTW replacing union with merge in the above script slows it down 
MASSIVELY!!!!

Another tip is to use bounded_by on any onject that isnt a straight union... 
differences for example are pretty poor at bounding themselves.

Rarius

"StDunstan" <fla### [at] yahoocom> wrote in message 
news:web.41382ff9ce83a56bd99800df0@news.povray.org...
>I am currently on a big scene in town. thus needing to have lot of building
> facades.
>
> Starting from macros found on Gilles Tran's website
> (http://www.oyonale.com/) I built these walls brick by brick to get those
> small variations unpossible to get from the built in "brick pattern".
>
> The problem : It needs ages to be rendered on an average PC, especially as
> soon as you use CSG to get the window holes.


Post a reply to this message

From: =Bob=
Subject: Re: Building facades (1)
Date: 3 Sep 2004 11:08:21
Message: <413888e5$1@news.povray.org>
"StDunstan" <fla### [at] yahoocom> wrote in message
news:web.41382ff9ce83a56bd99800df0@news.povray.org...
: The problem : It needs ages to be rendered on an average PC, especially as
: soon as you use CSG to get the window holes.

Gorgeous! Very real looking. The only way I've ever found
to speed up such things is to not use CSG removal at
all and just "build" it like builders do. It takes more coding,
but it generates faster.
=Bob=


Post a reply to this message

From: StDunstan
Subject: Re: Building facades (1)
Date: 3 Sep 2004 11:25:01
Message: <web.41388c7a5fa8f174d99800df0@news.povray.org>
"=Bob=" <robertUNDERSCOREdobbinsATmailDOTtdsDOTnet> wrote:
> "StDunstan" <fla### [at] yahoocom> wrote in message
news:web.41382ff9ce83a56bd99800df0@news.povray.org...
> : The problem : It needs ages to be rendered on an average PC, especially as
> : soon as you use CSG to get the window holes.
>
> Gorgeous! Very real looking. The only way I've ever found
> to speed up such things is to not use CSG removal at
> all and just "build" it like builders do. It takes more coding,
> but it generates faster.
> =Bob=



After all... Why not ? and the window frames would be more realistic then.

As long as I just have verticals and hotizontal limit it would not be so
difficult. For curvy arch on top... need higher skill than mine for now...

I will work on it, thanks


Post a reply to this message

From: Josh
Subject: Re: Building facades (1)
Date: 3 Sep 2004 12:34:29
Message: <41389d15$1@news.povray.org>
> Josh suggested to replace the bricks with a heightfield. That won't speed
up
> anything, assuming you didn't use CSG for the bricks.

I thought height fields were quicker than big csg's, that's my experience
anyway.

I'm interested in any stats if you have them? :)


Post a reply to this message

From: Hugo Asm
Subject: Re: Building facades (1)
Date: 3 Sep 2004 13:22:01
Message: <4138a839$1@news.povray.org>
> > Josh suggested to replace the bricks with a heightfield.
> > That won't speed up anything, assuming you didn't use
> CSG for the bricks.
>
> I thought height fields were quicker than big csg's, that's my experience
> anyway.
>
> I'm interested in any stats if you have them? :)

Heightfields are definitely quicker than CSG "difference" and "intersection"
(also called boolean operations) but what I meant was, heightfields are not
quicker than standard primitives. So if you have 5000 boxes, they will
render as quickly as 1 heightfield, as long as you don't use boolean
operations.

Hope that makes sense. :-)

Regards,
Hugo


Post a reply to this message

From: DC
Subject: Re: Building facades (1)
Date: 3 Oct 2004 00:00:00
Message: <web.415f78255fa8f174f5e060ef0@news.povray.org>
Ai yi yi, individual bricks!  Crazy!

Check out:

http://www.shipbrook.com/jeff/raytrace/bricks.html

He uses warped pigment patterns to get different colors for each
brick...well worth checking out if you want to do this sort of thing in the
future.

~DC


Post a reply to this message

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