POV-Ray : Newsgroups : povray.general : Flower power Server Time
4 Nov 2024 21:22:04 EST (-0500)
  Flower power (Message 1 to 10 of 24)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Anthony D  Baye
Subject: Flower power
Date: 22 Oct 2003 02:41:24
Message: <3F962693.84387F65@Rapidnet.com>
Does anybody know how to design a flower using an IsoSurface? (Is this
even possible?)
I only need the flower itself, not the stem.


Anthony D. Baye.


Post a reply to this message

From: Hughes, B 
Subject: Re: Flower power
Date: 22 Oct 2003 09:24:36
Message: <3f968514$1@news.povray.org>
"Anthony D. Baye" <ban### [at] Rapidnetcom> wrote in message
news:3F962693.84387F65@Rapidnet.com...
> Does anybody know how to design a flower using an IsoSurface? (Is this
> even possible?)
> I only need the flower itself, not the stem.


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:

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

Then used as:

isosurface {
 function {
  (x*x+y*y+z*z) // sphere shape
  -
  FlowerPattern(x,y,z)
 }
 contained_by {
  box {<-1,-1,-0.1>,<1,1,0.1>} // middle slice
 }
    pigment {
        spherical
            color_map {
                [0.75 color rgb <1,1,1>]
                [0.8 color rgb <1,1,0>]
            }
        }
}

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Flower power
Date: 22 Oct 2003 17:41:19
Message: <3F96F97F.FB04E35D@Rapidnet.com>
I was thinking, like a rose or something.

                                            Anthony D. Baye

"Hughes, B." wrote:

> "Anthony D. Baye" <ban### [at] Rapidnetcom> wrote in message
> news:3F962693.84387F65@Rapidnet.com...
> > Does anybody know how to design a flower using an IsoSurface? (Is this
> > even possible?)
> > I only need the flower itself, not the stem.
>
> 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:
>
> function {
>  pattern {
>   radial
>   scallop_wave frequency 6 // shape and number of petals
>   rotate 90*x
>  }
> }
>
> Then used as:
>
> isosurface {
>  function {
>   (x*x+y*y+z*z) // sphere shape
>   -
>   FlowerPattern(x,y,z)
>  }
>  contained_by {
>   box {<-1,-1,-0.1>,<1,1,0.1>} // middle slice
>  }
>     pigment {
>         spherical
>             color_map {
>                 [0.75 color rgb <1,1,1>]
>                 [0.8 color rgb <1,1,0>]
>             }
>         }
> }
>
> --
> Bob H.
> http://www.3digitaleyes.com


Post a reply to this message

From: Hughes, B 
Subject: Re: Flower power
Date: 22 Oct 2003 20:08:42
Message: <3f971c0a$1@news.povray.org>
"Anthony D. Baye" <ban### [at] Rapidnetcom> wrote in message
news:3F96F97F.FB04E35D@Rapidnet.com...
> I was thinking, like a rose or something.

Suspected so, and although maybe there's some way to cobble together some
patterns I would expect a mathematical formulation could ultimately be the
answer you're looking for.

I'm probably not going to be the one who might provide that, sorry. I did
get an ugly rose-like thing using the onion pattern, having frequency of 4
and scaled larger in one direction; also turbulated a little.  :-)

I had thought this might be something already done by someone before but I
sure can't locate anything concerning a isosurface flower. I suppose I'm
thinking of meshes.

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

From: Christopher James Huff
Subject: Re: Flower power
Date: 22 Oct 2003 20:33:09
Message: <cjameshuff-EEBD5F.20310222102003@netplex.aussie.org>
In article <3f971c0a$1@news.povray.org>,
 "Hughes, B." <omn### [at] charternet> wrote:

> I had thought this might be something already done by someone before but I
> sure can't locate anything concerning a isosurface flower. I suppose I'm
> thinking of meshes.

I did this a *long* time ago, when I was first playing around with 
isosurfaces. It was basically an extremely distorted sphere function, 
and looked a bit like a fat rose. A mesh certainly seems like a better 
choice, however.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Patrick Elliott
Subject: Re: Flower power
Date: 22 Oct 2003 23:48:22
Message: <MPG.1a00fb8641b5c8e6989901@news.povray.org>
In article <cja### [at] netplexaussieorg>, 
cja### [at] earthlinknet says...
> In article <3f971c0a$1@news.povray.org>,
>  "Hughes, B." <omn### [at] charternet> wrote:
> 
> > I had thought this might be something already done by someone before but I
> > sure can't locate anything concerning a isosurface flower. I suppose I'm
> > thinking of meshes.
> 
> I did this a *long* time ago, when I was first playing around with 
> isosurfaces. It was basically an extremely distorted sphere function, 
> and looked a bit like a fat rose. A mesh certainly seems like a better 
> choice, however.
> 
> 

In theory:

http://mathworld.wolfram.com/StarrRose.html

However, since they don't actually provide the equations for it, but 
simply assume you know how to derive it from the 2D calcs in:

http://mathworld.wolfram.com/Rose.html

It isn't very helpful. Especially since I can't figure out what 'a' needs 
to be or do to make Rose calcs work right either....

In my case I am trying to do something like:

N = 5 * rnd
vdelta = 2 * PI * rnd
vector = a * sin(N * vdelta)
X = cos(vector) * 30 
Y = sin(vector) * 30

The problem is all I get is a dang circle... It is driving me batty. If 
it was for something in POV, it would be driving me even more nuts. But 
man would the StarrRose make a real nice Isosurface. Sigh...

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

From: Mike Williams
Subject: Re: Flower power
Date: 23 Oct 2003 02:04:26
Message: <KwnOiDA022l$EwP5@econym.demon.co.uk>
Wasn't it Patrick Elliott who wrote:

>In my case I am trying to do something like:
>
>N = 5 * rnd
>vdelta = 2 * PI * rnd
>vector = a * sin(N * vdelta)
>X = cos(vector) * 30 
>Y = sin(vector) * 30
>
>The problem is all I get is a dang circle... It is driving me batty. If 
>it was for something in POV, it would be driving me even more nuts. But 
>man would the StarrRose make a real nice Isosurface. Sigh...

I think that N should be a constant (it's the number of petals or half
the number of petals depending on whether it's odd or even) and X and Y
should be cos(vdelta)*vector and sin(vdelta)*vector. "a" is a scaling
factor, the maximum radius of the whole shape

So:-

#version 3.5;
global_settings {assumed_gamma 1.0}
camera {location  <0,0,-10> look_at <0,0,0> angle 50}
background {rgb 1}
light_source {<-30, 100, -30> color rgb 1}

#declare rnd=0;
#declare N = 5;
#declare a=3;
#while (rnd < 1)
  #declare vdelta = 2 * pi * rnd;
  #declare vector = a * sin(N * vdelta);
  #declare X = cos(vdelta) * vector; 
  #declare Y = sin(vdelta) * vector;
    sphere {<X,Y,0>,0.2 pigment {rgb <1,1,0>}}
  #declare rnd = rnd + 0.001;
#end

If we bung the significant bit "vector = a * sin(N * vdelta)" into an
isosurface it looks like this "a * sin(N * f_th(x,z,y))", which doesn't
do anything useful on it's own but suggests something like this:-

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

#declare n = 5;
#declare a = 2;
isosurface {
  function { a * sin(n*f_th(x,z,y)) * f_sphere(x,y,z,a) + 0.1}
  max_gradient 20
  contained_by{sphere{0,a}}
  pigment {rgb .9}
  finish {phong 0.5 phong_size 10}
}


Post a reply to this message

From: Mike Williams
Subject: Re: Flower power
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

From: Dave Matthews
Subject: Re: Flower power
Date: 23 Oct 2003 08:40:01
Message: <web.3f97cb44a022f3b88062416c0@news.povray.org>
Patrick Elliott wrote:
>In theory:
>
>http://mathworld.wolfram.com/StarrRose.html
>
>However, since they don't actually provide the equations for it, but
>simply assume you know how to derive it from the 2D calcs in:
>
>http://mathworld.wolfram.com/Rose.html
>


You can extend 2D polar functions to 3D in a variety of ways.  One is via
spherical products.

See:

http://news.povray.org/povray.binaries.images/32476/

for a few examples.  I use Ingo's "param.inc" and turn everything into
meshes, since it's faster, but you could also use the "parametric" object
from POVRay.

I don't know if this will give you what you want, but it does give some
rather interesting "3D mathematical flowers."

Dave Matthews


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Flower power
Date: 23 Oct 2003 12:41:45
Message: <3F9804C7.2CC33998@Rapidnet.com>
Does anyone know where I might find a dxf or obj model of, say, a
lotus?  I don't understand half of the math that was just thrown around
here, and I can't afford the one patch modeller I've been able to find
for the Mac.


A.D.B
"Anthony D. Baye" wrote:

> Does anybody know how to design a flower using an IsoSurface? (Is this
> even possible?)
> I only need the flower itself, not the stem.
>
> Anthony D. Baye.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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