------=_NextPart_000_00B6_01C73413.D3F796B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: Weird Realflow problem in XSI 6</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>Hi,=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>This =
is kinda aimed=20
at Halfdan since I know you helped someone else on a similar topic a =
while back,=20
but if anyone else (Alan?) knows something on this, I'm all=20
ears.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>I'm =
trying to use a=20
geometry shader to get hold of the displaced vertex and =
triangle list=20
of an object in the scene that's been displaced with a texture. So I =
figured=20
that I need to call "<FONT size=3D2>mi_geoshader_tesselate()" on an =
object so that=20
Mental Ray will go away and give me the subdivided/displaced geometry =
that I=20
need. As yet though, I've had no success. Every time I pass an object =
tag to=20
mi_geoshader_tesselate(), it crashes on me.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>From =
what I can=20
tell, I don't think that I'm passing the correct object tag to the =
routine.=20
There seem to be a lot of different objects around, and the docs are =
less than=20
clear on what I should be passing to mi_geoshader_tesselate().=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>Once I =
extract the=20
instance object from the input parameters, I think I've figured that I =
have the=20
following object hierarchy in the database (ignoring instance type=20
objects).</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007><SPAN=20
class=3D343020117-09012007>miScene_Group</SPAN></SPAN></FONT></DIV>
<DIV></SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007> =20
|</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D343020117-09012007> =20
Kid[0]</SPAN></FONT></DIV></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007> &nbs=
p;|___=20
miScene_Object (</SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007>type =3D <FONT=20
size=3D2>miOBJECT_PLACEHOLDER)</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007> &nbs=
p;  =
; =20
|</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007> &nbs=
p;  =
; =20
|</SPAN></FONT><FONT face=3DArial size=3D2><SPAN =
class=3D343020117-09012007>__=20
geo.placeholder_list.object---> miBox object</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007><FONT=20
size=3D2></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>If I =
pass any of the=20
above object's tags to "mi_geoshader_tesselate()" then XSI =
will crash,=20
unless I pass the miBox's object tag, in which case it doesn't crash but =
I get=20
no leaves returned.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D343020117-09012007>What =
am I doing=20
wrong here! Is it possible to get displaced geometry? What's contained =
in the=20
miBox structure - there seem to be some geometry information, but I'm =
guessing=20
that it's not subdivided or displaced?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007>Andy</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D343020117-09012007></SPAN></FONT> </DIV></BODY></HTML>
------=_NextPart_000_00B6_01C73413.D3F796B0--
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi