POV-Ray : Newsgroups : povray.binaries.scene-files : Simulated urbanism macro scene: new version Server Time
25 Apr 2024 17:26:22 EDT (-0400)
  Simulated urbanism macro scene: new version (Message 1 to 4 of 4)  
From: Thomas de Groot
Subject: Simulated urbanism macro scene: new version
Date: 11 Mar 2013 05:06:12
Message: <513d9e84$1@news.povray.org>
This is the scene code shown in the image in p.b.i.

Thomas


Post a reply to this message


Attachments:
Download 'windows-1252' (15 KB)

From: Karl Anders
Subject: Re: Simulated urbanism macro scene: new version
Date: 11 Mar 2013 16:40:01
Message: <web.513e4072e19417fa587c21660@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> This is the scene code shown in the image in p.b.i.
>
> Thomas

Hi Thomas,

first of all: great work !
I had a SHORT look into your code and stumbled about a minor problem:

quote:
#while (Counter < Numbers)

  #local Scaling = 1.0;
  #if (Counter < Numbers*0.33) #local Scaling = 1.50; #end
  #if (Counter < Numbers*0.66) #local Scaling = 1.25; #end

:endquote
Scaling == 1.50 is NEVER used, because if the counter is less than 0.33*Numbers,
it is also less than 0.66*Numbers, and then the second line sets Scaling == 1.25
!
These two lines have to be swapped or #elseif has to be used in the second line
for the desired effect!

Sorry ;-)

Sadly I'm involved with too many other projects at the moment (most of them NOT
raytracing-related) to play around with this...

Greetings
Karl


Post a reply to this message

From: Thomas de Groot
Subject: Re: Simulated urbanism macro scene: new version
Date: 12 Mar 2013 04:04:13
Message: <513ee17d$1@news.povray.org>
On 11-3-2013 21:37, Karl Anders wrote:
> Hi Thomas,
>
> first of all: great work !

Thanks!

> I had a SHORT look into your code and stumbled about a minor problem:
>
> quote:
> #while (Counter < Numbers)
>
>    #local Scaling = 1.0;
>    #if (Counter < Numbers*0.33) #local Scaling = 1.50; #end
>    #if (Counter < Numbers*0.66) #local Scaling = 1.25; #end
>
> :endquote
> Scaling == 1.50 is NEVER used, because if the counter is less than 0.33*Numbers,
> it is also less than 0.66*Numbers, and then the second line sets Scaling == 1.25
> !
> These two lines have to be swapped or #elseif has to be used in the second line
> for the desired effect!

Oops! You are perfectly right. I did not think this through correctly.

>
> Sorry ;-)

That's all right :-) I tend to get blind to my own errors at some stage.

>
> Sadly I'm involved with too many other projects at the moment (most of them NOT
> raytracing-related) to play around with this...

Understandable. No problem.

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Simulated urbanism macro scene: new version (2013.03.12)
Date: 12 Mar 2013 05:04:55
Message: <513eefb7@news.povray.org>
On 11-3-2013 21:37, Karl Anders wrote:
> I had a SHORT look into your code and stumbled about a minor problem:

Here is the corrected version. Thanks again, Karl.

Thomas


Post a reply to this message


Attachments:
Download 'windows-1252' (16 KB)

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