POV-Ray : Newsgroups : povray.unofficial.patches : How many lines of code: eliminate plateaus in noise3d by interval change Server Time
2 Sep 2024 12:13:40 EDT (-0400)
  How many lines of code: eliminate plateaus in noise3d by interval change (Message 9 to 18 of 18)  
<<< Previous 8 Messages Goto Initial 10 Messages
From: Peter Popov
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 21 Mar 2000 19:41:36
Message: <1hXYOOGigZhtLjnb8ms1QVWiooct@4ax.com>
On Tue, 21 Mar 2000 18:16:24 -0500, "JR McConnell" <sno### [at] homecom>
wrote:

>    I would approach this problem by creating a global variable, an optional
>arg to the command, or ini/inc file entry. So legacy POV programs
>using/requiring the older form of the variable data is unaffected. This
>would be because the default value will remain the original value. In
>addition, those wishing a different one can just add the optional arg, set
>the global, or make an ini/inc file entry.

The creators of POV-Ray, more precisely those responsible for the
#version directive, must have been thinking along the same lines :)

>    I do not know if this is a good idea or not. Nevertheless, hope it will
>help. There may be another way to do it that I, do to my lack of knowledge
>of POV, do not know...

As Tony suggested, making sure that #version 3.1; uses the old method
should suffice. I too hate to see them plateaus with height fields and
normals and would love to have them gone.


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Gail Shaw
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 02:20:05
Message: <38d87425@news.povray.org>
Nathan Kopp wrote in message <38d7e2a5@news.povray.org>...
>
>Greg M. Johnson <gre### [at] my-dejanewscom> wrote...
>> We have all discussed the issue many times without answering the
>> following question:
>>
>> How *hard* would it be to "fix" pov to eliminate the plateuas that exist
>> in the noise3d function?
>>
>
>7 lines of code (plus comments).  ...and then some parser stuff for adding
>backwards compatibility.
>
>Could be fewer, but I was going for code clarity.  :-)
>


Would that also remove the plateaus from the bozo pattern?

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* Document program code? Why do you think it's called code?        *
********************************************************************


Post a reply to this message

From: Nieminen Juha
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 04:25:56
Message: <38d891a4@news.povray.org>
TonyB <ben### [at] panamac-comnet> wrote:
: But, you (programmers) have always said that you could add something for
: backward compatibility. Why don't you just fix it and add a #version thingy
: to use the old noise?

  That's not always a good solution. If you want to use the texture in
a newer scene, you wouldn't be able to use new features.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Chris Huff
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 06:33:52
Message: <chrishuff_99-24E91A.06355822032000@news.povray.org>
In article <38d891a4@news.povray.org>, Nieminen Juha 
<war### [at] sarakerttunencstutfi> wrote:

>   That's not always a good solution. If you want to use the texture in
> a newer scene, you wouldn't be able to use new features.

Not necessarily, you could keep the old noise functions and have the 
parser use them or their replacements depending on what the #version is 
set to at the time of parsing. For example, internally there would be 
two bozo functions, one for old versions and one for newer versions. 
They would both be very similar and would use the same keyword, just the 
new one wouldn't have plateaus, and they would be chosen depending on 
the #version value.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Chris Huff
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 06:35:53
Message: <chrishuff_99-5E0538.06375922032000@news.povray.org>
In article <38d87425@news.povray.org>, "Gail Shaw" 
<gsh### [at] monotixcoza> wrote:

> Would that also remove the plateaus from the bozo pattern?

If it just modifies the noise function(which it sounds like it does, I 
don't know how else it would fit into 7 lines), it would fix the bozo 
pattern.


> * Document program code? Why do you think it's called code?        *

:-)
Can't really argue with that reasoning...

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: TonyB
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 10:20:25
Message: <38d8e4b9@news.povray.org>
>Christopher James Huff

Is this the first time you put up your whole name? I hadn't noticed it until
now, if you had put it up before. Cool name. Do your friends call you CJ, or
Chris?


Post a reply to this message

From: Chris Huff
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 22 Mar 2000 15:41:10
Message: <chrishuff_99-D863CF.15431622032000@news.povray.org>
In article <38d8e4b9@news.povray.org>, "TonyB" 
<ben### [at] panamac-comnet> wrote:

> >Christopher James Huff
> 
> Is this the first time you put up your whole name?

It probably is, although it might be mentioned somewhere on my web page. 
I don't use my middle name much.


> I hadn't noticed it until now, if you had put it up before. Cool 
> name. Do your friends call you CJ, or Chris?

I usually go by Chris. I don't think many of my friends even know what 
my middle name is.
Online, I usually just go by Chris Huff or Chris H, and especially on 
this server(which seems to have a large number of other people named 
"Chris"), it is a good idea to indicate *which* Chris you are talking 
to/about.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Glen Berry
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 23 Mar 2000 00:36:42
Message: <I6zZOBAv1WjJe=baC1lh9jWOUq7z@4ax.com>
On 21 Mar 2000 10:26:24 -0500, ron### [at] povrayorg (Ron Parker)
wrote:
>On Tue, 21 Mar 2000 08:17:07 -0500, Greg M. Johnson wrote:
>>How *hard* would it be to "fix" pov to eliminate the plateuas that exist
>>in the noise3d function?
>
>It's not a question of how hard it would be, it's a question of how many 
>scene files it would break.

On the other hand, how many scene files have already been "broken"
(ruined) by the current implementation? Also, how many more scene
files must suffer from this bug before it is corrected?

Later,
Glen Berry


Post a reply to this message

From: Peter Popov
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 23 Mar 2000 19:38:01
Message: <y7jaOBW7WG0kYzIQixjKqyDKLiCd@4ax.com>
On Wed, 22 Mar 2000 10:18:15 -0500, "TonyB"
<ben### [at] panamac-comnet> wrote:

>>Christopher James Huff
>
>Is this the first time you put up your whole name? I hadn't noticed it until
>now, if you had put it up before. Cool name. Do your friends call you CJ, or
>Chris?

I don't think any guy would want to be called CJ. Or don't they show
Baywatch down there? :)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Chris Huff
Subject: Re: How many lines of code: eliminate plateaus in noise3d by interval change
Date: 23 Mar 2000 20:27:47
Message: <chrishuff_99-CE4B05.20295523032000@news.povray.org>
In article <y7jaOBW7WG0kYzIQixjKqyDKLiCd@4ax.com>, Peter Popov 
<pet### [at] usanet> wrote:

> I don't think any guy would want to be called CJ.

I have never had anyone call me that, like I said, I don't use my middle 
name much. I don't think I would like it much...

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

<<< Previous 8 Messages Goto Initial 10 Messages

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