#VRML V1.0 ascii Separator { Rotation { rotation 1 1 0 1} # all length = 1.5 DEF blue Material { emissiveColor 0.2 0.2 0.8 } DEF red Material { emissiveColor 0.8 0.2 0.2 } DEF yellow Material { emissiveColor 1 1 0 } DEF Dark Material { ambientColor 0 0 1 } DEF Steklo Separator { #steklo Separator{ # конус, Material { emissiveColor 0.2 0.8 0.2 transparency 0.7} Scale { scaleFactor 1 1 0.03} Cone { height 0.2 bottomRadius 0.1 } } # end of konus Separator { # cube Translation {translation 0.05 0 0 } USE blue Cube { height 0.2 width 0.1 depth 0.01 } } # end of cube }# end of steklo Separator { Translation { translation 0 0 0.3 } USE Steklo } #######-krisha Separator { USE blue Translation { translation 0.05 0.1 0.15 } Cube { height 0.01 width 0.1 depth 0.31 } } #######-ZAD KABini Separator { USE blue Translation { translation 0.1 -0.045 0.15 } Cube { height 0.3 width 0.01 depth 0.31 } } #######-steklo pereda Separator { Material { emissiveColor 0.2 0.8 0.2 transparency 0.7} Rotation {rotation 0 0 1 2.7 } Translation { translation 0.04 0.02 0.15 } Cube { height 0.215 width 0.01 depth 0.3 } } #######-низ кабины Separator { USE blue Translation { translation -0.02 -0.12 0.15 } Cube { height 0.15 width 0.25 depth 0.31 } } ########### DEF DVER Separator { USE blue Translation { translation 0.05 -0.07 0.305 } Rotation {rotation 0 0 1 1.57} Cylinder { height 0.03 radius 0.005 } } DEF TGD Separator { USE blue Translation { translation 0 -0.07 0.31 } Cube {width 0.03 height 0.03 depth 0.005} } DEF BBB Separator { USE blue Translation { translation -0.13 -0.15 0.31 } Cube {width 0.06 height 0.08 depth 0.005} } ########### -влепим фару DEF FARA Separator { Translation { translation -0.15 -0.075 0.02 } Scale {scaleFactor 0.2 1 1} USE yellow Sphere {radius 0.025} } ########### -влепим фару номер 2 Separator { Translation { translation 0 0 0.26 } USE FARA } ########### - решетка радиатора DEF RESE Separator { USE Dark Translation { translation -0.17 -0.12 0.15 } Rotation {rotation 1 0 0 1.57} Cylinder { height 0.25 radius 0.005 } } Separator { Translation { translation 0 -0.02 0 } USE RESE Translation { translation 0 -0.02 0 } USE RESE } # конец горизонатльных решеток DEF VERT Separator { USE Dark Translation { translation -0.175 -0.14 0.03 } Cylinder { height 0.05 radius 0.005 } } Separator { Translation { translation 0 0 0.05 } USE VERT Translation { translation 0 0 0.05 } USE VERT Translation { translation 0 0 0.05 } USE VERT Translation { translation 0 0 0.05 } USE VERT Translation { translation 0 0 0.05 } USE VERT } #######-бампер Separator { USE blue Translation { translation -0.15 -0.12 0.15 } Rotation {rotation 1 0 0 1.57 } Cylinder { height 0.31 radius 0.02 } } Separator { USE blue Translation { translation -0.15 -0.18 0.15 } Rotation {rotation 1 0 0 1.57 } Cylinder { height 0.31 radius 0.02 } } Separator { USE blue Translation { translation -0.15 -0.15 0.15 } Cube { height 0.06 width 0.04 depth 0.31 } } ##########Включим колеса DEF OS Separator { Separator { Translation {translation 0 -0.25 0.015 } DEF KOLESO #переднее дальнее Separator { DEF PROT Separator{ Material { emissiveColor 0.2 0.2 0.2 } Rotation {rotation 1 0 0 1.57} Translation {translation 0.075 0 0 } Cylinder {height 0.058 radius 0.01} } Rotation {rotation 0 0 1 2.4} Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 0 0 1 0.4} USE PROT Rotation {rotation 1 0 0 1.57 } Separator{ Material { emissiveColor 0.2 0.2 0.2 } Cylinder { height 0.06 radius 0.08} Material { emissiveColor 1 0 0 } Cylinder { height 0.065 radius 0.04} } }# конец def колесо } ########## переднее ближнее Separator { Translation {translation 0 -0.25 0.285 } USE KOLESO } ########## и между ними ось!! Separator { Translation {translation 0 -0.25 0.15 } Cylinder { height 0.03 radius 0.01 } Rotation {rotation 1 0 0 1.57 } Cylinder { height 0.3 radius 0.01 } } } #end def OS ########## и теперь кузов!!!! ########## низ Separator { USE blue Translation { translation 0.3 -0.18 0.15 } Cube { height 0.03 width 0.4 depth 0.32 } } ########## бока Separator { USE red Translation { translation 0.3 -0.12 0 } DEF BOK Separator { Cube { height 0.15 width 0.4 depth 0.01 } DEF POLOSA Separator { Rotation {rotation 0 0 1 1.57} Cylinder {radius 0.01 height 0.4} } Translation {translation 0 -0.03 0} USE POLOSA Translation {translation 0 0.06 0} USE POLOSA Translation {translation 0 0.03 0} USE POLOSA } } Separator { USE red Translation { translation 0.3 -0.12 0.3 } USE BOK } ########## зад кузова Separator { USE red Translation { translation 0.49 -0.11 0.155 } Cube { height 0.12 width 0.01 depth 0.31 } Translation {translation 0 0.05 0} DEF POLOSA Separator { Rotation {rotation 1 0 0 1.57} Cylinder {radius 0.01 height 0.31} } Translation {translation 0 -0.03 0} USE POLOSA Translation {translation 0 -0.03 0} USE POLOSA Translation {translation 0 -0.03 0} USE POLOSA } Separator { Translation { translation 0.4 0 0 } USE OS } } }