<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
span.msoIns
        {mso-style-type:export-only;
        text-decoration:underline;
        color:teal;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Christophe,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The dependency on camera position is an
interesting and potentially important insight.  There may be some location-related
conditional behavior within the native code that osgDotNet is not handling
properly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Can you tell me generally what is
contained in the scene graphs of the models that you are loading?  That may have
some bearing on the problem.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Mike<o:p></o:p></span></font></p>

<div>

<div>

<p class=MsoNormal style='text-align:justify'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'> </span><o:p></o:p></font></p>

</div>

</div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
osg-users-bounces@lists.openscenegraph.org
[mailto:osg-users-bounces@lists.openscenegraph.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Christophe Medard<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, September 25, 2007
9:43 AM<br>
<b><span style='font-weight:bold'>To:</span></b> OpenSceneGraph Users<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [osg-users] osgDotNet
: Nodes adding to scene graphoutsidemain()function scope</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi Mike,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks for telling me the same kind of thing was already
reported ! </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I understand passin in OSG 2.1.12 would do no good.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks also for confirming the OSG reference count
management being done by the wrapper layer in a .NET Managed-fashion...</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>It's quite hard to find the root cause indeed, since it
seems to depend on independant factor, like where the camera is
-initially- positionned : I only get the problem when letting osgViewer set it
away from the scene (no osgViewer.getCameraManipulator().setHomePosition() call
in my mainloop). There's something about an intersect visitor apparently (a
culling pass ?).</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>One could think it's only where the AccessViolation first
occur. I'm not sure : if I initialize the camera close to the scene geometry,
not only does my AccessViolation vanish, but I don't have the OSG Notice
warning about a possible problem anymore either. That whether I leave space
between my point of the scene and scene geometry through manipulator's
behaviour afterwards in the run time of my application...</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Anyway, if anyone happen to lock the root cause, please
don't hesitate to post !</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>-- <br>
Christophe Médard<br>
Société OKTAL (<a href="http://www.oktal.fr">http://www.oktal.fr</a>)<br>
2 impasse Boudeville<br>
31100 Toulouse (France)<br>
Tél. : (+33) 5 62 11 50 10<br>
Fax : (+33) 5 62 11 50 29<br>
</span></font> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 3.0pt;
margin-left:3.4pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>----- Original Message ----- <o:p></o:p></span></font></p>

</div>

<div style='font-color:black'>

<p class=MsoNormal style='background:#E4E4E4'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>From:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:mwittman@seismicmicro.com" title="mwittman@seismicmicro.com">Mike
Wittman</a> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>To:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:osg-users@lists.openscenegraph.org"
title="osg-users@lists.openscenegraph.org">OpenSceneGraph Users</a> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Sent:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> Tuesday, September
25, 2007 3:58 PM<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Subject:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> Re: [osg-users]
osgDotNet : Nodes adding to scene graph outsidemain()function scope<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Christophe,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This sounds like a bug that Jason reported
where a particle system under a PAT node gives the same symptoms - <a
href="http://www.openscenegraph.org/projects/osgDotNet/ticket/1">http://www.openscenegraph.org/projects/osgDotNet/ticket/1</a>. 
I've dug into that problem some, but only enough to know that it will take
quite a bit more time to track down the root cause.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You're correct about the reference count
management; it's intended to be completely handled by the wrappers and
transparent to the C# user.  Obviously something is going wrong in this
particular case.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><strong><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Mike Wittman</span></font></b></strong><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><a href="mailto:mwittman@seismicmicro.com"
title="blocked::mailto:cedwards@seismicmicro.com"><font color="#0000a0"
title="blocked::mailto:cedwards@seismicmicro.com"><span style='color:#0000A0'>mwittman@seismicmicro.com</span></font></a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:6.0pt'><u><font size=1 color=black
face=Arial><span style='font-size:7.5pt;font-family:Arial;color:black'>___________________________________________________</span></font></u><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><strong><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Seismic
Micro-Technology, Inc.</span></font></b></strong><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><strong><b><font size=1
color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:black'>8584 Katy Freeway, </span></font></b></strong><font size=2><span
style='font-size:10.0pt'><ns0:address w:insAuthor="mwittman"
 w:insDate="2007-09-25T08:39:00Z" w:endInsAuthor="mwittman"
 w:endInsDate="2007-09-25T08:39:00Z"><ns0:Street w:insAuthor="mwittman"
  w:insDate="2007-09-25T08:39:00Z" w:endInsAuthor="mwittman"
  w:endInsDate="2007-09-25T08:39:00Z"><strong><b><font size=1 color=black
  face=Arial><span style='font-size:7.5pt;font-family:Arial;color:black'>Suite</span></font></b></strong><u
  style='text-decoration:none'><span class=msoIns><ins cite="mailto:mwittman"
  datetime="2007-09-25T08:39"></ns0:Street></ins></span></u><strong><b><font
 size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
 color:black'> 400</span></font></b></strong><u style='text-decoration:none'><span
 class=msoIns><ins cite="mailto:mwittman" datetime="2007-09-25T08:39"></ns0:address></ins></span></u></span></font><strong><b><font
size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:black'> / </span></font></b></strong><font size=2><span style='font-size:
10.0pt'><ns0:place w:insAuthor="mwittman" w:insDate="2007-09-25T08:39:00Z"
 w:endInsAuthor="mwittman" w:endInsDate="2007-09-25T08:39:00Z"><ns0:City
  w:insAuthor="mwittman" w:insDate="2007-09-25T08:39:00Z"
  w:endInsAuthor="mwittman" w:endInsDate="2007-09-25T08:39:00Z"><strong><b><font
  size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
  color:black'>Houston</span></font></b></strong><u style='text-decoration:
  none'><span class=msoIns><ins cite="mailto:mwittman"
  datetime="2007-09-25T08:39"></ns0:City></ins></span></u><strong><b><font
 size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
 color:black'>, </span></font></b></strong><ns0:State w:insAuthor="mwittman"
  w:insDate="2007-09-25T08:39:00Z" w:endInsAuthor="mwittman"
  w:endInsDate="2007-09-25T08:39:00Z"><strong><b><font size=1 color=black
  face=Arial><span style='font-size:7.5pt;font-family:Arial;color:black'>Texas</span></font></b></strong><u
  style='text-decoration:none'><span class=msoIns><ins cite="mailto:mwittman"
  datetime="2007-09-25T08:39"></ns0:State></ins></span></u><strong><b><font
 size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
 color:black'> </span></font></b></strong><ns0:PostalCode w:insAuthor="mwittman"
  w:insDate="2007-09-25T08:39:00Z" w:endInsAuthor="mwittman"
  w:endInsDate="2007-09-25T08:39:00Z"><strong><b><font size=1 color=black
  face=Arial><span style='font-size:7.5pt;font-family:Arial;color:black'>77024</span></font></b></strong><u
  style='text-decoration:none'><span class=msoIns><ins cite="mailto:mwittman"
  datetime="2007-09-25T08:39"></ns0:PostalCode></ins></span></u></ns0:place></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><strong><b><font size=1
color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:black'>Tel.  +1 (713) 464-6188</span></font></b></strong><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><strong><b><font size=1
color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:black'>Fax. +1 (713) 464-6440</span></font></b></strong><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><strong><b><font size=1
color=black face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:black'>Web:  <a href="blocked::blocked::http://www.seismicmicro.com"
target="_blank"
title="blocked::blocked::http://www.seismicmicro.com http://www.seismicmicro.com/"><font
color="#0000a0" title="blocked::blocked::http://www.seismicmicro.com"><span
style='color:#0000A0'>www.seismicmicro.com</span></font></a></span></font></b></strong><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><b><u><font size=1 color=black
face=Arial><span style='font-size:7.5pt;font-family:Arial;color:black;
font-weight:bold'>___________________________________________________</span></font></u></b><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><strong><b><font size=1
color=navy face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:navy'>CONTACT US TODAY for more information.</span></font></b></strong><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-align:justify'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'> </span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

</div>

</div>

</body>

</html>