14340180138——施睿

VRML的初步实践

根据网上的VRML教程制作了一扇门

#VRML V2.0 utf8 Transform{ translation 0 2 0.4 children[ Shape{ appearance Appearance{ material Material{diffuseColor 0.5 0.5 1} } geometry Text{ string["WELCOME"] fontStyle FontStyle{ family "TYPEWRITER" style "ITALIC" size 2 justify "MIDDLE" } } } ] } Shape{ appearance Appearance{ material Material{diffuseColor 0.3 0.2 0.1} } geometry Box{ size 8.0 15.0 0.75 } } Transform{ translation 0 0 0.4 children[ Shape{ appearance Appearance{ material DEF Bmeterial Material{diffuseColor 0.8 0.8 0.8} } geometry Sphere{radius 0.8} } DEF Clock TimeSensor{ cycleInterval 3.0 loop TRUE } DEF Bcolorpath ColorInterpolator{ key[0.0 0.33 0.67 1] keyValue[1 0 0,0 1 0,0 0 1,1 0 0] } ] } ROUTE Clock.fraction_changed TO Bcolorpath.set_fraction ROUTE Bcolorpath.value_changed TO Bmeterial.set_diffuseColor

动画效果如下(转换格式的时候失真了): 侧面:

results matching ""

    No results matching ""