Generate copies from mesh and position each on a point?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Generate copies from mesh and position each on a point?

Post by Mugatu » 26 Nov 2011, 13:05

Hey everyone, Im new to ICE and have been trying to generate copies of a polygonal object then position each of those copies on the point of another polygonal object e.g. a sphere or grid.

I managed to create the copies ok but cannot figure out how to tell them to position on the points i get from the other mesh, could anyone point me in the right direction?

Cheers, K

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 26 Nov 2011, 15:39

// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Re: Generate copies from mesh and position each on a point?

Post by Mugatu » 26 Nov 2011, 15:48

Hey, thanks for the reply, I have been watching the digital tutor tutorials and they include a similar example using curves. Is it possible to distribute over faces and points though?

Would it just be a matter of changing the 'get spiral point position' with the point position of my chosen object?

Lastly, is 'get polygon index' the same as getting all face positions on a piece of geometry? There doesn't seem to be a 'get face position' but there is a 'get point position'.

Thanks again :) K

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 26 Nov 2011, 22:05

Mugatu wrote:Hey, thanks for the reply, I have been watching the digital tutor tutorials and they include a similar example using curves. Is it possible to distribute over faces and points though?

Would it just be a matter of changing the 'get spiral point position' with the point position of my chosen object?

Lastly, is 'get polygon index' the same as getting all face positions on a piece of geometry? There doesn't seem to be a 'get face position' but there is a 'get point position'.

Thanks again :) K
Yes

Yes

No. Use a Get Data and get PolygonPosition
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Re: Generate copies from mesh and position each on a point?

Post by Mugatu » 26 Nov 2011, 23:49

Hey, thanks again really appreciate the info :) Was using the get data node today but just couldn't get everything matching up, guess it just takes some practice :)

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 16:43

Re: Generate copies from mesh and position each on a point?

Post by Chris_TC » 27 Nov 2011, 17:51

Mugatu wrote:There doesn't seem to be a 'get face position' but there is a 'get point position'.
These compounds, like "Get Point Position", are included to facilitate working with particles (which was the original main use of ICE). They really don't do anything fancy, they just read an attribute using a Get Data node, for example "self.PointPosition".

You can use the Explore button on the Get Data nodes to find out which attributes you can access. For geometry type stuff, you've got a lot of attributes starting with "Vertex", "Edge" or "Polygon", e.g.:
VertextoPolygons (returns all the polygons a vertex is part of)
EdgeIndex (returns the edge index)
PolygonNormal (returns the polygon normal)
.
.
.

Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Re: Generate copies from mesh and position each on a point?

Post by Mugatu » 12 Dec 2011, 23:37

Thanks for that useful tip will get to exploring some data :)

Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Re: Generate copies from mesh and position each on a point?

Post by Mugatu » 13 Dec 2011, 17:38

Just an update, for some reason I cant get that compound to work. I have a sphere and a cyclinder, I am trying to copy and attach the cyclinder to every face of the sphere. The compound is all hooked and has no errors but the sphere and duplicated cyclinders (based on poly count) just sit in there original position.

Really cant figure out what the hell im doing wrong, so frsutrated. Should I be creating empty poly meshes, I read somewhere thats the workflow but dont really understand it.

Thanks anyway :)

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 13 Dec 2011, 18:56

Mugatu wrote:Just an update, for some reason I cant get that compound to work. I have a sphere and a cyclinder, I am trying to copy and attach the cyclinder to every face of the sphere. The compound is all hooked and has no errors but the sphere and duplicated cyclinders (based on poly count) just sit in there original position.

Really cant figure out what the hell im doing wrong, so frsutrated. Should I be creating empty poly meshes, I read somewhere thats the workflow but dont really understand it.

Thanks anyway :)
sample scene
done with Softimage 2012 SAP
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

Mugatu
Posts: 13
Joined: 24 Nov 2011, 19:19

Re: Generate copies from mesh and position each on a point?

Post by Mugatu » 14 Dec 2011, 00:26

Hey thanks a lot for the example scene that showed exactly what i was trying to do (the sphere with the cylinders per face orientated to face normal). Did you create the IceTree on an empty mesh and then pull in the sphere and cylinder where needed?

As I mentioned before this may be where I was going wrong as I was trying to create the Ice tree on the sphere or cylinder, Im not exactly sure yet when it is appropriate to use the empty polymesh :-s

Thanks again though, much appreciated :)

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 14 Dec 2011, 16:55

Mugatu wrote:Hey thanks a lot for the example scene that showed exactly what i was trying to do (the sphere with the cylinders per face orientated to face normal). Did you create the IceTree on an empty mesh and then pull in the sphere and cylinder where needed?

As I mentioned before this may be where I was going wrong as I was trying to create the Ice tree on the sphere or cylinder, Im not exactly sure yet when it is appropriate to use the empty polymesh :-s

Thanks again though, much appreciated :)
You're very welcome.

Here's a video walkthrough; I answer your question at the very start.
And here's part 2, dealing with the rotation of the copies.
Last edited by xsisupport on 15 Dec 2011, 21:30, edited 1 time in total.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 14 Dec 2011, 16:55

Mugatu wrote:Hey thanks a lot for the example scene that showed exactly what i was trying to do (the sphere with the cylinders per face orientated to face normal). Did you create the IceTree on an empty mesh and then pull in the sphere and cylinder where needed?

As I mentioned before this may be where I was going wrong as I was trying to create the Ice tree on the sphere or cylinder, Im not exactly sure yet when it is appropriate to use the empty polymesh :-s

Thanks again though, much appreciated :)
You're very welcome.

Here's a video walkthrough; I answer your question at the very start.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

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

Re: Generate copies from mesh and position each on a point?

Post by TwinSnakes007 » 15 Dec 2011, 16:47

Been following this thread, and I looked at the second video about aligning the copies, and I had a different approach. Instead of using PolygonRefFrame, I used the PolygonNormal plugged into the ToVector of the IncrementRotationWith2Vectors node, and it appears to achieve the same result. You also have to set the LocalVector to the Y axis (0,1,0) as well.

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

Re: Generate copies from mesh and position each on a point?

Post by xsisupport » 15 Dec 2011, 17:04

TwinSnakes007 wrote:Been following this thread, and I looked at the second video about aligning the copies, and I had a different approach. Instead of using PolygonRefFrame, I used the PolygonNormal plugged into the ToVector of the IncrementRotationWith2Vectors node, and it appears to achieve the same result. You also have to set the LocalVector to the Y axis (0,1,0) as well.
Yes, for sure you could do that. I'd done something like that in another project, so this time I was dead-set on doing it with the PolygonRefFrame ;-)

Update: actually I can't seem to get it to work in my setup...any advice?
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage