C++ SDK: how to get the geometry of (ICE) instances?

Discussions concerning programming of SOFTIMAGE©
Post Reply
User avatar
Mootzoid
Administrator
Posts: 243
Joined: 03 Jun 2009, 18:48
Location: Germany/France
Contact:

C++ SDK: how to get the geometry of (ICE) instances?

Post by Mootzoid » 27 Aug 2009, 22:44

Hi,

I would really like to somehow get the triangles and points of instances and ICE instances, something similar to GetActivePrimitive().GetGeometry().GetTriangles() or to PolygonMesh.Get() would be great (even though I guess it won't be that easy).
Searching the SDK doc didn't help...

Any hints about (ICE) instances would be great =p~

Thanks!
Eric

scaron
Posts: 119
Joined: 08 Jul 2009, 05:16

Re: C++ SDK: how to get the geometry of (ICE) instances?

Post by scaron » 28 Aug 2009, 02:19

i think you want to check out the 'CShape' class, which should contain GetReferenceID(), then use GetObjectFromID()... then access data as you normally would

steven

User avatar
Mootzoid
Administrator
Posts: 243
Joined: 03 Jun 2009, 18:48
Location: Germany/France
Contact:

Re: C++ SDK: how to get the geometry of (ICE) instances?

Post by Mootzoid » 28 Aug 2009, 12:48

Hi Steven,

that's sounds quite good, will look into it. For "easy" instances (i.e. an unanimated polygon mesh) that should be just fine, but what if I have some ultra-sophisticated instances of animated models with tons of children?
Anyway, I'll start with the above mentioned "easy" instances.

Thanks!
Eric

scaron
Posts: 119
Joined: 08 Jul 2009, 05:16

Re: C++ SDK: how to get the geometry of (ICE) instances?

Post by scaron » 28 Aug 2009, 21:37

animated instances in ICE are slow, try them, you will see... now i dont believe there is anything else softimage has to speed up this access, they give you the object ID(s) and you gotta fetch the data.

if you look at the animation detail options of the particle display attribute, you can implement something similar where you will round the frame that a piece of geometry is being queried at so you only query 5 frames out of 10 rather than all 10.

User avatar
Mootzoid
Administrator
Posts: 243
Joined: 03 Jun 2009, 18:48
Location: Germany/France
Contact:

Re: C++ SDK: how to get the geometry of (ICE) instances?

Post by Mootzoid » 29 Aug 2009, 01:23

Yeah, I was afraid it would be so.
Nevertheless: thanks for the confirmation :-h
Eric

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests