Merge pointclouds?
-
SamHowell
- Posts: 364
- Joined: 09 Jun 2009, 12:09
- Location: Birmingham
Merge pointclouds?
Is there a way to merge pointclouds in ICE?
I have attempted a series of get data, switch context, set data, add point etc. but this is very time consuming and is not really working.
Can it be done, without jumping through hundred of hoops?
Thanks
I have attempted a series of get data, switch context, set data, add point etc. but this is very time consuming and is not really working.
Can it be done, without jumping through hundred of hoops?
Thanks
-
Tekano
- Posts: 488
- Joined: 09 Jun 2009, 12:49
- Location: London, UK
Re: Merge pointclouds?
get pointcloud.point position > add point ?
Gossip is what no one claims to like, but everybody enjoys.
-
Hirazi Blue
- Administrator
- Posts: 5113
- Joined: 04 Jun 2009, 10:15
Re: Merge pointclouds?
I think "Clone Point" (instead of "Add Point") would be slightly more helpful in this case 
Stay safe, sane & healthy!
-
xsisupport
- Posts: 713
- Joined: 09 Jun 2009, 09:02
- Location: Montreal Canada
Re: Merge pointclouds?
You could do something with Clone Point.
clone each cloud onto the same target
on the target, create a simulated ICE tree and add a Simulate Particles
move the shared ICE trees up to the Sim stack
That gets you part of the way there. Anything special you were doing after emit has to be reproduced in the ICE tree on the new cloud
clone each cloud onto the same target
on the target, create a simulated ICE tree and add a Simulate Particles
move the shared ICE trees up to the Sim stack
That gets you part of the way there. Anything special you were doing after emit has to be reproduced in the ICE tree on the new cloud
-
iamVFX
- Posts: 697
- Joined: 24 Sep 2010, 16:28
Re: Merge pointclouds?
If you want to transfer attributes from point clouds, with the magic power of "Build Array from Set" node you can do trick like this:
[rimg=800]http://img716.imageshack.us/img716/215/916df2c8a26541a0ad05a4c.png[/rimg]
[rimg=800]http://img716.imageshack.us/img716/215/916df2c8a26541a0ad05a4c.png[/rimg]
-
Tekano
- Posts: 488
- Joined: 09 Jun 2009, 12:49
- Location: London, UK
Re: Merge pointclouds?
ha ok guys clone might be in the manual but ive found clone points to be pretty flaky in the past. it creates a virtual ice tree inside another one and you end up not knowing which ice tree your editing also some inexplicable behaviours around this that I didnt like. depends what Sam wants to do with the merged points but add point works fine for me to bring points in from another cloud wheras clone points just gave me a headache 
Gossip is what no one claims to like, but everybody enjoys.
-
SamHowell
- Posts: 364
- Joined: 09 Jun 2009, 12:09
- Location: Birmingham
Re: Merge pointclouds?
Wow, what a response. Thanks a lot guys.
As with everything in ICE there seems to be a number of ways to approach this. I shall give it a try soon.
Thanks again.
As with everything in ICE there seems to be a number of ways to approach this. I shall give it a try soon.
Thanks again.
-
druitre
- Posts: 471
- Joined: 25 Jun 2009, 21:35
Re: Merge pointclouds?
Hi guys, longtime bump: I am so curious about IamVFX's answer concerning transferring attributes (the link is dead) - add points works allright for merging pointclouds but that doesn't give attributes. Can anybody explain how to use 'buid array from set' to do this?
-Jasper
-Jasper
-
owei
- Administrator
- Posts: 840
- Joined: 03 Jun 2009, 15:25
- Location: Siegen/Germany
Re: Merge pointclouds?
Hey Jasper!
Well, to get the correct value copied over to the specific point, you will have to build something like this. The idea is, to pick the correct value from the array by using the index the point array. Let me know, if this helps ;)
Cheers,
oli
Well, to get the correct value copied over to the specific point, you will have to build something like this. The idea is, to pick the correct value from the array by using the index the point array. Let me know, if this helps ;)
Cheers,
oli
You do not have the required permissions to view the files attached to this post.
Founder of www.si-community.com
http://www.pixelpanic.de
http://www.pixelpanic.de
-
rray
- Moderator
- Posts: 1810
- Joined: 26 Sep 2009, 13:51
- Location: Bonn, Germany
Re: Merge pointclouds?
Hi
(edit) Just saw oli's reply still leaving this here since it's a slightly different approach
What could work is this, say you want to merge pointcloud B into pointcloud A, so you're modifying A. The attribute that you want to transfer is myAttr.
In A's ICE tree, you call add point and inside it's execute, you get B's myAttr as an array using "build array from set", and set the added point's myAttr by selecting from that array.
You'll have to store nbPoints before that, and use the new point's index (get Point ID) minus the stored value as the index into that array.
-rr
(edit) Just saw oli's reply still leaving this here since it's a slightly different approach
What could work is this, say you want to merge pointcloud B into pointcloud A, so you're modifying A. The attribute that you want to transfer is myAttr.
In A's ICE tree, you call add point and inside it's execute, you get B's myAttr as an array using "build array from set", and set the added point's myAttr by selecting from that array.
You'll have to store nbPoints before that, and use the new point's index (get Point ID) minus the stored value as the index into that array.
-rr
softimage resources section updated Sep 26th 2026
-
druitre
- Posts: 471
- Joined: 25 Jun 2009, 21:35
Re: Merge pointclouds?
Hi Oli, Reinhart, that is quick!
I was actually trying something close to your solution, just didn't think of the 'get element index' node so was getting nowhere, I was trying particle ID. Which seems to be what Rray is suggesting. But in a way that works
But: when i follow your tree Oli, the 'set data' node (I'm setting Scale) remains red, and doesn't work. Must be doing something wrong, I can't get/set any property, the 'set' is always red.
Rray, can you give a screenshot of your tree? I don't follow. What you describe sounds like what I was trying, but I keep on getting 'Array of 3D vector' which doesn't plug into 3D vector input of my set data nodes.
I was actually trying something close to your solution, just didn't think of the 'get element index' node so was getting nowhere, I was trying particle ID. Which seems to be what Rray is suggesting. But in a way that works
But: when i follow your tree Oli, the 'set data' node (I'm setting Scale) remains red, and doesn't work. Must be doing something wrong, I can't get/set any property, the 'set' is always red.
Rray, can you give a screenshot of your tree? I don't follow. What you describe sounds like what I was trying, but I keep on getting 'Array of 3D vector' which doesn't plug into 3D vector input of my set data nodes.
-
Bullit
- Moderator
- Posts: 2621
- Joined: 24 May 2012, 07:44
Re: Merge pointclouds?
This was the image from iamVFX


-
owei
- Administrator
- Posts: 840
- Joined: 03 Jun 2009, 15:25
- Location: Siegen/Germany
Re: Merge pointclouds?
Hey Jasper!
Are you sure, that "scale" is in a per point context?? I Did some tests here with scaling and it worked with my approach..so, don´t know what is going wrong..
An other thing you can try, is to fetch the data via "closest location" from original pointcloud...
Are you sure, that "scale" is in a per point context?? I Did some tests here with scaling and it worked with my approach..so, don´t know what is going wrong..
An other thing you can try, is to fetch the data via "closest location" from original pointcloud...
Founder of www.si-community.com
http://www.pixelpanic.de
http://www.pixelpanic.de
-
druitre
- Posts: 471
- Joined: 25 Jun 2009, 21:35
Re: Merge pointclouds?
Hi Oli,
I'm setting up the tree from IamVFX now, that one's working (great find Bullit!!) If I can try later, I'll let you know.
Jasper
I'm setting up the tree from IamVFX now, that one's working (great find Bullit!!) If I can try later, I'll let you know.
Jasper
-
NNois
- Posts: 754
- Joined: 09 Jun 2009, 18:33
Re: Merge pointclouds?
Hey, reminds me "LK clone" from LeonardKoch
https://www.dropbox.com/s/seiaiz3ld4k1b7x/LK%20Clone%20Pointcloud.xsicompound?dl=0
https://www.dropbox.com/s/seiaiz3ld4k1b7x/LK%20Clone%20Pointcloud.xsicompound?dl=0
-
druitre
- Posts: 471
- Joined: 25 Jun 2009, 21:35
Re: Merge pointclouds?
HA! That one is brilliant, thanks NNois! (And Leonard, of course!)