writing weightMaps

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

writing weightMaps

Post by ChrB » 17 Sep 2012, 20:47

Hi guys,

I hope you can help me with this one, as I am a bit stuck... I have a bunch of cached particles all with positions matching a point (not vertex) on a mesh (not the emitting mesh). All particles have velocity 0, but at some point they start flying (at varying time). I would like to paint a weightmap to the mesh from the particles that all have velocity 0. But how to approach this. I can get the array of the zero-velocity particles pointposition easily, but how do I transfer this to a weightmap?

Thanks in advance

-Christian
Arnold for the masses!

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: writing weightMaps

Post by csaez » 17 Sep 2012, 22:28

Seems like a job for "get closest location" node!

ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

Re: writing weightMaps

Post by ChrB » 17 Sep 2012, 23:01

Yes, I got that far :) Question is how do I use the data I get from the location to write to the weightmap?

As my setup is now, I get the pointPositions from the pointCloud, build an array from set, feed that into get closest location' position and get the weightmap from the location, but how do I write back to it?
Arnold for the masses!

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: writing weightMaps

Post by csaez » 18 Sep 2012, 02:47

Just set the data to *WMAP_PATH*.Weights, something like this :)

Image
WMap ICETree
PCloud ICETree
Test scene (SI 2013)

Cheers!

ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

Re: writing weightMaps

Post by ChrB » 18 Sep 2012, 21:38

Thanks a lot. Much appreciated.
Arnold for the masses!

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests