cloning points with attributes

210 views
Skip to first unread message

adrian wyer

unread,
Apr 29, 2013, 8:58:22 AM4/29/13
to soft...@listproc.autodesk.com

rtfm not really helping here

 

i have a cloud of points, and an empty cloud....

 

using clone point (and a test point in volume) i can copy points from one cloud to another, but the attributes don't clone... i need the colour to be the same

any tips?

 

a

 

Adrian Wyer
Fluid Pictures
75-77 Margaret St.
London
W1W 8SY
++44(0) 207 580 0829

www.fluid-pictures.com

 

Fluid Pictures Limited is registered in England and Wales.
Company number:5657815
VAT number: 872 6893 71

 

Leonard Koch

unread,
Apr 29, 2013, 9:07:09 AM4/29/13
to soft...@listproc.autodesk.com
You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.
Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.Inline image 1
image.jpeg

adrian wyer

unread,
Apr 29, 2013, 9:23:11 AM4/29/13
to soft...@listproc.autodesk.com

so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)

 

point order/ID will be bricked from cloud to cloud

 

i just assumed (in fact i read in the manual) that attributes would be cloned?!

 

"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."

 

a

 



No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13
Internal Virus Database is out of date.

image002.jpg

Peter Agg

unread,
Apr 29, 2013, 9:34:28 AM4/29/13
to soft...@listproc.autodesk.com
Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).
image002.jpg

adrian wyer

unread,
Apr 29, 2013, 9:41:38 AM4/29/13
to soft...@listproc.autodesk.com

ahhh that's enlightening

 

the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it

 

i'm guessing that colour isn't initialised on the original cloud

 

will experiment

 

a

 


image001.jpg

Leonard Koch

unread,
Apr 29, 2013, 9:49:34 AM4/29/13
to soft...@listproc.autodesk.com
I had some quick fun with it. Hope it helps.Inline image 1
image001.jpg
image.jpeg
LK Clone Pointcloud.xsicompound

Christian Freisleder

unread,
Apr 29, 2013, 10:39:32 AM4/29/13
to soft...@listproc.autodesk.com
Hey Adrian,

I would recommend to collect all your pointclouds with a group Geometry node and plug it into a "Generate Sample Set" with emission type set to "Point" and Rate type to "all Points" Rate should be set to 1.
then you can get whatever data is in the pointclouds via a "self.emitlocation" and pull the data you need from this Location.
you will get a red node if there are custom attributes that are not valid for all clouds. You can avoid that by setting fake values on the clouds that miss them.

hope that works for you!

Christian




On 29.04.2013 15:49, Leonard Koch wrote:
I had some quick fun with it. Hope it helps.

adrian wyer

unread,
Apr 29, 2013, 11:45:08 AM4/29/13
to soft...@listproc.autodesk.com

briliiant!

 

cheers

 

a

 


image001.jpg
image002.jpg

Guillaume Laforge

unread,
Apr 29, 2013, 12:11:29 PM4/29/13
to soft...@listproc.autodesk.com
If I remember correctly, the Group Geometry node will re-size any 2D arrays to the smallest on in the group. So the new point cloud could will miss some data (incomplete strand positions for example). I didn't double check it, but just in case :).

Cheers,
Guillaume
ffebacid.jpg

adrian wyer

unread,
Apr 29, 2013, 12:16:03 PM4/29/13
to soft...@listproc.autodesk.com

not a problem, i am merging 7 LIDAR scans, each of which has over 10 million points... a few thousand missing ones won't make a dent!

 

and surprisingly, Soft is coping with 70million+ points quite well!

 

a

 


image001.jpg
image002.jpg

Vincent Ullmann

unread,
Apr 29, 2013, 12:25:51 PM4/29/13
to soft...@listproc.autodesk.com
Sounds like you found a solution...

Just wondering... why does your Clone-Point-Node wont work?
A quickt test here worked well

Maybe you shoudl try the good old "Visualize-Values"-Trick used sometimes to cache out CustomAttributes
(   http://www.andynicholas.com/?p=360    )
cloneCloud.JPG

adrian wyer

unread,
Apr 29, 2013, 12:45:09 PM4/29/13
to soft...@listproc.autodesk.com

i think it didn't work because of the way the clouds were created... they are frozen, baked out from a cache file

 

a

 


From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Vincent Ullmann
Sent: 29 April 2013 17:26
To: soft...@listproc.autodesk.com
Subject: Re: cloning points with attributes

 

Sounds like you found a solution...

Grahame Fuller

unread,
Apr 29, 2013, 1:00:06 PM4/29/13
to soft...@listproc.autodesk.com
The issue with arrays occurs only when you try to get attributes directly off the group, e.g., emit particles at Group.PointPosition.

In the case below, where you are reading attributes at locations on the group geometry, there is no problem.

gray

From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of adrian wyer
Sent: Monday, April 29, 2013 12:16 PM
To: soft...@listproc.autodesk.com
Subject: RE: cloning points with attributes

not a problem, i am merging 7 LIDAR scans, each of which has over 10 million points... a few thousand missing ones won't make a dent!

and surprisingly, Soft is coping with 70million+ points quite well!

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com> [mailto:softimag...@listproc.autodesk.com] On Behalf Of Guillaume Laforge
Sent: 29 April 2013 17:11
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>
Subject: Re: cloning points with attributes

If I remember correctly, the Group Geometry node will re-size any 2D arrays to the smallest on in the group. So the new point cloud could will miss some data (incomplete strand positions for example). I didn't double check it, but just in case :).

Cheers,
Guillaume

On Mon, Apr 29, 2013 at 10:39 AM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu>> wrote:
Hey Adrian,

I would recommend to collect all your pointclouds with a group Geometry node and plug it into a "Generate Sample Set" with emission type set to "Point" and Rate type to "all Points" Rate should be set to 1.
then you can get whatever data is in the pointclouds via a "self.emitlocation" and pull the data you need from this Location.
you will get a red node if there are custom attributes that are not valid for all clouds. You can avoid that by setting fake values on the clouds that miss them.

hope that works for you!

Christian



[cid:image0...@01CE44D9.78316C60]

On 29.04.2013 15:49, Leonard Koch wrote:
I had some quick fun with it. Hope it helps.

On Mon, Apr 29, 2013 at 3:41 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>> wrote:
ahhh that's enlightening

the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it

i'm guessing that colour isn't initialised on the original cloud

will experiment

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>] On Behalf Of Peter Agg
Sent: 29 April 2013 14:34

To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>
Subject: Re: cloning points with attributes

Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).

On 29 April 2013 14:23, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>> wrote:
so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)

point order/ID will be bricked from cloud to cloud

i just assumed (in fact i read in the manual) that attributes would be cloned?!

"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>] On Behalf Of Leonard Koch
Sent: 29 April 2013 14:07
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>
Subject: Re: cloning points with attributes

You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.
Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.[Inline image 1]

On Mon, Apr 29, 2013 at 2:58 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>> wrote:
rtfm not really helping here

i have a cloud of points, and an empty cloud....

using clone point (and a test point in volume) i can copy points from one cloud to another, but the attributes don't clone... i need the colour to be the same
any tips?

a

Adrian Wyer
Fluid Pictures
75-77 Margaret St.
London
W1W 8SY
++44(0) 207 580 0829<tel:%2B%2B44%280%29%20207%20580%200829>

adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>
www.fluid-pictures.com<http://www.fluid-pictures.com>

Fluid Pictures Limited is registered in England and Wales.
Company number:5657815
VAT number: 872 6893 71


________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13
Internal Virus Database is out of date.

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13
Internal Virus Database is out of date.



________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
image001.jpg
image002.jpg

Guillaume Laforge

unread,
Apr 29, 2013, 1:03:38 PM4/29/13
to soft...@listproc.autodesk.com
That make sense as arrays data is not accessed from the Group Geometry node in this case. Thanks for the precision Grahame :).

Christian Freisleder

unread,
Apr 29, 2013, 2:15:22 PM4/29/13
to soft...@listproc.autodesk.com
Thanks for the 2d array hint anyway, that explains some problems I had on a previous project.
Where do you pull this sort of info?
can't find it in the manual even specifically looking for it!

christian

Dan Yargici

unread,
Apr 29, 2013, 2:27:23 PM4/29/13
to soft...@listproc.autodesk.com
I have been using this technique extensively on my current project and I can confirm that using Group Geometry introduces errors that can be easy to miss until they bite you on the ass (as it did in my case).  Good to understand the reason - thanks Guillaume!

DAN
ffebacid.jpg

Guillaume Laforge

unread,
Apr 29, 2013, 2:34:40 PM4/29/13
to soft...@listproc.autodesk.com
> Where do you pull this sort of info?

Just ask Autodesk to work in the Softimage team, this way you will be able to learn ICE nodes from the source code ;).

Christian Freisleder

unread,
Apr 29, 2013, 2:44:42 PM4/29/13
to soft...@listproc.autodesk.com
Well, that might not be possible for all of us, as Autodesk might not need that much staff ;)
AND there might be the minor problem that not all of us speak c++ .

But seriously, I think this kind of info should be documented in the specific area of the help.

Christian

Grahame Fuller

unread,
Apr 29, 2013, 3:03:36 PM4/29/13
to soft...@listproc.autodesk.com
I agree it should have been documented, and it's partly my fault that it isn't. I simply wasn't aware of the issue (there was no item called "truncate array data for groups" in our database) and never stumbled across it until later.

I don't work on the Softimage docs anymore, but you should log a bug for the current writers to add something to the docs.

gray

From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Christian Freisleder
Sent: Monday, April 29, 2013 02:45 PM
To: soft...@listproc.autodesk.com
Subject: Re: cloning points with attributes

Well, that might not be possible for all of us, as Autodesk might not need that much staff ;)
AND there might be the minor problem that not all of us speak c++ .

But seriously, I think this kind of info should be documented in the specific area of the help.

Christian
On 29.04.2013 20:34, Guillaume Laforge wrote:
> Where do you pull this sort of info?

Just ask Autodesk to work in the Softimage team, this way you will be able to learn ICE nodes from the source code ;).

On Mon, Apr 29, 2013 at 2:15 PM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu>> wrote:
Thanks for the 2d array hint anyway, that explains some problems I had on a previous project.
Where do you pull this sort of info?
can't find it in the manual even specifically looking for it!

christian

On 29.04.2013 19:03, Guillaume Laforge wrote:
That make sense as arrays data is not accessed from the Group Geometry node in this case. Thanks for the precision Grahame :).

On Mon, Apr 29, 2013 at 1:00 PM, Grahame Fuller <Grahame...@autodesk.com<mailto:Grahame...@autodesk.com>> wrote:
The issue with arrays occurs only when you try to get attributes directly off the group, e.g., emit particles at Group.PointPosition.

In the case below, where you are reading attributes at locations on the group geometry, there is no problem.

gray

From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>] On Behalf Of adrian wyer
Sent: Monday, April 29, 2013 12:16 PM
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>
Subject: RE: cloning points with attributes

not a problem, i am merging 7 LIDAR scans, each of which has over 10 million points... a few thousand missing ones won't make a dent!

and surprisingly, Soft is coping with 70million+ points quite well!

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>] On Behalf Of Guillaume Laforge
Sent: 29 April 2013 17:11
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

If I remember correctly, the Group Geometry node will re-size any 2D arrays to the smallest on in the group. So the new point cloud could will miss some data (incomplete strand positions for example). I didn't double check it, but just in case :).

Cheers,
Guillaume
On Mon, Apr 29, 2013 at 10:39 AM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu<mailto:m...@buntepixel.eu>>> wrote:
Hey Adrian,

I would recommend to collect all your pointclouds with a group Geometry node and plug it into a "Generate Sample Set" with emission type set to "Point" and Rate type to "all Points" Rate should be set to 1.
then you can get whatever data is in the pointclouds via a "self.emitlocation" and pull the data you need from this Location.
you will get a red node if there are custom attributes that are not valid for all clouds. You can avoid that by setting fake values on the clouds that miss them.

hope that works for you!

Christian


[cid:image0...@01CE44D9.78316C60]

On 29.04.2013 15:49, Leonard Koch wrote:
I had some quick fun with it. Hope it helps.
On Mon, Apr 29, 2013 at 3:41 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
ahhh that's enlightening

the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it

i'm guessing that colour isn't initialised on the original cloud

will experiment

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Peter Agg
Sent: 29 April 2013 14:34
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).
On 29 April 2013 14:23, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)

point order/ID will be bricked from cloud to cloud

i just assumed (in fact i read in the manual) that attributes would be cloned?!

"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Leonard Koch
Sent: 29 April 2013 14:07
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.
Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.[Inline image 1]

On Mon, Apr 29, 2013 at 2:58 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
rtfm not really helping here

i have a cloud of points, and an empty cloud....

using clone point (and a test point in volume) i can copy points from one cloud to another, but the attributes don't clone... i need the colour to be the same
any tips?

a

Adrian Wyer
Fluid Pictures
75-77 Margaret St.
London
W1W 8SY
++44(0) 207 580 0829<tel:%2B%2B44%280%29%20207%20580%200829><tel:%2B%2B44%280%29%20207%20580%200829>

adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>
www.fluid-pictures.com<http://www.fluid-pictures.com><http://www.fluid-pictures.com>

Fluid Pictures Limited is registered in England and Wales.
Company number:5657815
VAT number: 872 6893 71


________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com>
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13
Internal Virus Database is out of date.

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com>
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13
Internal Virus Database is out of date.



________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com>
winmail.dat

Stephen Blair

unread,
Apr 29, 2013, 3:28:59 PM4/29/13
to soft...@listproc.autodesk.com
The doc does say that what you get won't be correct:

Getting Data on Scene Groups

<snip/>
When getting per-component data, such as PointPosition, the results are correct only when all objects in the group have the same number of components.


The nature of the "incorrect" results are not documented, true, but they have been discussed on some mailing lists and on blogs, like this one: http://xsisupport.com/2013/01/24/getting-pointpositions-from-a-group/
>> wrote:
ahhh that's enlightening

the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it

i'm guessing that colour isn't initialised on the original cloud

will experiment

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autode!
 sk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Peter Agg
Sent: 29 April 2013 14:34
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).
On 29 April 2013 14:23, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)

point order/ID will be bricked from cloud to cloud

i just assumed (in fact i read in the manual) that attributes would be cloned?!

"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autode!
 sk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Leonard Koch
Sent: 29 April 2013 14:07
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.
Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.[Inline image 1]

On Mon, Apr 29, 2013 at 2:58 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
rtfm not really helping here

i have a cloud of points, and an empty cloud....

using clone point (and a test point in volume) i can copy points from one cloud to another, but the attributes don't clone... i need the colour to be the same
any tips?

a

Adrian Wyer
Fluid Pictures
75-77 Margaret St.
London
W1W 8SY
++44(0) 207 580 0829<tel:%2B%2B44%280%29%20207%20580%200829><tel:%2B%2B44%280%29%20207%20580%200829>

Vincent Fortin

unread,
Apr 29, 2013, 3:29:01 PM4/29/13
to softimage
Adrian, the frozen pointcloud is the culprit. I had issues cloning and rendering them.

repro:
1) create an empty pointcloud and load a cache on it
3) freeze the pointcloud
4) reload a cache on the pointcloud
5) create a new empty pointcloud
6) clone from the first pointcloud to the second (it doesn't matter on which pointcloud the ICETree is)
7) Points are cloned but color is gone.

Avoid if possible!

Vincent Fortin

unread,
Apr 29, 2013, 3:34:36 PM4/29/13
to softimage
In case you are wondering, there is no step #2 :-)

Grahame Fuller

unread,
Apr 29, 2013, 3:37:14 PM4/29/13
to soft...@listproc.autodesk.com
Wow, forgot I wrote that. Getting old I guess. But yeah it could use some details.

gray

From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Stephen Blair
Sent: Monday, April 29, 2013 03:29 PM
To: soft...@listproc.autodesk.com
Subject: Re: cloning points with attributes

The doc does say that what you get won't be correct:


Getting Data on Scene Groups
<snip/>
When getting per-component data, such as PointPosition, the results are correct only when all objects in the group have the same number of components.

The nature of the "incorrect" results are not documented, true, but they have been discussed on some mailing lists and on blogs, like this one: http://xsisupport.com/2013/01/24/getting-pointpositions-from-a-group/



On 29/04/2013 3:03 PM, Grahame Fuller wrote:

I agree it should have been documented, and it's partly my fault that it isn't. I simply wasn't aware of the issue (there was no item called "truncate array data for groups" in our database) and never stumbled across it until later.



I don't work on the Softimage docs anymore, but you should log a bug for the current writers to add something to the docs.



gray



From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com> [mailto:softimag...@listproc.autodesk.com] On Behalf Of Christian Freisleder

Sent: Monday, April 29, 2013 02:45 PM

To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>

Subject: Re: cloning points with attributes



Well, that might not be possible for all of us, as Autodesk might not need that much staff ;)

AND there might be the minor problem that not all of us speak c++ .



But seriously, I think this kind of info should be documented in the specific area of the help.



Christian

On 29.04.2013 20:34, Guillaume Laforge wrote:

Where do you pull this sort of info?



Just ask Autodesk to work in the Softimage team, this way you will be able to learn ICE nodes from the source code ;).



On Mon, Apr 29, 2013 at 2:15 PM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu>> wrote:

Thanks for the 2d array hint anyway, that explains some problems I had on a previous project.

Where do you pull this sort of info?

can't find it in the manual even specifically looking for it!



christian



On 29.04.2013 19:03, Guillaume Laforge wrote:

That make sense as arrays data is not accessed from the Group Geometry node in this case. Thanks for the precision Grahame :).



On Mon, Apr 29, 2013 at 1:00 PM, Grahame Fuller <Grahame...@autodesk.com<mailto:Grahame...@autodesk.com><mailto:Grahame...@autodesk.com><mailto:Grahame...@autodesk.com>> wrote:

The issue with arrays occurs only when you try to get attributes directly off the group, e.g., emit particles at Group.PointPosition.



In the case below, where you are reading attributes at locations on the group geometry, there is no problem.



gray



Subject: RE: cloning points with attributes



not a problem, i am merging 7 LIDAR scans, each of which has over 10 million points... a few thousand missing ones won't make a dent!



and surprisingly, Soft is coping with 70million+ points quite well!



a



________________________________

To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com>>

Subject: Re: cloning points with attributes



If I remember correctly, the Group Geometry node will re-size any 2D arrays to the smallest on in the group. So the new point cloud could will miss some data (incomplete strand positions for example). I didn't double check it, but just in case :).



Cheers,

Guillaume

On Mon, Apr 29, 2013 at 10:39 AM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu<mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu>>> wrote:

Hey Adrian,



I would recommend to collect all your pointclouds with a group Geometry node and plug it into a "Generate Sample Set" with emission type set to "Point" and Rate type to "all Points" Rate should be set to 1.

then you can get whatever data is in the pointclouds via a "self.emitlocation" and pull the data you need from this Location.

you will get a red node if there are custom attributes that are not valid for all clouds. You can avoid that by setting fake values on the clouds that miss them.



hope that works for you!



Christian





[cid:image0...@01CE44D9.78316C60]



On 29.04.2013 15:49, Leonard Koch wrote:

I had some quick fun with it. Hope it helps.

On Mon, Apr 29, 2013 at 3:41 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com>>> wrote:

ahhh that's enlightening



the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it



i'm guessing that colour isn't initialised on the original cloud



will experiment



a



________________________________

To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com>>

Subject: Re: cloning points with attributes



Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).

On 29 April 2013 14:23, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com>>> wrote:

so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)



point order/ID will be bricked from cloud to cloud



i just assumed (in fact i read in the manual) that attributes would be cloned?!



"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."



a



________________________________

To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com>>

Subject: Re: cloning points with attributes



You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.

Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.[Inline image 1]



On Mon, Apr 29, 2013 at 2:58 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com>>> wrote:

rtfm not really helping here



i have a cloud of points, and an empty cloud....



using clone point (and a test point in volume) i can copy points from one cloud to another, but the attributes don't clone... i need the colour to be the same

any tips?



a



Adrian Wyer

Fluid Pictures

75-77 Margaret St.

London

W1W 8SY

++44(0) 207 580 0829<tel:%2B%2B44%280%29%20207%20580%200829><tel:%2B%2B44%280%29%20207%20580%200829>



adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com>>

www.fluid-pictures.com<http://www.fluid-pictures.com><http://www.fluid-pictures.com><http://www.fluid-pictures.com><http://www.fluid-pictures.com><http://www.fluid-pictures.com>



Fluid Pictures Limited is registered in England and Wales.

Company number:5657815

VAT number: 872 6893 71





________________________________

No virus found in this message.

Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com>

Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13

Internal Virus Database is out of date.



________________________________

No virus found in this message.

Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com>

Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13

Internal Virus Database is out of date.







________________________________

No virus found in this message.

Checked by AVG - www.avg.com<http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com><http://www.avg.com>
winmail.dat

Grahame Fuller

unread,
Apr 29, 2013, 3:56:46 PM4/29/13
to soft...@listproc.autodesk.com
That definitely got added after v7 though.

gray

From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Grahame Fuller
Sent: Monday, April 29, 2013 03:37 PM
To: soft...@listproc.autodesk.com
Subject: RE: cloning points with attributes

Wow, forgot I wrote that. Getting old I guess. But yeah it could use some details.

gray

winmail.dat

Christian Freisleder

unread,
Apr 30, 2013, 5:06:40 AM4/30/13
to soft...@listproc.autodesk.com
my mistake, not clever enough to use the help correctly :(

christian
Subject: RE: cloning points with attributes

not a problem, i am merging 7 LIDAR scans, each of which has over 10 million points... a few thousand missing ones won't make a dent!

and surprisingly, Soft is coping with 70million+ points quite well!

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com&!
 gt;]
 On Behalf Of Guillaume Laforge
Sent: 29 April 2013 17:11
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

If I remember correctly, the Group Geometry node will re-size any 2D arrays to the smallest on in the group. So the new point cloud could will miss some data (incomplete strand positions for example). I didn't double check it, but just in case :).

Cheers,
Guillaume
On Mon, Apr 29, 2013 at 10:39 AM, Christian Freisleder <m...@buntepixel.eu<mailto:m...@buntepixel.eu><mailto:m...@buntepixel.eu<mailto:m...@buntepixel.eu>>> wrote:
Hey Adrian,

I would recommend to collect all your pointclouds with a group Geometry node and plug it into a "Generate Sample Set" with emission type set to "Point" and Rate type to "all Points" Rate should be set to 1.
then you can get whatever data is in the pointclouds via a "self.emitlocation" and pull the data you need from this Location.
you will get a red node if there are custom attributes that are not valid for all clouds. You can avoid that by setting fake values on the clouds that miss them.

hope that works for you!

Christian


[cid:image0...@01CE44D9.78316C60]

On 29.04.2013 15:49, Leonard Koch wrote:
I had some quick fun with it. Hope it helps.
On Mon, Apr 29, 2013 at 3:41 PM, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
ahhh that's enlightening

the clouds i'm cloning from were created with a custom script that reads positional and colour data from lidar files, creates a cache, loads the cache on a new cloud and freezes it

i'm guessing that colour isn't initialised on the original cloud

will experiment

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com&!
 gt;&
lt;mailto:softimag...@listproc.autode!
 sk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Peter Agg
Sent: 29 April 2013 14:34
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

Hum, it should just work out of the box: it's meant to be a direct clone, attributes and all. Just done a quick test and it seems to work fine for me with Color (though this is in 2012).
On 29 April 2013 14:23, adrian wyer <adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com><mailto:adria...@fluid-pictures.com<mailto:adria...@fluid-pictures.com>>> wrote:
so far so good, but i need to clone points from 7 clouds into one (wrangling LIDAR data)

point order/ID will be bricked from cloud to cloud

i just assumed (in fact i read in the manual) that attributes would be cloned?!

"All attributes of the source point are available on the target point. For example, if you want to modulate an attribute on the target point based on the source point."

a

________________________________
From: softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com><mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com>> [mailto:softimag...@listproc.autodesk.com<mailto:softimag...@listproc.autodesk.com&!
 gt;&
lt;mailto:softimag...@listproc.autode!
 sk.com<mailto:softimag...@listproc.autodesk.com>>] On Behalf Of Leonard Koch
Sent: 29 April 2013 14:07
To: soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com><mailto:soft...@listproc.autodesk.com<mailto:soft...@listproc.autodesk.com>>
Subject: Re: cloning points with attributes

You can get the point position from the main cloud plug it into an add point node and then use a switch context node to get the color from the original cloud over into the context of the cloned cloud. Since they both have the exact same number of particles and since they are ordered the same way, it works very well.
Attached an image with the nodes I have in an unsimulated ice-tree on the cloud you are cloning to.[Inline image 1]

On Mon, Apr 29, 2013 at 2:58 PM, adrian wyer <