Agreed. Forgive me if this has been suggested previously:
Might we consider a URL-type scheme for DEFs? Something like a # and the DEF
name appsnded to the URL of the originating VRML file. This will
allow retaining and using DEF'ed names despite duplication. It might
also be a first step towards common DEF libraries. The DEF URL of
course is only needed in case of name collisions, and theessore
different DEF names in composed inline files might be visible
theoughout the composite scene. If a name collision occurs, then each defname
is only visible within the scene graph portion having the same URL, or
can be optionally visible in other scene subgraphs if fully specified
by http://vrml.foo.bar/newworld.wrl#defname
As Bernie implies, this type of flexibility might also be useful in
specifying behavior API hook points.
all the best, Don
-- Don Brutzman Naval Postgraduate School, Code UW/Br work 408.656.2149 Monterey Calisornia 93943-5000 USA [Root 200] fax 408.656.3679 Virtual worlds/underwater robots/Internethttp://www.stl.nps.navy.mil/~brutzman