Hi,
Well, I must be really dumb! I cna get VNet up and running no probs
with the default files, but any attempt to understand how it works, and
accordingly replace with my own wrls ends in "EAISceneInterface can't
start: ERROR".
Could I embarrassedly ask for a hand-holding process enumeration along
the lines of "first do this, then this," etc.
To give any patient soul an insight into my denseness, the most recent
thing I tried is listed below. I tried this after repeated failed
attempts at
loading in more complex wrls via inlines, etc.
Any help greatly appreciated,
Adam
(code listing follows - the wrl loads fine, but the applet can't start)

#VRML V2.0 utf8
Transform {
  children [
    NavigationInfo {
 headlight FALSE # We'll add our own light
# avatarSize       [ 0.25, 1.6, 0.75 ]
# visibilityLimit 25.0
    }

    DEF ROOTNODE Transform {
    }

    Background {
 skyAngle [ 1.07 1.45 1.52 1.57 ]
 skyColor [ 0.00 0.00 0.30
     0.00 0.00 0.80
     0.45 0.70 0.80
     0.70 0.50 0.00
     1.00 0.00 0.00 ]
 groundAngle 1.57
 groundColor [ 0.0 0.7 0.0
     0.0 0.0 0.0 ]
    }

    DEF BIGBOX ProximitySensor {
 size  1000 1000 1000
    }

DEF onesphere Transform { translation -3 0 0 children [ Shape {
appearance Appearance { material Material { diffuseColor 0 0 1 } }
geometry Sphere { radius 1 } } ] }

#front bottom row, includes DEF'd one above
Transform { translation 2 0 0 children [ USE onesphere ] }
Transform { translation 4 0 0 children [ USE onesphere ] }
Transform { translation 6 0 0 children [ USE onesphere ] }

# angled bottom rows
Transform { translation 1 0 -1.75 children [ USE onesphere ] }
Transform { translation 2 0 -3.5 children [ USE onesphere ] }
Transform { translation 3 0 -5.25 children [ USE onesphere ] }
Transform { translation 4 0 -3.5 children [ USE onesphere ] }
Transform { translation 5 0 -1.75 children [ USE onesphere ] }

#second layer
Transform { translation 1 1.5 -1 children [ USE onesphere ] }
Transform { translation 3 1.5 -1 children [ USE onesphere ] }
Transform { translation 5 1.5 -1 children [ USE onesphere ] }
Transform { translation 2 1.5 -2.5 children [ USE onesphere ] }
Transform { translation 4 1.5 -2.5 children [ USE onesphere ] }
Transform { translation 3 1.5 -4 children [ USE onesphere ] }

#third layer
Transform { translation 2 3.15 -1.5 children [ USE onesphere ] }
Transform { translation 4 3.15 -1.5 children [ USE onesphere ] }
Transform { translation 3 3.15 -3 children [ USE onesphere ] }
Transform { translation 3 4.8 -2 children [ USE onesphere ] }

    DEF VNET Script {
      url "JSAISceneInterface.class"

      eventIn SFVec3f  position
      eventIn SFRotation orientation

      field SFNode  rootNode USE ROOTNODE
      field SFNode  viewpoint USE VIEWPOINT
      field MFString avatarNames [ "TinMan" "Angel" "HalfMoon" "Custom"
]
      field MFString avatarURLs [ "TinMan.wrl" "Angel.wrl"
"halfmoon.wrl" "" ]
      field SFInt32  port  8888

      eventOut SFBool  isConnected

      directOutput              TRUE
      mustEvaluate  TRUE
    }

  ] # end of children for world

  ROUTE BIGBOX.position_changed TO VNET.position
  ROUTE BIGBOX.orientation_changed TO VNET.orientation
  #ROUTE VNET.isConnected TO LIGHT.on
}

--

The Men Who Knew Too Much
http://tmwktm.axs.com.au
[EMAIL PROTECTED]

Reply via email to