|
From: Braden M. <br...@en...> - 2010-10-23 04:32:37
|
On Fri, 2010-10-22 at 18:30 +0800, stone wrote:
> In the .wrl file,
> #VRML V2.0 utf8
> # Produced by 3D Studio MAX VRML97 exporter, Version 9, Revision 1
> # Date: Fri Oct 22 17:40:01 2010
> DEF Teapot01 Transform {
> translation 0.05427 0 0.2242
> children [
> DEF Teapot01-TIMER TimeSensor { loop TRUE cycleInterval 3.333 },
> DEF Teapot01-ROT-INTERP OrientationInterpolator {
> ......
>
> ROUTE Teapot01-TIMER.fraction_changed TO Teapot01-ROT-INTERP.set_fraction
> ROUTE Teapot01-ROT-INTERP.value_changed TO Teapot01.set_rotation
> }
> Error is the last line :ROUTE Teapot01-ROT-INTERP.value_changed TO Teapot01.set_rotation
> The .wrl file is exported by 3d max 9.
The problem is that OpenVRML 0.16.x's parser doesn't make the DEF name
available for usage in a ROUTE until the end of the node body. In your
file, the problem ROUTE occurs inside the body of the node Teapot01.
I tried your file in trunk OpenVRML and it works there. I suspect this
got fixed in 0.17.0 when the Antlr-based parser was replaced with the
current Spirit-based one.
--
Braden McDaniel <br...@en...>
|