POV-Ray : Newsgroups : povray.general : Wood texture with additional xylem rays??? : Re: Wood texture with additional xylem rays??? Server Time
29 Jul 2024 20:15:46 EDT (-0400)
  Re: Wood texture with additional xylem rays???  
From: hearing
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

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