Xj3D DIS Examples

An automated entity geometry creator

#X3D V3.0 utf8

PROFILE Immersive
COMPONENT xj3d_DIS:1

DEF EntityManager DISEntityManager {
   address "224.2.181.145"
   port 62040
   siteID 0
   applicationID 1
   mapping [
      DISEntityTypeMapping {
          domain 1
          country 225
          category 1
          url ["usatank.x3d"]
      }
      DISEntityTypeMapping {
          domain 3
          country 225
          category 4
          url ["ddg.x3d"]
      }
      DISEntityTypeMapping {
          domain 1
          url ["land.x3d"]
      }
      DISEntityTypeMapping {
          domain 3
          url ["surface.x3d"]
      }
  ]
}

DEF EntityHolder Group {
}

ROUTE EntityManager.addedEntities TO EntityHolder.addChildren
ROUTE EntityManager.removedEntities TO EntityHolder.removeChildren

A user scripted entity geometry creator

#X3D V3.0 utf8

PROFILE Immersive
COMPONENT xj3d_DIS:1

DEF EntityManager DISEntityManager {
   address "224.2.181.145"
   port 62040
   siteID 0
   applicationID 1
}

DEF EntityHolder Group {
}

# This script creates geometry based on entityType params
DEF EntityProcessor Script {
   directOutput TRUE
   inputOutput MFNode addedEntities []
   url ["EntityProcessor.class"]
}

ROUTE EntityManager.addedEntities TO EntityHolder.addChildren
ROUTE EntityManager.removedEntities TO EntityHolder.removeChildren
ROUTE EntityManager.addedEntities TO EntityProcessor.addedEntities


[ Xj3D Homepage | Xj3D @ Web3d | Screenshots | Dev docs | Dev Releases | Contributors | Getting Started ]
Last updated: $Date: 2005-03-04 21:22:44 $