POV-Ray : Newsgroups : povray.general : Re: turbulence - Bug ? Server Time
6 Nov 2024 10:25:39 EST (-0500)
  Re: turbulence - Bug ? (Message 1 to 6 of 6)  
From: Ken
Subject: Re: turbulence - Bug ?
Date: 2 Dec 1999 00:53:55
Message: <384608F3.A2BC3997@pacbell.net>
Follow ups to .general.

"mr.art" wrote:
> 
> What was causing me problems went like this:
> #declare texturename = texture{...}
> object{... texture{texturename turbulence value}}
> It had worked in one of the old pre povwin versions.
> When I dug out an old scene file, this started giving
> me problems. I had used a different turbulence value
> for different objects.

Art,

 Ok. I tested the following in POV-Ray v2.2 and it did render as you said
it would. It would not render in POV-Ray for windows v3.1g watcom. Perhaps
it is a bug or was dropped to facilitate some other preferable funcionality
when POV-Ray v3.x was introduced. It might be related to the way the
turbulence modifier is not allowed in a patterned texture except after
all other modifiers are presented (illustrated at bottom of this message).

Either way lets see what the Gurus have to say about it.


Example:

  light_source{< 0,0,-5>color rgb<1,1,1>}
  camera{location<0,0,-3>look_at<0,0,0>}

  #declare T1 = 
  texture
    {
      pigment
       { bozo 
         color_map { [0 color rgb<.5,0,0>][1 color rgb<1,1,1>]}
       }
         finish
         {
           ambient .4
           diffuse .4
         }
     }

  sphere{<0,1,5>,1 texture{ T1 scale .5 turbulence .5 }}

 
> Ken wrote:
> >
> > "mr.art" wrote:
> > >
> > > I know that this is a new user sort of question, but
> > > I haven't found the answer in the FAQ section. (yet)
> > > The Docs say that turbulence can be used in a texture.
> > > When I try, I get an error. What's up?
> >
> > It is dependent upon location in the texture.
> >
> > This will not work
> >
> > texture { bozo turbulence .5
> >  texture_map{
> >              [0 T1]
> >              [1 T2]
> >             }
> >           }
> >
> > This will work
> >
> > texture { bozo
> >  texture_map{
> >              [0 T1]
> >              [1 T2]
> >             }
> >            turbulence .5
> >          }


Post a reply to this message

From: Ken
Subject: Re: turbulence - Bug ?
Date: 2 Dec 1999 01:08:07
Message: <38460C4E.879B5CC0@pacbell.net>
Ken wrote:

> It would not render in POV-Ray for windows v3.1g watcom.

For the record it will render in POV-Ray for windows v3.1g watcom
if you use the #version directive i.e. #version 2.0.

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: PoD
Subject: Re: turbulence - Bug ?
Date: 2 Dec 1999 18:21:28
Message: <3846FF6F.81F05219@merlin.net.au>
Ken wrote:
> 
> Follow ups to .general.
> 
> "mr.art" wrote:
> >
> > What was causing me problems went like this:
> > #declare texturename = texture{...}
> > object{... texture{texturename turbulence value}}
> > It had worked in one of the old pre povwin versions.
> > When I dug out an old scene file, this started giving
> > me problems. I had used a different turbulence value
> > for different objects.
> 
> Art,
> 
>  Ok. I tested the following in POV-Ray v2.2 and it did render as you said
> it would. It would not render in POV-Ray for windows v3.1g watcom. Perhaps
> it is a bug or was dropped to facilitate some other preferable funcionality
> when POV-Ray v3.x was introduced. It might be related to the way the
> turbulence modifier is not allowed in a patterned texture except after
> all other modifiers are presented (illustrated at bottom of this message).
> 
> Either way lets see what the Gurus have to say about it.
> 
> Example:
> 
>   light_source{< 0,0,-5>color rgb<1,1,1>}
>   camera{location<0,0,-3>look_at<0,0,0>}
> 
>   #declare T1 =
>   texture
>     {
>       pigment
>        { bozo
>          color_map { [0 color rgb<.5,0,0>][1 color rgb<1,1,1>]}
>        }
>          finish
>          {
>            ambient .4
>            diffuse .4
>          }
>      }
> 
>   sphere{<0,1,5>,1 texture{ T1 scale .5 turbulence .5 }}
> 
> 
> > Ken wrote:
> > >
> > > "mr.art" wrote:
> > > >
> > > > I know that this is a new user sort of question, but
> > > > I haven't found the answer in the FAQ section. (yet)
> > > > The Docs say that turbulence can be used in a texture.
> > > > When I try, I get an error. What's up?
> > >
> > > It is dependent upon location in the texture.
> > >
> > > This will not work
> > >
> > > texture { bozo turbulence .5
> > >  texture_map{
> > >              [0 T1]
> > >              [1 T2]
> > >             }
> > >           }
> > >
> > > This will work
> > >
> > > texture { bozo
> > >  texture_map{
> > >              [0 T1]
> > >              [1 T2]
> > >             }
> > >            turbulence .5
> > >          }


Here's the texture syntax from the docs

TEXTURE: 
      PLAIN_TEXTURE | PATTERNED_TEXTURE | LAYERED_TEXTURE 
PLAIN_TEXTURE: 
      texture { [TEXTURE_IDENTIFIER] [PNF_IDENTIFIER...] [PNF_ITEMS...]
} 
PNF_IDENTIFIER: 
      PIGMENT_IDENTIFIER | NORMAL_IDENTIFIER | FINISH_IDENTIFIER 
PNF_ITEMS: 
      PIGMENT | NORMAL | FINISH | TRANSFORMATION 
LAYERED_TEXTURE: 
      NON_PATTERNED_TEXTURE... 
PATTERNED_TEXTURE: 
      texture { [PATTERNED_TEXTURE_ID] [TRANSFORMATIONS...] } | 
      texture { PATTERN_TYPE [TEXTURE_PATTERN_MODIFIERS...] } | 
      texture { tiles TEXTURE tile2 TEXTURE [TRANSFORMATIONS...] } | 
      texture { 
      material_map{ 
      BITMAP_TYPE "bitmap.ext" [MATERIAL_MODS...] TEXTURE...
[TRANSFORMATIONS...] 
      } 
      } 
TEXTURE_PATTERN_MODIFIER: 
      PATTERN_MODIFIER | TEXTURE_LIST | 
      texture_map{ TEXTURE_MAP_BODY } 

As you can see, a pattern modifier (such as turbulence)can be applied to
a
patterned texture but not to a plain texture. A simple texture
containing a
patterned pigment is still a plain teture.

Did v2.x have patterned textures? I can't remember and I don't have a
Linux
version of any early versions.

Goes to show, all scene files should use the #version directive, you
never
know how long that file will be around.

Cheers, PoD.


Post a reply to this message

From: Ken
Subject: Re: turbulence - Bug ?
Date: 2 Dec 1999 18:28:20
Message: <38470010.B1802E3@pacbell.net>
PoD wrote:


> Did v2.x have patterned textures? I can't remember and I don't have a
> Linux version of any early versions.

Pov-Ray v2.2 did not allow for patterned textures.
 
> Goes to show, all scene files should use the #version directive, you
> never know how long that file will be around.

If anything when something used to work but does not now a version
directive can help isolate when the change occured.

 You have to love the backward compatibility that POV-Ray offers !

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Nathan Kopp
Subject: Re: turbulence - Bug ?
Date: 10 Dec 1999 23:54:05
Message: <3851d8ed@news.povray.org>
I consider this a bug.  An unintended limitation, technically.  It's easy
enough (by adding 6 lines of code) to allow all warps (including turbulence
warps) to be applied to textures using texture{texturename modfiers}.
Currently, only transformations can be applied.  We probably never want to
allow just plain 'turbulence', but putting turbulence in a warp is easy to
do and should be allowed.

-Nathan

Ken <tyl### [at] pacbellnet> wrote...
>
>
> Follow ups to .general.
>
> "mr.art" wrote:
> >
> > What was causing me problems went like this:
> > #declare texturename = texture{...}
> > object{... texture{texturename turbulence value}}
> > It had worked in one of the old pre povwin versions.
> > When I dug out an old scene file, this started giving
> > me problems. I had used a different turbulence value
> > for different objects.
>
> Art,
>
>  Ok. I tested the following in POV-Ray v2.2 and it did render as you said
> it would. It would not render in POV-Ray for windows v3.1g watcom. Perhaps
> it is a bug or was dropped to facilitate some other preferable
funcionality
> when POV-Ray v3.x was introduced. It might be related to the way the
> turbulence modifier is not allowed in a patterned texture except after
> all other modifiers are presented (illustrated at bottom of this message).
>
> Either way lets see what the Gurus have to say about it.
>
>


Post a reply to this message

From: Ken
Subject: Re: turbulence - Bug ?
Date: 11 Dec 1999 00:32:51
Message: <3851E1D7.6F444A14@pacbell.net>
Nathan Kopp wrote:
> 
> I consider this a bug.  An unintended limitation, technically.  It's easy
> enough (by adding 6 lines of code) to allow all warps (including turbulence
> warps) to be applied to textures using texture{texturename modfiers}.
> Currently, only transformations can be applied.  We probably never want to
> allow just plain 'turbulence', but putting turbulence in a warp is easy to
> do and should be allowed.
> 
> -Nathan

What problems would be caused if a plain 'turbulence' where allowed ?

It worked nicely in v2.2 and in fact it is still allowed if you use
the #version directive. It seems it is more of an ommision rather
than an intended limitation.

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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