POV-Ray : Newsgroups : povray.advanced-users : An idea about plant growth with a L-System and the mesh-camera Server Time
23 Nov 2024 21:01:52 EST (-0500)
  An idea about plant growth with a L-System and the mesh-camera (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: MichaelJF
Subject: An idea about plant growth with a L-System and the mesh-camera
Date: 2 Jan 2013 12:05:01
Message: <web.50e4684617e3ce9f78ca74630@news.povray.org>
Hi all around,

I just read a paper about growing plants to light and came up with a very silly
idea. The paper is "A Simple but Effective Algorithm to Model the Competition of
Virtual Plants for Light and Space" by William Van Haevre and Philippe Bekaert
(2003). One can find it with google easily. They use an open L-System to model
the plant by calculating special photons to determine the direction the plant
will grow. My idea is to simulate a L-System with the animation feature of POV
(writing the actual string to file, read it in the next iteration, perform the
L-System rules and write it out again). To determine the direction of growth I
will not use this complicated photon issue but simply look through the "eyes" of
the seedlings (branches) using the mesh-cam, distribution type 3, evaluating the
brightesst spot with eval_pigment and use this as the new direction. O.k. this
is a very brief scetch of my idea. My question here is: Has someone of you
implemented a L-System with POV so far. If I have to invent the wheel I will do,
but if someone else did it some time ago, I would like to learn about it. My
searches here yielded no hits unfortunatelly.

Best regards,
Michael


Post a reply to this message

From: MichaelJF
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 2 Jan 2013 13:05:01
Message: <web.50e475a679737bf578ca74630@news.povray.org>
BTW The mesh-cam is a very useful and mighty approvement to POV. Why are Jaime
and I the only users here to play around with it?

Best regards,
Michael


Post a reply to this message

From: Christian Froeschlin
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 2 Jan 2013 19:49:04
Message: <50e4d580$1@news.povray.org>
MichaelJF wrote:

> BTW The mesh-cam is a very useful and mighty approvement to POV. Why are Jaime
> and I the only users here to play around with it?

It's mighty but also not trivial to use (or even understand, I'm not
sure I fully understood what all the modes do myself). Also I gathered
it is mostly useful in elaborate multipass processes. Given that most
hobbyists are less dedicated I think the number of potential users
is smaller than you expect.

Not to mention you also need some kind of mesh. If you don't use
modellers and treat povray as a programming language that turns code
into images, then the mesh cam is a remote feature.


Post a reply to this message

From: Paolo Gibellini
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 3 Jan 2013 03:33:43
Message: <50e54267$1@news.povray.org>
>MichaelJF  on date 02/01/2013 18.03 wrote:
> My question here is: Has someone of you
> implemented a L-System with POV so far

Years ago, for a irtc entry, I realized a very basic L-System parser.
The code is not well documented, but you can found it in p.b.s.
Paolo


Post a reply to this message

From: MichaelJF
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 3 Jan 2013 13:05:01
Message: <web.50e5c81879737bf52a8871fd0@news.povray.org>
Paolo Gibellini <p.g### [at] gmailcom> wrote:
> >MichaelJF  on date 02/01/2013 18.03 wrote:
> > My question here is: Has someone of you
> > implemented a L-System with POV so far
>
> Years ago, for a irtc entry, I realized a very basic L-System parser.
> The code is not well documented, but you can found it in p.b.s.
> Paolo

Thanks a lot, but unfortunatelly I can only find a broken link at an Australian
server. Can you remember the picture or the topic? Basic could be suffient for
me, since I intent only a proof of concept at the moment.

Best regards,
Michael


Post a reply to this message

From: MichaelJF
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 3 Jan 2013 13:35:00
Message: <web.50e5ce9179737bf52a8871fd0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> It's mighty but also not trivial to use (or even understand, I'm not
> sure I fully understood what all the modes do myself).
Yes, that is true. I think I understand the distribution type 3, which is a
little bit like looking through the object like an eye. But you need not only a
mesh, it must be uv-mapped too. And this uv-mapping can not have overlapping
areas. A ghost I hunted down a while. For texturing purposes overlapping areas
are no problem.

> Also I gathered
> it is mostly useful in elaborate multipass processes. Given that most
> hobbyists are less dedicated I think the number of potential users
> is smaller than you expect.

And yes again, with my experiments with using dynamic hair from poser I had some
1000 objects which needed an individual occlusion map baking. All had to be
sticked together to yield the final image.
>
> Not to mention you also need some kind of mesh. If you don't use
> modellers and treat povray as a programming language that turns code
> into images, then the mesh cam is a remote feature.

In some cases I use POV to create uv-mapped meshes first and then apply the
meshcam e.g. for occlusion map baking. An idea I used for long years with my
statistical software and recogniced that it is possible with POV too by looking
at Gilles makegrass macros some years ago. Yes, you need some experience with
interpreting languages (must not be POV) and their possibilties to come up with
such ideas.

Best regards,
Michael


Post a reply to this message

From: Paolo Gibellini
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 7 Jan 2013 04:09:11
Message: <50ea90b7$1@news.povray.org>
> Thanks a lot, but unfortunatelly I can only find a broken link at an Australian
> server. Can you remember the picture or the topic? Basic could be suffient for
> me, since I intent only a proof of concept at the moment.
>
> Best regards,
> Michael
>
>
I've posted the code in p.b.s. (i.e. povray.binaries.scene-files):
http://news.povray.org/povray.binaries.scene-files/thread/%3C50e54231%40news.povray.org%3E/
;-)
Paolo


Post a reply to this message

From: Cousin Ricky
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 8 Jan 2013 11:40:01
Message: <web.50ec4aca79737bf578641e0c0@news.povray.org>
"MichaelJF" <mi-### [at] t-onlinede> wrote:
> BTW The mesh-cam is a very useful and mighty approvement to POV. Why are Jaime
> and I the only users here to play around with it?

Probably because I can't make heads or tails of what it even means.


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 8 Jan 2013 17:29:29
Message: <50ec9dc9$1@news.povray.org>

> "MichaelJF" <mi-### [at] t-onlinede> wrote:
>> BTW The mesh-cam is a very useful and mighty approvement to POV. Why are Jaime
>> and I the only users here to play around with it?
>
> Probably because I can't make heads or tails of what it even means.
>

  It means that you can use a mesh surface as a viewing port, or 
something like that... to make a gross analogy, think on a point light 
and a emitting surface: now replace the light rays for camera rays and 
you got it. :)

--
Jaime


Post a reply to this message

From: MichaelJF
Subject: Re: An idea about plant growth with a L-System and the mesh-camera
Date: 9 Jan 2013 16:20:00
Message: <web.50eddedf79737bf532256c560@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:

> > "MichaelJF" <mi-### [at] t-onlinede> wrote:
> >> BTW The mesh-cam is a very useful and mighty approvement to POV. Why are Jaime
> >> and I the only users here to play around with it?
> >
> > Probably because I can't make heads or tails of what it even means.
> >
>
>   It means that you can use a mesh surface as a viewing port, or
> something like that... to make a gross analogy, think on a point light
> and a emitting surface: now replace the light rays for camera rays and
> you got it. :)
>
> --
> Jaime

Yes, I interpret the mesh cam (distribution type 3) in a way like looking
through the "eyes of an object". What can be seen from the surface of an object
(the mesh the mesh camera represents)? Is there light or is there darkness? My
idea here was then, what can a sprout see, where is the most light and then grow
in this direction. So far I have only a meta program for the "animation" feature
of pov to yield results here. And I'm confident that it will work. But first I
will go for the next entry at Tina-Chep, I hope you can forgive me. As soon as I
have results to this isuue here, I will post them.

Best regards,
Michael


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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