By using the vrml parser out of the VRML-Java3D (version 0.90.2)
browser, we are trying to read path information out of the vrml file
into Java3D. These path information are supposed to be used at a later
point in time to move a series of objects along the defined path(s).

The path definition in the VRML file looks as follows:

#VRML V2.0 utf8
DEF Path01-TIMER TimeSensor { loop TRUE cycleInterval 3.333 },
DEF Path01-POS-INTERP PositionInterpolator {
    key [0, 0.03, 0.06, 0.09, 0.12, 0.15, 0.18, 0.21, 0.24, 0.27, 0.3,
        0.33, 0.36, 0.39, 0.42, 0.45, 0.48, 0.51, 0.54, 0.57, 0.6,
        0.63, 0.66, 0.69, 0.72, 0.75, 0.78, 0.81, 0.84, 0.87, 0.9,
        0.93, 0.96, 0.99, 1, ]

    keyValue [650.4 0 -349.7, 489.4 0 -350.1, 328.5 0 -350.5, 167.5 0 -350.9,
              5.775 0 -351.9, -166.1 0 -360.2, -336.8 0 -367.7,
              -488.8 0 -361.8, -608.9 0 -331.3, -705.5 0 -278.7,
              -780.4 0 -214.2, -833.7 0 -148.2, -868.1 0 -81.74,
              -883.1 0 -9.969, -872.2 0 59.76, -828.4 0 120.1,
              -745 0 173.8, -631.1 0 221.3, -500 0 258.7, -361.4 0 282.5,
              -202.8 0 294.5, -34.68 0 295.3, 127.7 0 285, 282.3 0 264.4,
              440.1 0 233.8, 580.7 0 190.8, 682.5 0 132.9, 735.9 0 48.85,
              754.7 0 -52.87, 754.5 0 -149.9, 749.5 0 -222, 734.7 0 -276,
              707.1 0 -316.6, 666.7 0 -343.6, 650.4 0 -349.7, ] }

We tried the following:

   com.sun.j3d.loaders.Scene sc =
       com.sun.j3d.loaders.vrml97.VrmlLoader.load( fileName);

sc.getNamedObjects() returns a Hashtable of all TransformGroups in the
vrml scene but not the path information.

Any possibility of making use of VrmlScene.getDefineTable()? Trying so
just resulted in getting a series of two vrml.node.Node objects. These
are hardly useable as path objects, aren't they?

Any ideas of what might be missing here? Hints are very much
appreciated.

    Roland

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to