#VRML V2.0 utf8 # # copyright (c) 1997,1998 stephen f. white # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. PROTO VNetInfo [ exposedField MFString avatarNames [] exposedField MFString avatarURLs [] exposedField SFInt32 port 8888 exposedField SFBool isConnected FALSE exposedField SFNode root NULL ] { Group {} } 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 VIEWPOINT Viewpoint { description "one" position 0 0 10 orientation 0 1 0 0 } Viewpoint { description "two" position 8.660254 0 -5 orientation 0 1 0 2.0943951 } Viewpoint { description "three" position -8.660254 0 -5 orientation 0 1 0 4.1887902 } DEF LIGHT DirectionalLight { # First child direction 0 -1 -0 # Light illuminating the scene ambientIntensity 0.7 on FALSE } DEF sphere Transform { # Second child - a red sphere translation 3 0 1 children [ Shape { geometry Sphere { radius 2.3 } appearance Appearance { material DEF sphereMat Material { diffuseColor 1 0 0 } # Red } } ] } DEF box Transform { # Third child - a blue box translation -2.4 .2 1 rotation 0 1 1 .9 children [ Shape { geometry Box {} appearance Appearance { material Material { diffuseColor 0 0 1 } # Blue } } ] } DEF VNET VNetInfo { avatarNames [ "The Head" "TinMan" "Angel" "HalfMoon" "vlastni" ] avatarURLs [ "kiwano.wrl" "TinMan.wrl" "Angel.wrl" "halfmoon.wrl" "" ] port 8888 root USE ROOTNODE } ] # end of children for world ROUTE VNET.isConnected TO LIGHT.on }