POV-Ray : Newsgroups : povray.general : Flower power : Re: Flower power Server Time
3 Aug 2024 20:15:25 EDT (-0400)
  Re: Flower power  
From: Mike Williams
Date: 23 Oct 2003 02:04:29
Message: <KwmOyHAw32l$EwvN@econym.demon.co.uk>
Wasn't it Hughes, B. who wrote:
>How elaborate a flower? Unrealistic daisy is simple. Realistic rose much
>more difficult. At least from what I'm thinking it would be.
>
>The daisy could be a radial pattern, like so:
>

That could be made a little more realistic, like:-

#version 3.5;
global_settings {assumed_gamma 1.0}
camera {location  <-1,0,-2> look_at <0,0,0> angle 50}
background {rgb 1}
light_source {<-10, 10, -30> color rgb 1}
#include "functions.inc"

#declare FlowerPattern =
function {
 pattern {
  radial
  scallop_wave frequency 6 // shape and number of petals
  rotate 90*x
 }
}

isosurface {
 function {
  (x*x+y*y+z*z*20) // sphere shape
  -
  FlowerPattern(x,y,z)
  + f_noise3d(x*6,y*6,0)*0.5
 }
 contained_by {
  box {<-1,-1,0>,<1,1,0.4>} 
 }
 open
 max_gradient 20
 pigment {
   cylindrical
   color_map {
     [0.2    color rgb <1,0.7,0.7>]
     [0.25  color rgb <1,1,1>]
   }
   rotate x*90
 }
}


Post a reply to this message

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