RE: accessing guide hairs control points in C++

Date : Fri, 30 Dec 2005 11:07:53 -0500
To : <XSI(at)Softimage.COM>
From : "Andrew Skowronski" <askowron(at)Softimage.COM>
Subject : RE: accessing guide hairs control points in C++
There are a few tips here and I just added a few examples that I had thought made it into the reference but which I can't find there!
 
 
However it would be cool if someone could add some information about how to find the base point for each guide hair, as mentioned by Kim below.
 
-Andrew
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf Of kim aldis
Posted At: Thursday, December 29, 2005 5:32 PM
Posted To: xsi
Conversation: accessing guide hairs control points in C++
Subject: RE: accessing guide hairs control points in C++

and there's always 13 points to each guide and you have to do some tricksy stuff to get the base point of each guide from the emitter geometry because it's not in the hair prim.


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Martin Barrette
Sent: 29-December-2005 20:58
To: XSI(at)Softimage.COM
Subject: RE: accessing guide hairs control points in C++

Primitive.Geometry.Points.PositionArray will return you only the points position for the guide hairs.
 
Cheers,
Martin


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Mathieu Leclaire
Sent: Thursday, December 29, 2005 3:56 PM
To: XSI(at)Softimage.COM
Subject: accessing guide hairs control points in C++

Hi,

 

I’m doing a custom operator and I need to access the guide hairs control points positions. From what I can see from the C++ API, there’s the HairPrimitive from whom we can access the CRenderHairAccessor but that’s the information of all the rendered hairs. I have to loop through every hair points to make proximity calculations. I just don’t need to loop through every hair, I just want to access the guide hairs to optimize the process. But I can’t find where to access only those. Can anyone help me figure out how to access that information?

 

Thanks

 

Mathieu Leclaire

R&D Programmer

Hybride Technologies


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.