#X3D V3.0 utf8 PROFILE Interchange META "generator" "castle-model-viewer, https://castle-engine.io/castle-model-viewer" META "source" "city.x3dv" DEF Camera Viewpoint { description "Flying camera" position 0 1 0 orientation 1 0 0 -0.5 } Viewpoint { description "City plan" position 0 20 0 orientation 0 1 1 3.1400001049041748 } PROTO House [ initializeOnly SFVec3f position 0 0 0 initializeOnly SFFloat height 4 inputOnly SFFloat set_height ] { DEF Trans Transform { children [ DEF House Shape { appearance Appearance { material Material { } texture PixelTexture { image 3 4 1 0x40 0x40 0x40 0x40 0xFF 0xFF 0x40 0xFF 0xFF 0x40 0x40 0x40 } textureTransform DEF TexTrans TextureTransform { scale 15 5 } } geometry IndexedFaceSet { coord Coordinate { point [ -1 0 -1, -1 0 1, 1 0 -1, 1 0 1, -1 1 -1, -1 1 1, 1 1 -1, 1 1 1, ] } coordIndex [ 0, 1, 5, 4, -1, 1, 3, 7, 5, -1, 3, 2, 6, 7, -1, 2, 0, 4, 6, -1, ] texCoord TextureCoordinate { point [ 0 0, 1 0, 1 0, 0 0, 0 1, 1 1, 1 1, 0 1, ] } } } DEF Switcher Switch { whichChoice 0 children [ Group { children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry IndexedFaceSet { coord Coordinate { point [ -1 1 -1, -1 1 1, 1 1 -1, 1 1 1, ] } coordIndex [ 0, 1, 3, 2, ] } } DEF AdvTimer TimeSensor { cycleInterval 2.5 } DEF AdvInt OrientationInterpolator { key [ 0, 1, ] keyValue [ 0 1 0 -1.5700000524520874, 0 1 0 1.5700000524520874, ] } Billboard { children DEF Advertising Transform { translation 0 1 0 children Shape { appearance Appearance { material DEF AdvMat Material { diffuseColor 0 0 0 } } geometry DEF AdvText Text { fontStyle FontStyle { family "SANS" justify [ "MIDDLE", "END", ] } } } } } ] ROUTE AdvTimer.fraction_changed TO AdvInt.set_fraction ROUTE AdvInt.value_changed TO Advertising.set_rotation } Shape { appearance Appearance { material Material { } texture PixelTexture { image 2 8 3 0xFFFF00 0x000000 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 } textureTransform TextureTransform { scale 1 0.125 } } geometry IndexedFaceSet { creaseAngle 1 coord Coordinate { point [ -1 1 -1, -1 1 1, 1 1 -1, 1 1 1, -0.5 1 -0.20000000298023224, -0.5 1 0.20000000298023224, -0.20000000298023224 1 0.5, 0.20000000298023224 1 0.5, 0.5 1 0.20000000298023224, 0.5 1 -0.20000000298023224, 0.20000000298023224 1 -0.5, -0.20000000298023224 1 -0.5, -0.5 0.5 -0.20000000298023224, -0.5 0.5 0.20000000298023224, -0.20000000298023224 0.5 0.5, 0.20000000298023224 0.5 0.5, 0.5 0.5 0.20000000298023224, 0.5 0.5 -0.20000000298023224, 0.20000000298023224 0.5 -0.5, -0.20000000298023224 0.5 -0.5, -0.5 0 -0.20000000298023224, -0.5 0 0.20000000298023224, -0.20000000298023224 0 0.5, 0.20000000298023224 0 0.5, 0.5 0 0.20000000298023224, 0.5 0 -0.20000000298023224, 0.20000000298023224 0 -0.5, -0.20000000298023224 0 -0.5, ] } coordIndex [ 0, 1, 5, 4, -1, 1, 3, 7, 6, -1, 3, 2, 9, 8, -1, 2, 0, 11, 10, -1, 0, 4, 11, -1, 1, 6, 5, -1, 3, 8, 7, -1, 2, 10, 9, -1, 4, 5, 13, 12, -1, 5, 6, 14, 13, -1, 6, 7, 15, 14, -1, 7, 8, 16, 15, -1, 8, 9, 17, 16, -1, 9, 10, 18, 17, -1, 10, 11, 19, 18, -1, 11, 4, 12, 19, -1, 12, 13, 21, 20, -1, 13, 14, 22, 21, -1, 14, 15, 23, 22, -1, 15, 16, 24, 23, -1, 16, 17, 25, 24, -1, 17, 18, 26, 25, -1, 18, 19, 27, 26, -1, 19, 12, 20, 27, -1, ] texCoord TextureCoordinate { point [ -1 3, 3 3, 7 3, 11 3, 15 3, 0 0, 2 0, 4 0, 6 0, 8 0, 10 0, 12 0, 14 0, 16 0, 0 4.5, 2 4.5, 4 4.5, 6 4.5, 8 4.5, 10 4.5, 12 4.5, 14 4.5, 16 4.5, 0 9, 2 9, 4 9, 6 9, 8 9, 10 9, 12 9, 14 9, 16 9, ] } texCoordIndex [ 0, 1, 6, 5, -1, 1, 2, 8, 7, -1, 2, 3, 10, 9, -1, 3, 4, 12, 11, -1, 1, 7, 6, -1, 2, 9, 8, -1, 3, 11, 10, -1, 4, 13, 12, -1, 5, 6, 15, 14, -1, 6, 7, 16, 15, -1, 7, 8, 17, 16, -1, 8, 9, 18, 17, -1, 9, 10, 19, 18, -1, 10, 11, 20, 19, -1, 11, 12, 21, 20, -1, 12, 13, 22, 21, -1, 14, 15, 24, 23, -1, 15, 16, 25, 24, -1, 16, 17, 26, 25, -1, 17, 18, 27, 26, -1, 18, 19, 28, 27, -1, 19, 20, 29, 28, -1, 20, 21, 30, 29, -1, 21, 22, 31, 30, -1, ] } } ] } DEF FrontStreet Shape { geometry IndexedFaceSet { coord Coordinate { point [ -1 0 1, -2 0 2, -1 0 3, 1 0 3, 2 0 2, 1 0 1, ] } coordIndex [ 0, 1, 2, -1, 0, 2, 3, 5, -1, 3, 4, 5, -1, ] texCoord DEF StrTex TextureCoordinate { point [ 0 0.25, 0.5 0, 1 0.25, 1 0.75, 0.5 1, 0 0.75, ] } } } DEF RightStreet Shape { geometry IndexedFaceSet { coord Coordinate { point [ 1 0 1, 2 0 2, 3 0 1, 3 0 -1, 2 0 -2, 1 0 -1, ] } coordIndex [ 0, 1, 2, -1, 0, 2, 3, 5, -1, 3, 4, 5, -1, ] texCoord USE StrTex } } ] } } Group { children [ DirectionalLight { intensity 0.5 direction 2 2 1 } DirectionalLight { intensity 0.5 direction -2 -2 -1 } DEF Sw1 Switch { whichChoice 0 children DEF Main Group { children [ House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } House { } DEF Fogs Group { } ] } } DEF Sw2 Switch { whichChoice 0 children House { } } ] }