[x3d-public] External prototypes

doug sanden highaspirations at hotmail.com
Thu Mar 12 11:20:18 PDT 2015


Thanks Chrisoph, will study.
-Doug

>
> Nice to see you discussing external prototypes :)
>
> From the perspective of a user of X3D, I did my own workaround for initialization of nested external prototypes.
>
> With this workaround, the master scene gets informed, when all external prototypes have been loaded and are ready to receive events in their inner script nodes -> then the master scene sends a "basic initialization" event to all external prototypes (instances).
>
> http://members.chello.at/~christoph.valentin/DemoLayout/FrameWeb/basicInitConcept.pdf
>
> I called it "basic initialization", as opposed to "Web3D initialization" (initialize() method of the script nodes).
>
> It works
> a) when the inner proto-instance gets initialized before the routing with the parent scene is setup
> b) when the parent scene gets initialized before the inner proto-instance is ready to receive events
> c) when the parent scene and the inner proto-instance are initialized at the same time instance
> (synchronous loading from a local disk drive)
> d) with nested prototypes in all cases a) - c)
>
> I tested it with BS Contact and Instant Player, it was not necessary for Octaga Player, because this had a configuration option to "wait for all resources".
>
> KR
> Christoph
 		 	   		  


More information about the x3d-public mailing list