Turn instances on/off with (em)flocking

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Turn instances on/off with (em)flocking

Post by tarkovsky » 14 Oct 2012, 19:32

Hey all.
Yet again, I am doing some LED simulation (some might remember a thread from XSIBase), but this time its more spatial.
I would like to have a matrix of LED's react to a particle simulation. As the image of murmuration was a starting concept
for the project, I went ahead with emFlock 2.0. It seems to have quite a few tricks! The Quantize Volume can do the matrix of lights,
and the all-in-wonder "Explode Me" makes a nice flocking setup.

Now... I thought I would set points from the led matrix (quantized cloud) and use a "distance to flocking particle filter" to turn the
instances on and off. But I'm a bit lost.

Image

Any advice?

Thanks
t

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 15 Oct 2012, 16:11

So a bit further in trying to get this working. Found a nice compound in the emflock addon (emFly_Get Point Data), that lets me measure
distance between points in point cloud and particles. Tried all sorts of array tricks, but by brain liquefied.
So in this current setup, I can set the size of the flocking particles when they come near the "LED's", but it won't let me set the LED Cloud size in
the "If" node. I can plug the LED Cloud size node into the ICE Tree and execute, and the size changes accordingly.

Image

t

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 16 Oct 2012, 11:10

Since I couldn't change the size of individual points in other pointcloud, it worked when I used the same distance condition in the LED ICE Tree.

Thanks for reading my posts... :-@ ;)

t

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 18 Oct 2012, 10:24

So, thought all was well, but refining the test, I see that it only sort of works...
Problem is, it's not all the LED-particles in the vicinity of the flock, that changes size (turned on).
It's actually only few compared how many that should.

So the ICE tree on the LED cloud looks like this. The tree in the modelling stack is just the quantized cloud.

Image

Quantized cloud:

Image

Hope it makes sense.

t

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 18 Oct 2012, 18:50

Any help is super super appreciated :-*

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 19 Oct 2012, 11:55

So, reading up on arrays from a grasshopper manual, and seeing the vimeo tutorials from s. blair again,
it suddenly began to make sense. Anyhow, this setup is working:

Image

t

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: Turn instances on/off with (em)flocking

Post by Bullit » 19 Oct 2012, 16:01

So Grasshoper manual is good to make sense of ICE arrays?

don't get your last screen . Does it means that if distance between between 0 and 0.1 the instances are turned on?

tarkovsky
Posts: 59
Joined: 05 Oct 2012, 20:02

Re: Turn instances on/off with (em)flocking

Post by tarkovsky » 21 Oct 2012, 17:48

I think a lot of the priciples here, apply to ICE:

http://www.liftarchitects.com/storage/r ... 090323.pdf
Newcomer (<20 posts) alert: please use the URL tags - HB

The distance is defined in the "<" (less than) node. The other two in the "if" node define the Size in the "Set Data" node.
So in the below tree, the led's has a size of 0.1, if a distance to a flocking particle is below 2. Otherwise Size is 0.

Image

t

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: Turn instances on/off with (em)flocking

Post by Bullit » 21 Oct 2012, 19:38

Thanks. I'll read the grasshoper manual to see it is easier for me to understand the concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests