Return to Snippet

Revision: 70476
at March 2, 2016 21:38 by smithy


Initial Code
The code for the test.x3dv is as follows:

#X3D V3.0 utf8
 
PROFILE Interactive
 
DEF TS TimeSensor {
  cycleInterval 3
  loop TRUE
}
 
DEF TG Transform {
  rotation 0 1 0 0
  children Shape {
    geometry Box {}
    appearance Appearance {
      material DEF MAT Material {
        diffuseColor 1 0 0
      }
    }
  }
}
 
DEF OI OrientationInterpolator {
  key [ 0 0.5 1 ]
  keyValue [
     0 1 0 0
     0 1 0 3.14
     0 1 0 6.28
  ]
}
 
ROUTE TS.fraction_changed TO OI.set_fraction
ROUTE OI.value_changed TO TG.rotation

Initial URL

                                

Initial Description
I'm making an app in Java that loads and displays X3DV files, I have a testing class that loads a file called test.x3dv which is a rotating red cube, and I'm using Xj3D to import it into Java. However, I have about 90 different X3D files that I want to display and it wont load in the test class as they aren't X3DV files. I was wondering if there's a way of changing X3D files into X3DV files.

Initial Title
X3D to X3DV conversion

Initial Tags

                                

Initial Language
XML