my C++ is as clear as muddy water. Although I plan on changing that
sooner than later.
I should have thought it would have been something as simple as what you
said. Which sounds like what Kim was explaining as well. Just that most
of my scripts I use OM scripting, so I don't access the hairs in that
fashion unfortunately. but thats a whole other gripe of mine regarding
hair geometry in Soft. Ah well, thanks everyone for the quick replies.
I'll give everything a looksie!
Greg
On Fri, 2006-08-04 at 17:37 -0400, Robert Moodie wrote:
> How's your C++?
>
> From the SDK docs:
> CRenderHairAccessor Class Reference
> This class provides access to the render hair information exposed by
> the hair primitive. This information includes: the vertex positions of
> each generated render hair, the root/tip radius values, the UVW,
> weight map and vertex color values for each render hair root location.
>
> Also, as I'm sure you have seen, when you select a point on the
> *guide* hairs, the point is reperesented as a pair ("Hair.pnt
> [(166,8)]").
> As I understand it the first value always corresponds to the vertex
> index on the emission geometry.
>
> Can anyone confirm or deny that?
>
> Cheers
> _rob
>
>
>
>
> ----- Original Message -----
> From: "Greg Smith" <greg(at)stanwinston.com>
> To: "XSI_MailingList" <XSI(at)Softimage.COM>
> Sent: Friday, August 04, 2006 5: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