How to random scale copies on pointcloud

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

How to random scale copies on pointcloud

Post by Maximus » 12 Apr 2011, 20:39

Hello guys, i'm tryin to get the copied mesh random scaled after they got scattered into a grid pointcloud, but
i dont understand what i'm doing wrong.

At first the "Scaling" port of the create copies form polygon only accetps per point data, so i couldnt find a node except scalar to 3d vector.
The X Y Z of the scalar to 3d vector also accept only per point data, so i cant use Randomize around value wich i expected to be using :/

Any suggestion?

Image

thanks

User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 19:11
Location: Zagreb, Croatia

Re: How to random scale copies on pointcloud

Post by Mathaeus » 12 Apr 2011, 21:04

'Random Value' needs some ID in order to make differences. You can type Self.ID in Get Data node and plug this into ID of Random value.
However, I think that 'Randomize Around Value' should work too (probably is limited to scalar). So, something like Randomize Around Value> Multiply by Scalar. In 'Multiply by Scalar', plug some Constant 3d vector, type 1,1,1 in 3d vector as an 'starting' value.

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

Re: How to random scale copies on pointcloud

Post by grahamef » 12 Apr 2011, 21:06

It's probably easiest just to randomize the particles' Size. When using a point cloud, the particle Size gets used by default.

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: How to random scale copies on pointcloud

Post by Maximus » 12 Apr 2011, 21:14

Thanks both!

@mathaeus your method would work but it doesnt accept per object data, it wants only per point datas, after i built the nodes you said it always output per object datas, so didnt pipe into the scaling node

@graham thanks! that worked pretty quick!

User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 19:11
Location: Zagreb, Croatia

Re: How to random scale copies on pointcloud

Post by Mathaeus » 12 Apr 2011, 21:33

Maximus wrote:Thanks both!

@mathaeus your method would work but it doesnt accept per object data, it wants only per point datas, after i built the nodes you said it always output per object datas, so didnt pipe into the scaling node
yeah what I said probably would work if you set this on point cloud, not this ICE tree - which is... somewhere else.

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: How to random scale copies on pointcloud

Post by Maximus » 12 Apr 2011, 22:53

ok so here is another thing, wich is the whole reason why i started this experiment :D
as you might remember Mathaeus i'm referring to the other post where we spoke polygon copies!

ok now, lets say i have an Object for example a bottle, and i want those spheres to be copied and instanced into a particular zone of the bottle, it can be an extrated curve from the bottle, (wich i prefer to use to have more control on where i want to scatter copies).

My problem is exactly this, since the topology node wants a pointcloud input to scatter copies into, how do i convert the curve points into pointcloud points?

I've tried everything in my knowledge but i just cant get this to work.
I want basically to have full control of where the copies are scattered, and not with a pre-made shape like the pointcloud grid, sphere or the preset you get when you create a pointcloud.
I want to use my curve with a custom profile and i want to have this curve pipe into the topology compound, since it accepts only pointcloud, again i have to find out how to create a pointcloud that have the same exact amount of points and the same exact position of the points of my curve!

I hope i explained myself :D

Thanks!!

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

Re: How to random scale copies on pointcloud

Post by xsisupport » 13 Apr 2011, 10:14

Maximus wrote:ok so here is another thing, wich is the whole reason why i started this experiment :D
as you might remember Mathaeus i'm referring to the other post where we spoke polygon copies!

ok now, lets say i have an Object for example a bottle, and i want those spheres to be copied and instanced into a particular zone of the bottle, it can be an extrated curve from the bottle, (wich i prefer to use to have more control on where i want to scatter copies).

My problem is exactly this, since the topology node wants a pointcloud input to scatter copies into, how do i convert the curve points into pointcloud points?

I've tried everything in my knowledge but i just cant get this to work.
I want basically to have full control of where the copies are scattered, and not with a pre-made shape like the pointcloud grid, sphere or the preset you get when you create a pointcloud.
I want to use my curve with a custom profile and i want to have this curve pipe into the topology compound, since it accepts only pointcloud, again i have to find out how to create a pointcloud that have the same exact amount of points and the same exact position of the points of my curve!

I hope i explained myself :D

Thanks!!
Here's how to do it.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: How to random scale copies on pointcloud

Post by Maximus » 13 Apr 2011, 10:58

wow that is exactly what i wanted to do!
thanks a lot!