Butterfly flocking system

   5853   5   3
User Avatar
Member
12 posts
Joined: March 2012
Offline
Hi everyone

I am experimenting on a butterfly flocking system, where i was inspired from , OZ the great and powerful where Franco falls from the sky and wonders the Beautiful nature among him and sees a bunch of butterfly(which actually looks like a tree) and flies away.

I am almost there and I need some help no to get this up and running

I created and simple model and animated it using chops and cycled it all the way,
and scatterd some points in a surface and copied it over

and i have used a stamp function on a time shift to randomly make the Wings flap over time, so that all the butterfly looks different (has a different look),
and gave the points some force and it moves fine..

now i am stuck with the wings animation, basically i want to take control over the wings flapping, i.e I want the wings to get flapped when the butterfly is flying and not while resting .

This s where i need your help, i tried and i am still trying, and learning to get this done.
any help would be much appreciated.


I have also attached a file, so far what i have and also for people who doesn't understand my broken English


thanks in advance
Edited by - Jan. 18, 2014 11:25:19

Attachments:
fly_flock_odforce.hip (1.3 MB)
for_odforce.jpg (217.6 KB)
hip.zip (2.5 KB)

Pepe - nansha
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
I think one of the simple ways is to use AttribTransfer SOP.

for example you can assign RED color to the basic points(Particles system) and BLACK color to the Tree.

At the next step Transfer Color attribute from Tree to the particles with some little “Distance Threshold” and “Blend Width” value.

So color value for each particles that comes close to the Tree changed smoothly from RED to BLACK.

At the last step you can use this color Attr (Cd) in the stamp function in the Copy SOP.

Finally use this stamp function to change animation of the butterflies from flapping to not flapping.

To achieve this Maybe you can use Blend Shapes ,use stamp function in the Blend Shape bias for changing animation from flapping to rest (not flapping) :?
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
12 posts
Joined: March 2012
Offline
This is what i have done, but for the particles so it flocks randomly!

Pls chk the file,
its a good idea to use a blend shape! i am giving it a try, its taking some time to get it right!
mean while pls chk the file and tell me what mistake i have done till now

————
THe file requires and obj, whic i forgot to attach earlier !
so here is it now

Attachments:
hip.zip (2.5 KB)

Pepe - nansha
User Avatar
Member
12 posts
Joined: March 2012
Offline
Not even a single solution till now ??
(
Pepe - nansha
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Ok ,This is just a simple example about how you can do that .
In this example I use Velocity vector to drive flying animation.

You can add some random animation for resting yourself 8)

I Hope that It can be help you

Attachments:
JKButterfly.hip (475.8 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
12 posts
Joined: March 2012
Offline
Thanks for the reply, JK
But this is not wat i was looking for!

a solution in odforce did the Job for me
thanks alot anyways )

follow the Link!
http//forums.odforce.net/topic/19281-butterfly-flocking-sysytem/
Pepe - nansha
  • Quick Links