[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [www-vrml] Re: [Vrspace-dev] Cortona createVrmlFromURL bug test code
>
> I posted the code at http://www.vrspace.org/downloads/CortonaTest.zip .
404.
Try again, was called CortonaTest.ZIP on server, oops.
> Incidentally, I did notice another bug, but in Contact. It seems
> that Contact doesn't always call the callback function after processing
> a removeChildren event. On the other hand, Cortona seems to do this
> correctly.
Absent the code, let me see if I understand this...
So the callback is supposed to happen once the resource has been loaded;
but you're calling createVrmlFromURL frequently enough that it hasn't
finished loading one resource before you request another. And in this
case Cortona effectively interrupts loading of the previously requested
resource; the field value of the destination node (effectively) never
changes; and so you never get your callback.
Negative, the object is always loaded into the scene, but sometimes
there is no callback.
You make twenty calls, you get twenty objects, but only about 10 callbacks
(its random)...
I don't have a copy of the Marrin EAI spec handy; but here's what the
VRML97 spec says about Browser.createVrmlFromURL (4.12.10.10):
The createVrmlFromURL() instructs the browser to load a VRML
scene description from the given URL or URLs. The VRML file
referred to shall be self-contained (i.e., USE statements inside
the string may refer only to nodes DEF'ed in the string, and
non-built-in node types used by the string shall be prototyped
using EXTERNPROTO or PROTO statements inside the string). After
the scene is loaded, event is sent to the passed node returning
the root nodes of the corresponding VRML scene. The event
parameter contains a string naming an MFNode eventIn on the
passed node.
If the callback is supposed to happen "after the scene is loaded" and
the scene is never loaded, presumably the callback would never happen.
So Cortona's behavior strikes me as reasonable.
See above.
Perhaps you should be structuring your code only to make a subsequent
call to createVrmlFromURL after getting the callback from a previous
one.
As a note, this would be awful. Loading a big space sequentially can
take
big time. Our spaces are composed of lots of little files, so
simultaneously downloads is
essential.
Regards,
Rob
--
Braden McDaniel e-mail: <braden@endoframe.com>
<http://endoframe.com> Jabber: <braden@jabber.org>
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html