Re: [scripting] finding source vertex of a hair strand

Date : Sun, 6 Aug 2006 19:55:54 +0200
To : <XSI(at)Softimage.COM>
From : "Christian Keller" <Christian(at)fongfood.com>
Subject : Re: [scripting] finding source vertex of a hair strand
little trick :
temporarely scale down your hair to zero or near zero
and check the distance to the mesh points.
then push the mapping between strand and emitting vertex into a userdata map

----- Original Message -----
From: "Greg Smith" <greg(at)stanwinston.com>
To: "XSI_MailingList" <XSI(at)Softimage.COM>
Sent: Friday, August 04, 2006 11:05 PM
Subject: [scripting] finding source vertex of a hair strand


> I'm running into a little bit of a problem with hair. I've been trying
> to figure out what is the best way to find what vertex a hair strand is
> emitted from, since there doesn't seem to be a straight forward approach
> in the first place. What has worked for me up to this point is using the
> GetClosestLocations method from the hair emitter object, using the
> position data from the first point on each strand of hair. this work if
> your hair is projecting out perfectly perpendicular. However, in cases
> where the hair is styled and the first point of the hair strand resides
> closer to a neighboring vertex on the emission object, the method does
> not return the desired positional data.
> So I am curious is there indeed a way to fetch which vertex a hair
> strand is emitted from regardless of how that hair has been styled.
>
> Thanks,
>
> Greg
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


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.