POV-Ray : Newsgroups : povray.general : Wood texture with additional xylem rays??? Server Time
29 Jul 2024 18:17:28 EDT (-0400)
  Wood texture with additional xylem rays??? (Message 11 to 17 of 17)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: hearing
Subject: Re: Wood texture with additional xylem rays???
Date: 1 Mar 2011 13:20:00
Message: <web.4d6d3815cea7185957cf44a70@news.povray.org>
> If you wanted a new layer, then close the first texture statement and
> then enclose the new pigment on a new texture{} statement just after the
> first. Otherwise you are destroying a layer that might be important for
> the texture overall look.
>

Okay, my mistake. Moreover i didn't really get the idea of multiple layers.
I tried to add another texture but it is always overwriting the old one, even
with hopefully right brackets. What's my conceptional misunderstanding?


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Wood texture with additional xylem rays???
Date: 1 Mar 2011 13:35:01
Message: <web.4d6d3c20cea7185981c811d20@news.povray.org>
"hearing" <nomail@nomail> wrote:
> > If you wanted a new layer, then close the first texture statement and
> > then enclose the new pigment on a new texture{} statement just after the
> > first. Otherwise you are destroying a layer that might be important for
> > the texture overall look.
> >
>
> Okay, my mistake. Moreover i didn't really get the idea of multiple layers.
> I tried to add another texture but it is always overwriting the old one, even
> with hopefully right brackets. What's my conceptional misunderstanding?

Each texture that gets layered over another will only show the one beneath where
it has transparency.  So if you want to add additional 'spots' on top of the
ready made texture, the added texture layer should have the spots that need to
be added, but then be transparent (or partly) between them.

If you post an example of what your are achieving or the code you are doing, it
may be easier to identify any problem.

-tgq


Post a reply to this message

From: Jim Holsenback
Subject: Re: Wood texture with additional xylem rays???
Date: 1 Mar 2011 14:42:42
Message: <4d6d4c32$1@news.povray.org>
On 03/01/2011 02:16 PM, hearing wrote:
>> If you wanted a new layer, then close the first texture statement and
>> then enclose the new pigment on a new texture{} statement just after the
>> first. Otherwise you are destroying a layer that might be important for
>> the texture overall look.
>>
> 
> Okay, my mistake. Moreover i didn't really get the idea of multiple layers.
> I tried to add another texture but it is always overwriting the old one, even
> with hopefully right brackets. What's my conceptional misunderstanding?
>

I was going to let you discover that when I pointed you to the docs ...
seriously the docs tell it all ... have a peek at this one also:

Reference->Layered Textures (3.5.6) distribution docs or:
http://wiki.povray.org/content/Documentation:Reference_Section_5.2#Layered_Textures


Post a reply to this message

From: Alain
Subject: Re: Wood texture with additional xylem rays???
Date: 1 Mar 2011 15:03:32
Message: <4d6d5114@news.povray.org>

>> You can add another layer.
>> For the added layer, you can use a bozo or leopard pattern unevenly
>> scalled. That pattern will be mostly transparent with some darker
>> filtering areas.
>> leopard will give a more regular pattern, while bozo have a random look.
>> Additionaly, you can apply a cylindrical warp to that layer.
>>
>> You can also experiment with some other patterns.
>>
>>
>>
>> Alain
>
> Thanks a lot,
>
> i tried already, but bozo and leopard are defined to appear in every direction
> similar. I am looking for a "bozo" like layer that only appear in one direction.
> In my case, the radial direction. Any suggestions?
>
> hearing
>
>
>

For that, use warps.
First and optional, a planar warp to take a slice of the pattern.
Second, a cylindrical warp to make it radial around an axis.




Alain


Post a reply to this message

From: clipka
Subject: Re: Wood texture with additional xylem rays???
Date: 1 Mar 2011 19:49:29
Message: <4d6d9419$1@news.povray.org>
Am 01.03.2011 09:22, schrieb hearing:
>> You can add another layer.
>> For the added layer, you can use a bozo or leopard pattern unevenly
>> scalled. That pattern will be mostly transparent with some darker
>> filtering areas.
>> leopard will give a more regular pattern, while bozo have a random look.
>> Additionaly, you can apply a cylindrical warp to that layer.
>>
>> You can also experiment with some other patterns.
>
> i tried already, but bozo and leopard are defined to appear in every direction
> similar. I am looking for a "bozo" like layer that only appear in one direction.
> In my case, the radial direction. Any suggestions?

Try the "planar warp"; it is intended to stretch a 2D slice of a texture 
into infinity; then, apply cylindrical warp to that.


Post a reply to this message

From: hearing
Subject: Re: Wood texture with additional xylem rays???
Date: 9 Mar 2011 06:05:01
Message: <web.4d775ddfcea7185957cf44a70@news.povray.org>
> I was going to let you discover that when I pointed you to the docs ...
> seriously the docs tell it all ... have a peek at this one also:
>
> Reference->Layered Textures (3.5.6) distribution docs or:
> http://wiki.povray.org/content/Documentation:Reference_Section_5.2#Layered_Textures

..... Thanks again, i just missed it. Unfortunately focussed more on the
examples.


Post a reply to this message

From: hearing
Subject: Re: Wood texture with additional xylem rays???
Date: 13 Jul 2011 09:20:00
Message: <web.4e1d9a8ccea71859452487940@news.povray.org>
Now I just resume my work and try to follow your advises but I can't get it
anyway. After I get the topic about layered textures I applied planar and
cylindrical warp to bozo or leopard its not the solution I expected.
Any Ideas to get the "wood ray" texture more elliptic and the radial "rays"
constant in diameter? At the moment they are increasing the diameter
proportional to the distance to the centre, unfortunately. My actual test code
as follows:
//-----------------------
#include "woods.inc"
#include "woodmaps.inc"
#declare P_WoodGrain200A =
pigment {
    wood
    turbulence 0.02
    octaves 4
    lambda 3
    scale 0.175
    rotate <2, 2, 0>
}
#declare P_WoodGrain200B =
pigment {
    wood
    turbulence 0.02
    octaves 4
    lambda 2.8
    scale 0.2
    rotate <2, 2, 0>
    translate <0.0175, 0.0175, 0.0175>
}
#declare M_Wood200A =
color_map {
    [0.0, 0.5 color rgb <1.00, 0.85, 0.50>
              color rgb <0.90, 0.70, 0.46>]
    [0.5, 0.7 color rgb <0.90, 0.70, 0.46>
              color rgb <0.90, 0.70, 0.46>]
    [0.7, 1.0 color rgb <0.90, 0.70, 0.46>
              color rgb <1.00, 0.85, 0.50>]
}
/*#declare M_Wood200B =
color_map {
    [0.0, 0.5 color rgbt <1.00, 0.45, 0.10, 0.80>
              color rgbt <0.85, 0.65, 0.40, 0.40>]
    [0.5, 0.7 color rgbt <0.85, 0.65, 0.40, 0.40>
              color rgbt <0.85, 0.65, 0.40, 0.40>]
    [0.7, 1.0 color rgbt <0.85, 0.65, 0.40, 0.40>
              color rgbt <1.00, 0.45, 0.10, 0.80>]
}
*/#declare M_Wood200B =
color_map {
    [0.0, 0.5 color rgbt <1.00, 0.45, 0.10, 0.00>
              color rgbt <0.85, 0.65, 0.40, 0.00>]
    [0.5, 0.6 color rgbt <0.85, 0.65, 0.40, 0.00>
              color rgbt <0.85, 0.65, 0.40, 0.00>]
    [0.6, 1.0 color rgbt <0.85, 0.65, 0.40, 0.990>
              color rgbt <1.00, 0.45, 0.10, 0.990>]
}
#declare T_Wood200 =
   texture {  pigment{ P_WoodGrain200A color_map { M_Wood200A } }}
   texture {  pigment{ P_WoodGrain200B color_map { M_Wood200B } }}
//
background { color rgb <1, 1, 1> }
camera { location <1.1, 0.75, -1.5> look_at <0.0, 0.0, 0.0> }
light_source { <6.0, 8.0, -8.0> color rgb <1.0, 1.0, 1.0> }
//
box {
  <-0.35, -0.35, -0.35>
  < 0.35,  0.35,  0.35>
      texture { T_Wood200
            pigment {
                       // leopard
                     //  bozo
                     crackle scale <5,1,5>*0.3
                     warp { planar <0.002,0.1,-1>,50 }

                    //-----------------------
                     warp{  cylindrical
                        orientation <0,0,1>
                        dist_exp 0.0
                        }
                    //-----------------------
                        }
               }
}
//-----------------------

hearing


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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