POV-Ray : Newsgroups : povray.advanced-users : Making plants Server Time
29 Jul 2024 14:24:10 EDT (-0400)
  Making plants (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: Ken
Subject: Re: Making plants
Date: 8 Aug 2002 08:09:10
Message: <3D525FD0.D8ACA836@pacbell.net>
Rohan Bernett wrote:
> 
> Okay, here's another question about not using addons.
> 
> How do I make relatively realistic looking vegetation WITHOUT using third
> party addons?

Most people use recursive functions.

-- 
Ken Tyler


Post a reply to this message

From: Tim Nikias
Subject: Re: Making plants
Date: 8 Aug 2002 10:57:00
Message: <3d5286bc@news.povray.org>
In terms of object-modelling:
Many use meshes for leafs, flowers and
such, and CSG (cones, spheres, cylinder)
for stems and trunks.

Making the modelling process very script-based
is kinda difficult I believe. Though you can easily
script several different leafs, petals etc to interpolate
with, actually sticking it all together isn't that easy
if you wish to have very different looking plants.

And I imagine using only POV can result in very
slow object-creation...


---
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
"Rohan Bernett" <rox### [at] yahoocom> schrieb im Newsbeitrag
news:web.3d52080e8d7b1e4bd02c7b870@news.povray.org...
> Okay, here's another question about not using addons.
>
> How do I make relatively realistic looking vegetation WITHOUT using third
> party addons?
>
> Rohan _e_ii
>


Post a reply to this message

From: Mike Williams
Subject: Re: Making plants
Date: 8 Aug 2002 14:45:33
Message: <iJbTPPA7trU9Ew4y@econym.demon.co.uk>
Wasn't it Rohan Bernett who wrote:
>Okay, here's another question about not using addons.
>
>How do I make relatively realistic looking vegetation WITHOUT using third
>party addons?

1. Obtain a third part add on.
2. Look inside it to see how it works.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: hughes b
Subject: Re: Making plants
Date: 8 Aug 2002 17:57:24
Message: <3d52e944@news.povray.org>
"Mike Williams" <mik### [at] econymdemoncouk> wrote in message
news:iJb### [at] econymdemoncouk...
> Wasn't it Rohan Bernett who wrote:
> >
> >How do I make relatively realistic looking vegetation WITHOUT using third
> >party addons?
>
> 1. Obtain a third part add on.
> 2. Look inside it to see how it works.

Alternatively, long-distance ESP.

Anything I attempted at this sort of thing myself early on was to use image
mapping :-) and "while looping" slices of primitives with rand(). Without
too much know-how a person can manage some interesting vegetation, even if
not always very realistic.

Who was it that tried the media hedge a while back? That's something I had
toyed with too, because it fills a volume of space pretty well without the
need for complex CSG. Of course it's a pattern-only thing and much less
control. Well, for most people, not some of you. I can't name names but many
here would know what I am talking about.

Texture patterns on small scale or distant simple objects is possible, as
you know, just isn't very versatile in 3D like CSG can be. When I made a
Christmas tree a few years ago it was all just spheres and cones in while
loops with randomized rotations and translations. If it hadn't used so much
memory at parse time and rendering were faster I'd have improved on it since
then. I think it must be meshes used to do anything really intensive, or
anything less memory consuming anyhow. Obviously less ray
intersections/checking could help too, I guess, but the inner workings of a
raytracer aren't something I know about beyond the basic concepts.

Oops, sorry, caught myself babbling on and on.


Post a reply to this message

From: Pandora
Subject: Re: Making plants
Date: 8 Aug 2002 18:34:58
Message: <3d52f212@news.povray.org>
"Rohan Bernett" <rox### [at] yahoocom> wrote in message
news:web.3d52080e8d7b1e4bd02c7b870@news.povray.org...
> Okay, here's another question about not using addons.
>
> How do I make relatively realistic looking vegetation WITHOUT using third
> party addons?
>


    Has anyone tried isosurfaces for leaves, petals, etc ?
    Could be a tad slow in rendering, compared to meshes, I guess, but
there's the flexibility to get some real nice looking foliage with iso's...

--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com


Post a reply to this message

From: Christopher James Huff
Subject: Re: Making plants
Date: 8 Aug 2002 19:30:16
Message: <chrishuff-BA2F1D.18202408082002@netplex.aussie.org>
In article <3d52f212@news.povray.org>,
 "Pandora" <pan### [at] pandora-softwarecom> wrote:

>     Has anyone tried isosurfaces for leaves, petals, etc ?
>     Could be a tad slow in rendering, compared to meshes, I guess, but
> there's the flexibility to get some real nice looking foliage with iso's...

It has been done, a combination of noise and a sphere function can do an 
approximation of dense foliage that looks OK from a distance, but it is 
slow and is pretty much useless close up.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Pandora
Subject: Re: Making plants
Date: 8 Aug 2002 19:38:24
Message: <3d5300f0$1@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3d52f212@news.povray.org>,
>  "Pandora" <pan### [at] pandora-softwarecom> wrote:
>
> >     Has anyone tried isosurfaces for leaves, petals, etc ?
>
> It has been done, a combination of noise and a sphere function


    You misunderstand - I'm thinking individual isosurfaces for the various
individual components of a plant - for the variety of geometry possible with
isos...

    See my post "Isosurface vegetation" for more info...

--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com


Post a reply to this message

From: Rohan Bernett
Subject: Re: Making plants
Date: 25 Aug 2002 22:50:02
Message: <web.3d69968af01f31b4d02c7b870@news.povray.org>
Ken wrote:
>
>Rohan Bernett wrote:
>>
>> Okay, here's another question about not using addons.
>>
>> How do I make relatively realistic looking vegetation WITHOUT using third
>> party addons?
>
>Most people use recursive functions.
>
>Ken Tyler
>

I'm no good at writing recursive functions. :-( I've used them a couple of
times in c++ in my uni assignments, but I always find them a pain in the
arse to write.

Okay, enough grumbling, can anyone give me some advice (or better still a
code exaple) on how to make a tree using recursive functions. My best
vaugly recursive attempt at making a tree involved making several objects
of different levels of the tree and adding them at different levels. i.e.
one level with leaves, then one using branches with 3 leaves on them, then
one using 3 branches from the one before and so on. It does look like a
tree, but not very realistic.

Rohan _e_ii


Post a reply to this message

From: Ken
Subject: Re: Making plants
Date: 25 Aug 2002 23:02:21
Message: <3D699AEB.F99D933B@pacbell.net>
Rohan Bernett wrote:

> Okay, enough grumbling, can anyone give me some advice (or better still a
> code exaple) on how to make a tree using recursive functions. My best
> vaugly recursive attempt at making a tree involved making several objects
> of different levels of the tree and adding them at different levels. i.e.
> one level with leaves, then one using branches with 3 leaves on them, then
> one using 3 branches from the one before and so on. It does look like a
> tree, but not very realistic.

My advice would be to look through the various tree include files you will
find here and look for inspiration from what others have done. You may
actually find you don't need to reinvent the wheel and someone already
has something you can use.

http://www.povray.org/resources/links/POV-Ray_Include_Macro_and_Object_Files/

-- 
Ken Tyler


Post a reply to this message

From: Christopher James Huff
Subject: Re: Making plants
Date: 26 Aug 2002 20:27:06
Message: <chrishuff-50BA50.20262726082002@netplex.aussie.org>
In article <web.3d69968af01f31b4d02c7b870@news.povray.org>,
 "Rohan Bernett" <rox### [at] yahoocom> wrote:

> I'm no good at writing recursive functions. :-( I've used them a couple of
> times in c++ in my uni assignments, but I always find them a pain in the
> arse to write.

It isn't too difficult, and there are many examples of this technique in 
the various plant generator include files.


> Okay, enough grumbling, can anyone give me some advice (or better still a
> code exaple) on how to make a tree using recursive functions. My best
> vaugly recursive attempt at making a tree involved making several objects
> of different levels of the tree and adding them at different levels. i.e.
> one level with leaves, then one using branches with 3 leaves on them, then
> one using 3 branches from the one before and so on. It does look like a
> tree, but not very realistic.

You need to use more randomness...real plants don't branch precisely a 
certain number of times at exact intervals with straight stems in 
between. In my systems, I only branch every once in a while, each 
recursion has a certain probability of branching. I also added various 
forces such as gravity, wind, light, etc. Start out with a simple 
framework and add rules and tweaks to it.

Also, be aware that POV can only recurse a certain number of levels, my 
technique recurses very deeply so I hit this limit hard. You can mimic 
virtually unlimited recursion by using something more like a particle 
system where each particle traces out the path of a limb and splits into 
two particles to branch. I've been playing with this, but my system is 
written in Sapphire, not POV.

-- 
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

<<< Previous 2 Messages Goto Initial 10 Messages

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