> 3) Routes
> Can a FreeWRL Javascript function add a new entry to the routing table ?
Not sure. Might not be a problem - looks like the function addRoute() is defined.
The problem I have is getting access to the nodes in javascript:
Flux can do this in javascript:
tn = scene.getNode('Touch');
sn = scene.getNode('jumpScenes');
scene.addRoute(tn,'touchTime',sn,'jump');
But freerwl doesn't seem to support the getNode() or getNodefromName() in javascript - just EAI and SAI.
Could maybe add it from these hints...
EAIHelpers.c L.253 EAI_GetNode - calls X3DParser_getNodeFromName(str) or parser_getNodeFromName(str)
X3DParser.c L.254 X3DParser_getNodeFromName(char *) return DEFNameIndex(name,NULL,FALSE)
jsVRMLBrowser.c need to add it in a few places
-L.508 similar to VrmlBrowserCreateVrmlFromURL which builds an X3D_Node you want to fetch an X3D_Node
-L.94 add it to the BrowserFunctions table
In both flux and freewrl I also have trouble passing in nodes through fields in X3D as is done here...
http://www.web3d.org/x3d/content/examples/Basic/development/_pages/page14.html
...DEF='Touch' ...
...
flux and freewrl complain about 'children of a script node' and doesn't activate the script. See Scene1.x3d.
>
> 4) URLs
> Can a FreeWRL Javascript function load a new world ?
>
Browser.loadURL(urlStrings,' '); //urlStrings is an MFString field of the script node, containing value='"Scene2.x3d"'
This works in freewrl except after it loads the scene, it reports a problem and can't load back - see attached Scene1.x3d,Scene2.x3d
Note Anchors are another way to load scenes and that works well in freewrl - no problem - see Scene_x.x3d,Scene_y.x3d
(but in flux it gets confused and goes through a browser to download the file and you end up saying which program you want to load it with or save it)
(flux - the version I'm using - doesn't support loadURL() in javascript, but does through the SAI )
-D