[x3d-public] ProtoInstance problem in VRML97, ClassicVRML conversions fixed
Don Brutzman
brutzman at nps.edu
Mon Sep 4 19:36:43 PDT 2017
None of the rules are changed. None of the XML .x3d versions or specifications
are changed.
The only change was a bugfix to remove excess output produced by XSLT conversion
stylesheet X3dToVrml97.xslt, which is used for converting XML .x3d scenes into
either VRML97 .wrl scenes or ClassicVRML .x3dv scenes.
No effect on X3DJSAIL since it doesn't use the stylesheet, rather it has
serializer outputs for .x3d .x3dv and .wrl formats. No effect on class
hierarchy in X3D Unified Object Model.
Syntax and semantics for DEF/USE in VRML syntax are well described by the
specifications, VRML Sourcebook, etc. No change there either.
You may be thinking of the following Mantis issue, which is almost (but not yet
fully) resolved/implemented:
19776-1 (XML) 4.3.10 ProtoInstance and fieldValue syntax -
ProtoInstance USE requirement for name field should be removed
http://www.web3d.org/member-only/mantis/view.php?id=1168
We should finish that one on weekly Mantis issue call this Thursday, I hope.
You are welcome to join us if you want.
On 9/4/2017 4:37 PM, John Carlson wrote:
> I guess this means that name is not a required field in ProtoInstance? Or not?
> Is this updated in X3DJSAIL yet? Are we hunting down the name via USE,
> requiring name, or creating a new tag in XML? And a new class inherited from
> ProtoInstance in Java? Does the code generating X3DJSAIL code need to find the
> name and populate it? What if USE is used and name is wiped out?
>
> Thanks,
>
> John
>
> Any decision made that I can take action on?
>
> On Sep 4, 2017 6:27 PM, "Don Brutzman" <brutzman at nps.edu
> <mailto:brutzman at nps.edu>> wrote:
>
> Found and fixed a longstanding undetected error in the X3D to (Classic) VRML
> conversion spreadsheet: prototype instances mistakenly had their name
> repeated as a field.
>
> Example scene:
>
> http://x3dgraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/CircleFishPrototypeIndex.html
> http://x3dgraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/CircleFishPrototype.x3dv
> http://x3dgraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/CircleFishPrototype.wrl
>
> original source .x3d excerpt:
>
> <ProtoInstance name='CircleFish'/>
>
> mistakenly/inadvertently translated as:
>
> CircleFish {
> name "CircleFish "
> }
>
>
> now correctly translated as:
>
> CircleFish {
> }
>
> Please update any local archives you might have.
>
> http://www.web3d.org/x3d/content/examples/X3dResources.html#Examples
>
> Trouble reports with VRML97/ClassicVRML test suite examples and conversions
> are always welcome. We don't have a validator for these, so issues are welcome.
>
> Have fun with VRML97 and ClassicVRML prototypes! 8)
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list