
New VRML project: INT3D System
Quote:
> Great stuff! I'm working too on self edit scene and I hope this will prove
the
> emergency to provide some toString() function that *do* print full object
fields
> or to provide a "Browser.save(selection);" method. VRML (<RM3D>) will
start to
> be useful and used when you'll be able to edit and save your change.
> Sylvain Carette
> VRML designer-composer
I agree with you fully.
Direct saving of vrml presents *no* security risks provided:
1) The file must have "#VRML V2.0 utf8" at the top.
2) The creation/linking of Java class files as disallowed.
You can always print to the console, save the log to a directory and tell
the user to rename it but this is a pain. We also need an inbuilt GZip
compresser.
The conversion of nodes to strings fields isn't even covered in the VRML 97
spec.
where node is DEF SomeNode Group{.....}
string = SomeNode;
string *should* contain DEF SomeNode Group{}
This is true in Cortona,
but not in Cosmo Player and Blaxxun Contact where it is something like
"Group{"
I had to use this method to get the names of nodes when I don't know what
they are (more accurately I don't care as long as they have one!). Had to
add code to prevent using the Script in anything but Cortona. Lucky it was
only a development tool.
What is needed is a method like:
string.entireNode(SomeNode);
which would give back Group { children [.. etc
also:
var = SomeNode.length;
is a dumb access method which prevents the use of the name "length" in a
PROTO field.
Whe also need easier ways of finding out the DEFed name and Node type of a
node without having to resort to string handling tricks.
Paul Aslin