<html><head></head><body>Fwiwthis is how I have done it (orby loading inlines etc.). Using protos and scripts.<br><br><div class="gmail_quote">Christoph Valentin <christoph.valentin@gmx.at> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Gesendet: Dienstag, 15. Oktober 2013 um 14:57 Uhr<br />Von: "doug sanden" <highaspirations@hotmail.com><br />An: "x3d-public@web3d.org" <x3d-public@web3d.org><br />Betreff: [X3D-Public]  games > state carryover on anchor between scenes<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">Yes it could be fun for games! If you anchor between rooms or  <br />indoor/outdoor scenes all those scenes can be be parsed separately as  <br />needed. Which may render faster depending on viewer. <br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">The idea of bundling resources in a zip file is common in game engines <br />(especially useful to distribute game mods), and as I'm
implementing a <br />game engine using X3D --- it would be cool if it would be just a <br />standard X3D feature :) </blockquote><br /><br /></blockquote>Q. for multi-scene games, how / where is game state -such as scoring, level, persona- carried over to subsequent scenes after an Anchor? Is there an SAI field on the Browser that can be set with (name,value) pairs from Script nodes/javascript, and if so which field(s)? Or is there another paradigm?</blockquote><br />[Christoph:] You could load one "master scene" by the Web3D browser, add modules/levels (whatever you call them) dynamically using the method Browser.createVrmlFromUrl() as children of a grouping node. Then you could store your state in the "master scene". You would need to define an interface between the "master scene" and your modules/levels<br /><br />Do not know whether to call this a "paradigm", it's just a possibility, and it needs more scripting than a simple anchor.<br /><br /><br /><br /><blockquote
class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Thanks,<br />Doug            <br /><hr /><br />X3D-Public mailing list<br />X3D-Public@web3d.org<br /><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></blockquote><br /><br /><hr /><br />X3D-Public mailing list<br />X3D-Public@web3d.org<br /><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html>