[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [x3d-public] unload x3d file to load another with SAI



Nuno Martins wrote:

Hi

I'm loading a x3d file in xj3d using SAI but, now I need to unload one
file to load another.

Must I unload the initial x3d file to load the other, or simply replace?

To load the first x3d I use the following code, to load the next file
I simply use the same code but with different URL, is this done
correctly? One world is loaded in top of the other…

I'm getting one bug that I think will not happen if the first world is
unloaded and next load the second world, but I don't know how to do
that.



You just need to repeat the createX3DFromURL and replaceWorld calls and that should remove the old content. A quick test shows it working for simple worlds.. If its not working for you can you provide a complete example?

-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html