| Braden McDaniel 2006-11-05, 11:33 pm |
| On Thu, 24 Aug 2006 16:10:03 +0000, Joerg Scheurich aka MUFTI wrote:
>
>
> I think, the "world entry script" approach by cosmoworlds1.02/cosmoplayer
> would be a good idea.
> AFAIK in this approach, the start of the initialize() of a (the last ?)
> Scripting node is delayed since all further downloads are completed.
>
> For a browser and browserplugin (not a API) like openvrmls lookat, it would be
> usefull, to have something like a ENABLE_WORLD_ENTRY_SCRIPT environment
> variable and a check if it is set.
[Sorry for the delayed response. I wanted to think about this one; and
then it kind of fell off my radar.]
Even if worlds that use such features don't include any browser-specific
syntax, reliance on this behavior means they won't work as designed in a
browser that doesn't implement it.
My preference would be to pursue such functionality via LoadSensor. A
native implementation of LoadSensor can be referenced via EXTERNPROTO in a
VRML97 world. The advantages to this approach:
* It leverages the standard mechanism for extending VRML97.
* It should be easy to add for browsers that can handle both VRML97 and
X3D content.
* There's a specification for its behavior.
--
Braden McDaniel e-mail: <braden@endoframe.com>
<http://endoframe.com> Jabber: <braden@jabber.org>
|