Accumulating vector data?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 02:26

Hi everyone,

I am trying to make additive point position data.
I am trying to basically make each point position add to the previous point position, and accumulate.

The reason I want to do this is I want access to the path the particle travels to make a wetmap.

I am using Pointcloud Lookup in the Rendertree, and it is correctly seeing the data I want, but the data changes every frame.
I want to make it see each frame of data as something that accumulates with each new frame.

I am REALLY close on making this wetmap thing happen, it just needs this one problem solved!
I have tried many things, but can't seem to get it to accumulate the vector data.

I was able to get a scalar value to accumulate (as the Accumulate Proximity Map compound does with Weightmaps, but I have had no luck with PointPositions.
Any help would be very much appreciated!

Thanks,

Perry

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Accumulating vector data?

Post by TwinSnakes007 » 15 Jan 2013, 02:46

Use strands and read the strandpositions for all the points that the particle has traveled.

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 11:02
Location: Montreal Canada
Contact:

Re: Accumulating vector data?

Post by xsisupport » 15 Jan 2013, 03:40

If you want the path the particles follow, then it could be as simple as this. That's like the strandpositions suggestion.

But I'm not "adding" points, so I'm not sure whether this is what you want.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Re: Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 05:41

Thanks guys!

Steve, that is almost what I need, but it doesn't work.
I want, ultimately, the renderer to know the point position and at each frame, it should know all the previous
point positions up to and including the current frame. In this way, if I can continue to write to a custom property that
keeps accumulating the point positions, hopefully Pointcloud Lookup will see the data and be able to use it.
I have basically been able to create a wetmap for any frame (without UV's, and without weightmaps) that does exactly what I want with the
sole exception that it doesn't consider the previous positions of the lagoa particles, just their current one...

TwinSnakes007, thanks also. I tried using strand trails (because I didn't want to mess up the sim I already have), but it doesn't seem to work either.

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 11:02
Location: Montreal Canada
Contact:

Re: Accumulating vector data?

Post by xsisupport » 15 Jan 2013, 12:35

Doesn't Point Cloud Lookup output a vector, not an array of vectors?
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Re: Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 13:59

I don't know, but if so, then obviously that would be why it isn't working...

Argh! Can you think of any alternatives to Point Cloud Lookup, Steve?

Thank you so much for you help!

Perry

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

Re: Accumulating vector data?

Post by Bullit » 15 Jan 2013, 14:23

Isn't there a node that is looks to other frames instead of current one?

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 23:38
Location: St. Thomas, Ontario
Contact:

Re: Accumulating vector data?

Post by Daniel Brassard » 15 Jan 2013, 14:30

Do you know if the pointposition array will be the same size at each frame?

Some though, cache the pointposition then read it at the next frame and add (append) to the current point cloud position and save the cache file. If you have a lot of particles, this cache file will become huge!

my 2 cents!
$ifndef "Softimage"
set "Softimage" "true"
$endif

perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Re: Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 15:58

Bullit wrote:Isn't there a node that is looks to other frames instead of current one?
Yes, but it is just the previous frame, and isn't added to the point position of the current frame (or any before the previous frames).

perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Re: Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 16:00

Daniel Brassard wrote:Do you know if the pointposition array will be the same size at each frame?

Some though, cache the pointposition then read it at the next frame and add (append) to the current point cloud position and save the cache file. If you have a lot of particles, this cache file will become huge!

my 2 cents!
Thanks Daniel.

It won't be the same for each frame, it is a pouring water sim, with continuous collisions and some water dropping off the geometry and some falling on it for the first time.
Thanks though!

grahamef
Posts: 281
Joined: 23 Jun 2009, 21:01

Re: Accumulating vector data?

Post by grahamef » 15 Jan 2013, 17:50

I think the simplest approach is to accumulate "wetness" values in a weightmap on the geometry. However that may be too coarse depending on the resolution you need.

Another approach would be to copy the water particles in contact with the surface to another pointcloud every frame and use that instead.

perryharovas
Posts: 25
Joined: 22 Dec 2011, 22:45
Location: Connecticut, USA
Contact:

Re: Accumulating vector data?

Post by perryharovas » 15 Jan 2013, 18:38

Interesting idea to copy the contact particles to another cloud.
The weightmap approach IS too dense because I need control over the resolution
and the model may change VERY often. This client is known for many lastminute changes to entire geometries,
but also want fast turnarounds (and the dense mesh approach makes both extremely difficult).

Thanks for your input!

Perry

User avatar
talent103
Posts: 181
Joined: 08 Jan 2010, 15:47
Location: New York City
Contact:

Re: Accumulating vector data?

Post by talent103 » 17 Jun 2020, 22:17

did you ever find a good wetmap solution perry?

Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests