Flocking Script

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Flocking Script // The Garage

1  |  

Post by clintonman // Apr 13, 2008, 4:29pm

clintonman
Total Posts: 304
pic
This script will create a group of objects with flock(or school of fish) like behavior. The template mesh can be changed and other objects in the scene can be made into flock "colliders".


More details can be found here:


http://www.clintons3d.com/truespace/flocking/index.html

Post by jamesmc // Apr 13, 2008, 4:37pm

jamesmc
Total Posts: 2566
Does this work like a replicator? Any object can be replicated?

Post by Délé // Apr 13, 2008, 4:49pm

Délé
Total Posts: 1374
pic
Wow Clinton! This looks great!


This is something that I've wanted to see in tS for some time. I know Norm really wanted to create some kind of flocking script as well. This will be fun to play with.


Thanks Clinton! :D :banana:

Post by trueBlue // Apr 13, 2008, 6:22pm

trueBlue
Total Posts: 1761
pic
OMG!
This is so Flocking cool!
Thank you Clintonman.:jumpy:

Post by jamesmc // Apr 13, 2008, 6:46pm

jamesmc
Total Posts: 2566
OMG!
This is so Flocking cool!
Thank you Clintonman.:jumpy:


trueBlue has been waiting all of his life to use that word like that in a sentence.

Post by Ambrose // Apr 13, 2008, 7:15pm

Ambrose
Total Posts: 261
pic
now I can start doing my dream aquarium ;)



This is so fishing cool!



Keep up the good work guys!



SeYa/Ambrose...

Post by Norm // Apr 14, 2008, 9:24am

Norm
Total Posts: 862
pic
Pretty cool stuff Clinton.
Most excellent and interesting video.
I will be checking this out for sure :cool:

Post by frootee // Apr 14, 2008, 9:34am

frootee
Total Posts: 2667
pic
Groovy Clinton! :cool::cool::cool:


Hmm... I wonder if we can hook this up to a mouse listener.


Move the mouse, the flock follows, like those screen savers.

Post by frootee // Apr 14, 2008, 9:37am

frootee
Total Posts: 2667
pic
Does this work like a replicator? Any object can be replicated?


From clintonman's link:


The "Asp4" aspect can be used to change the flock member template model and to set the values for the simulation. The model that is to replace the default red "fish/bird" must have it's nose in the +Z direction and it's top in the +Y direction with all rotations set to zero. Just select the new model and click on "new template" to use your own model.


So that sounds like a Yes james. :)

Post by jayr // Apr 14, 2008, 10:19am

jayr
Total Posts: 1074
pic
Nice one clintonman. :banana:

Post by clintonman // Apr 14, 2008, 11:39am

clintonman
Total Posts: 304
pic
trueBlue has been waiting all of his life to use that word like that in a sentence.

I'm just happy no one made any sheep shearing comments.:D

Post by clintonman // Apr 14, 2008, 11:43am

clintonman
Total Posts: 304
pic
Groovy Clinton! :cool::cool::cool:


Hmm... I wonder if we can hook this up to a mouse listener.


Move the mouse, the flock follows, like those screen savers.


Thanks. One solution would be to just move the goal object while the simulation is running. If you increase the goalS value they will follow it more closely.

Post by jhowell // Apr 14, 2008, 12:03pm

jhowell
Total Posts: 400
pic
Incredible Truespace 7.5 scripts on your web page. Thanks for going to so much work to to help The Truespace community. :banana:

Post by cliff45 // Apr 14, 2008, 1:01pm

cliff45
Total Posts: 9
Very nicely done . I think I'm beginning to realize the power of java scripts now and the endless possibilities thats hiding away in ts7.51. Thanks Clint.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn