[no subject]

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 -----=20
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.
>=20
> Thanks,=20
>=20
> Greg
>=20
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in =
body:
> unsubscribe xsi
>
------=_NextPart_000_000E_01C6B7EC.A3B571A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>How's your C++?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>From the SDK docs:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>CRenderHairAccessor Class=20
Reference</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This class provides access to the =
render hair=20
information exposed by the hair primitive. This information includes: =
the vertex=20
positions of each generated render hair, the root/tip radius values, the =
UVW,=20
weight map and vertex color values for each render hair root=20
location.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also, </FONT><FONT face=3DArial =
size=3D2>as I'm sure=20
you have seen, when you select a point on the *guide* hairs, the point =
is=20
reperesented as a pair&nbsp; <FONT=20
size=3D2>("Hair.pnt[(166,8)]").</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>As I understand it the first value =
<STRONG>always=20
</STRONG>corresponds to the vertex index on the emission =
geometry.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone confirm or deny =
that?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>_rob</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Greg Smith" &lt;</FONT><A=20
href=3D"mailto:greg(at)stanwinston.com"><FONT face=3DArial=20
size=3D2>greg(at)stanwinston.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: "XSI_MailingList" &lt;</FONT><A=20
href=3D"mailto:XSI(at)Softimage.COM"><FONT face=3DArial=20
size=3D2>XSI(at)Softimage.COM</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Friday, August 04, 2006 5:05 =
PM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: [scripting] finding source =
vertex of a=20
hair strand</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2>&gt; I'm running into a little bit of a problem with hair. I've =
been=20
trying<BR>&gt; to figure out what is the best way to find what vertex a =
hair=20
strand is<BR>&gt; emitted from, since there doesn't seem to be a =
straight=20
forward approach<BR>&gt; in the first place. What has worked for me up =
to this=20
point is using the<BR>&gt; GetClosestLocations method from the hair =
emitter=20
object, using the<BR>&gt; position data from the first point on each =
strand of=20
hair. this work if<BR>&gt; your hair is projecting out perfectly =
perpendicular.=20
However, in cases<BR>&gt; where the hair is styled and the first point =
of the=20
hair strand resides<BR>&gt; closer to a neighboring vertex on the =
emission=20
object, the method does<BR>&gt; not return the desired positional =
data.<BR>&gt;=20
So I am curious is there indeed a way to fetch which vertex a =
hair<BR>&gt;=20
strand is emitted from regardless of how that hair has been =
styled.<BR>&gt;=20
<BR>&gt; Thanks, <BR>&gt; <BR>&gt; Greg<BR>&gt; <BR>&gt; ---<BR>&gt;=20
Unsubscribe? Mail </FONT><A =
href=3D"mailto:Majordomo(at)Softimage.COM"><FONT=20
face=3DArial size=3D2>Majordomo(at)Softimage.COM</FONT></A><FONT =
face=3DArial size=3D2>=20
with the following text in body:<BR>&gt; unsubscribe=20
xsi<BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_000E_01C6B7EC.A3B571A0--



---
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.