Get first frame of emitting leaves with L-System

   3295   4   0
User Avatar
Member
8 posts
Joined: 6月 2015
Offline
Hi I'm currently looking into L-System and one thing I'm stacking at getting first frame of emitting leaves frame as an attribute.

The reason why I'm trying to get the first frame is that I want to animate leaves(and flowers) randomly by somehow using expression.
And to do that, I was struggling to solver to get it by this way: http://takavfx-note.tumblr.com/post/131873068607/trigger-solver [takavfx-note.tumblr.com] but I failed to accomplish because points don't exist previous frame in this case.

Is there any ideas or better way?

Thank you.
Edited by takanori - 2017年4月13日 01:46:42

Attachments:
rapture_20170413123509.png (64.9 KB)

User Avatar
Member
1803 posts
Joined: 5月 2006
Offline
Would be much easier to help if you can provide a hip file.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
8 posts
Joined: 6月 2015
Offline
Here's simple file for the question. I did not do special things around what I want to do.

And you can download the method sample I tried from the link at previous post.

Attachments:
lsystem_sample.hip (79.5 KB)

User Avatar
Member
1803 posts
Joined: 5月 2006
Offline
I'm sure there's a more elegant way than this, but see if this helps.

It's more complex than it needs to be, largely because I don't understand lsystem syntax at all, and wanted to do this in a more generic way.

To get the scale, I look at the transform of the leaf primitives generated by the lsystem, and extract a scale and orient that the copy sop understands.

To get the birth frame, I do a hacky solver sop. Its ugly.

-matt

Attachments:
lsystem_scale_and_birthframe.hipnc (264.5 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
8 posts
Joined: 6月 2015
Offline
I appreciate for that!! Your method does make sense to me
  • Quick Links