logo

     About

     News

     Download

     User guide

     FAQ

     Feedback

     Français


Extensions


In addition to the possibilities offered by the VRML/ X3D standards, Demotride supports several extensions to improve the control over the display and interaction with the scene. Those extensions are:

  • Command line arguments: supports command line arguments to specify the display size.
    • demotride <filename> -f

      Launch Demotride in full screen mode.

    • demotride <filename> -w dimX dimY posX posY

      Launch Demotride in a window of size (dimX, dimY) with the upper left corner located in (posX, posY).

The other extensions deal with VRML nodes and are:

  • Sphere: added two fields to select the type of sphere and set the number of faces.
    • field SFInt32 minFaceCnt 72 #[8..10^6]

      Specifies the minimum guaranteed face count on the created sphere.

    • field (custom) sphereType ISOCAHEDRON #[GLOBE, ISOCAHEDRON]

      Specifies the template geometry used to create the sphere. ISOCAHEDRON appears as more regular and has a more uniform resolution in terms of vertices and polygon aspects. The GLOBE model is best suited for texture and requires about 8 times less memory (at the expense of slower rendering rate).

  • Cone: added a field to set the number of faces on the side of the cone.
    • field SFInt32 sideCnt 16 #[4..400]

      Specifies the exact triangle count used to create the cone side. These are the triangles with 2 vertices at the bottom of the cone and one at the apex of the cone.

  • Cylinder: added a field to set the number of faces on the side of the cylinder.
    • field SFInt32 sideCnt 16 #[4..400]

      Similar to the Cone extension except that it uses rectangles instead of triangles.

  • PointSet: added a field to set the size of the points.
    • field SFFloat pointSize 2.0 #[min..max]

      The valid value range depends on the graphics subsystem used, but is typically [0.5..10.0].

  • IndexedLineSet: added fields to set line width and appearance (e.g. dashed, continous, etc.).
    • field SFFloat lineWidth 1.0 [min..max]

      The valid value range for lineWidth depends on the graphics subsystem used. A typical range is [0.5..10.0].

    • field SFInt32 lineStipplePattern 0xFFFF [0..0xFFFF]

      Specifies a 16-bit pattern for the line to be drawn (1 bit on = 1 line pixel drawn).

    • field SFInt32 lineStippleFactor 1 [1..255]

      Specifies a scale factor for the pattern.

  • NavigationInfo
    • Added the option to set the point of rotation of the scene when using the EXAMINE navigation type.

      By default, the center of rotation is the center of the bounding box of the world. To specify a different center of rotation, add a triplet (x,y,z) to the avatarSize field.

    • Added the "GAZE" and "GAZEPLUS" navigation types

    • Added a field to control viewpoint rotation speed for all navigation types except EXAMINE.

      exposedfield SFFloat rotationSpeed 1.0 ]0..∞[

    • Added a field to control initial cursor visibility during during the lauch of the application.

      exposedfield SFBool showCursor TRUE

    • Added a field to specify if the 'c' key controlling cursor visibility is enabled or not.

      exposedfield SFBool toggleCursor TRUE

  • KeySensor: new node allowing to program keyboard interaction

      exposedfield      SFBool   enabled                TRUE     
      exposedfield      SFBool   eventsProcessed   FALSE  
      eventout            SFInt32   keyPress           
      eventout            SFInt32   keyRelease        

      When the eventsProcessed field is TRUE, the usual keyboard interface is disabled, except for the ESC key. All the keys can then be programmed. Otherwise, the usual keys of the keyboard interface are processed, in addition to the programmed keys.

  • Anchor: Added fields and event allowing to simultaneously launch several hyperlinks.
    • eventIn SFTime activate_url

      An eventIn of type SFTime will launch the hyperlink defined by the Anchor node.

    • exposedfield SFBool newWindow FALSE

      When assigned as TRUE, the Anchor node will open the .wrl link in a new demotride window without deleting the current scene.

    • exposedfield MFInt32 size 600 600

      Specifies the size (x,y) of the new Demotride window that will open for the .wrl file. Active only when newWindow is TRUE.

    • exposedfield MFInt32 position 0 0

      Specifies the position (x,y) of the upper left corner of the new Demotride window that will open for the .wrl link. Active only when newWindow is TRUE.