<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b>
Dave [<a class="moz-txt-link-freetext" href="mailto:dave@realmofconcepts.com">mailto:dave@realmofconcepts.com</a>] <br>
<blockquote cite="mid:5FABBDF282C34D368381E32A1F87C21D@D6Y4QW91"
 type="cite">
  <div class="Section1">
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <p class="MsoNormal"><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;"><b><span
 style="font-weight: bold;">Sent:</span></b> Wednesday, November 11,
2009
2:52 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> Russ Kinter<br>
  <b><span style="font-weight: bold;">Cc:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[X3D-Public] Remove
dynamically added scenes</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">Russ Kinter wrote: <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><u8:p><!--[if gte mso 9]><xml>
 <u1:OfficeDocumentSettings>
  <u1:DoNotRelyOnCSS/>
 </u1:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u2:WordDocument>
  <u2:GrammarState>Clean</u2:GrammarState>
  <u2:DocumentKind>DocumentEmail</u2:DocumentKind>
  <u2:EnvelopeVis/>
  <u2:ValidateAgainstSchemas/>
  <u2:SaveIfXMLInvalid>false</u2:SaveIfXMLInvalid>
  <u2:IgnoreMixedContent>false</u2:IgnoreMixedContent>
  <u2:AlwaysShowPlaceholderText>false</u2:AlwaysShowPlaceholderText>
  <u2:Compatibility>
   <u2:UseFELayout/>
  </u2:Compatibility>
  <u2:BrowserLevel>MicrosoftInternetExplorer4</u2:BrowserLevel>
 </u2:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:LatentStyles DefLockedState="false" LatentStyleCount="156">  </u3:LatentStyles>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u4:shapedefaults u5:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u6:shapelayout u7:ext
="edit">
  <u6:idmap u7:ext="edit" data="1"/>
 </u6:shapelayout>
</xml><![endif]-->&nbsp;</u8:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><u8:p>&nbsp;</u8:p></span></font><o:p></o:p></p>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;"> Dave
[<a moz-do-not-send="true" href="mailto:dave@realmofconcepts.com">mailto:dave@realmofconcepts.com</a>]
  <br>
  <b><span style="font-weight: bold;">Sent:</span></b> Wednesday,
November 11, 2009
2:37 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> Russ Kinter<br>
  <b><span style="font-weight: bold;">Cc:</span></b> 'Barry Nauta'; <a
 moz-do-not-send="true" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[X3D-Public] Remove
dynamically added scenes</span></font><o:p></o:p></p>
  </div>
  <u8:p></u8:p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><u8:p>&nbsp;</u8:p><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">Russ Kinter wrote: <u8:p></u8:p><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><u4:p><!--[if gte mso 9]><xml>
  <u1:OfficeDocumentSettings>
   <u1:DoNotRelyOnCSS/>
  </u1:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
  <u2:WordDocument>
   <u2:SpellingState>Clean</u2:SpellingState>
   <u2:GrammarState>Clean</u2:GrammarState>
   <u2:DocumentKind>DocumentEmail</u2:DocumentKind>
   <u2:EnvelopeVis/>
   <u2:ValidateAgainstSchemas/>
   <u2:SaveIfXMLInvalid>false</u2:SaveIfXMLInvalid>
   <u2:IgnoreMixedContent>false</u2:IgnoreMixedContent>
   <u2:AlwaysShowPlaceholderText>false</u2:AlwaysShowPlaceholderText>
   <u2:Compatibility>
    <u2:UseFELayout/>
   </u2:Compatibility>
   <u2:BrowserLevel>MicrosoftInternetExplorer4</u2:BrowserLevel>
  </u2:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
  <u3:LatentStyles DefLockedState="false" LatentStyleCount="156">  </u3:LatentStyles>
</xml><![endif]-->&nbsp;</u4:p></span></font><u8:p></u8:p><o:p></o:p></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><u4:p>&nbsp;</u4:p></span></font><u8:p></u8:p><o:p></o:p></p>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
 face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma;"> <a
 href="mailto:x3d-public-bounces@web3d.org" moz-do-not-send="true">x3d-public-bounces@web3d.org</a>
[<a href="mailto:x3d-public-bounces@web3d.org" moz-do-not-send="true">mailto:x3d-public-bounces@web3d.org</a>]
  <b><span style="font-weight: bold;">On Behalf Of </span></b>Barry
Nauta<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Wednesday,
November 11, 2009
2:22 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> Dave<br>
  <b><span style="font-weight: bold;">Cc:</span></b> <a
 href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[X3D-Public] Remove
dynamically added scenes</span></font><u4:p></u4:p><u8:p></u8:p><o:p></o:p></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><u4:p>&nbsp;</u4:p><u8:p></u8:p><o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
 face="Times New Roman" size="3"><span style="font-size: 12pt;">I have
been playing with
LOD, but that is not a viable solution.<br>
  <br>
The initial buildings are boxes, because the hires versions are heavy,
varying
from a 100k to 300k per building. LOD preloads the different scenes,
which
would be unworkable.<br>
  <br>
The only player that really works for me is Vivaty. Octaga simply
doesn't load
and BitManagement doesn't support the SAI...<br>
  <br>
Barry<u4:p></u4:p><u8:p></u8:p><o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font
 color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">[Russ
Kinter] Off the top of my head have
you tried to Inline Node as the LOD level (or Switch choice)?<u4:p></u4:p></span></font></i></b><u8:p></u8:p><o:p></o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font
 color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">You
could then dynamically change the url
of the Inline Node.</span></font></i></b><u8:p></u8:p><o:p></o:p></p>
  <u4:p></u4:p>
  <div><u8:p></u8:p>
  <div bgcolor="#ffffff" text="#000000">
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;<o:p></o:p></span></font></pre>
  </div>
  </div>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">That might now work with
Vivaty. I remember trying
that a couple years ago anyway. What you hope for is,<br>
changing the url will load the scene right then, and clearing the url
will
unload it. I would not bet on it.<o:p></o:p></span></font></p>
  <u8:p></u8:p>
  <p class="MsoNormal"><b><i><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">[Russ
Kinter] Well if it doesn&#8217;t, he could make the
Inline Node a child of a Group Node and use removeChildren<u8:p></u8:p></span></font></i></b><o:p></o:p></p>
  <p class="MsoNormal"><b><i><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">to
get rid of the old one and addChildren for a new one
using Browser.createVrlm(oops!)FromString.<u8:p></u8:p></span></font></i></b><o:p></o:p></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">Yeah, that's what the 'smart
inline' protos do. Or create...FromURL.
Still keep an eye on memory, make sure it goes<br>
down when 'remove' is done. I'm pretty sure that will work in <span
 class="SpellE">Vivaty</span>.</span></font><font color="navy"><span
 style="color: navy;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><b style=""><i style=""><font color="navy"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">[Russ
Kinter] Not to make things
overly complex for Barry, but if the memory leaks are still there,
since he is
using SAI, couldn&#8217;t he pre-write the scene graph changes and tell the
html browser to reload the root world <o:p></o:p></span></font></i></b></p>
  <p class="MsoNormal"><b style=""><i style=""><font color="navy"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">(<span
 class="GramE">this</span>
usually clears memory in my experience) and then add the new changes
once the root
is reloaded?</span></font></i></b></p>
  </div>
  </div>
</blockquote>
[DA]Yes, as a last-resort, but it's very jarring to reload everything.
So much nicer when things just happen right there.<br>
Even nicer if you rack the transparency of all incoming materials, so
it 'fades in', but that's just showmanship.<br>
</body>
</html>