作业帮 > 英语 > 作业

我在用VRML做一个地球围绕太阳转动的例子

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/10 12:40:21
我在用VRML做一个地球围绕太阳转动的例子
#VRML V2.0 utf8
Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .6 .6 .6
emissiveColor .1 .1 .1
ambientIntensity .1
shininess .6
specularColor 1 1 1
transparency 0
}
}
geometry Box { size 1 10 1 }
}
]
}
Transform {
translation 0 7 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .6 .6 .6
emissiveColor .1 .1 .1
ambientIntensity .1
shininess .6
specularColor 1 1 1
transparency 0
}
}
geometry Cone { bottomRadius 2 height 4 }
}
]
}
DEF Tra53 Transform {
center -10 0 0
translation 10 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .6 .6 .6
emissiveColor .1 .1 .1
ambientIntensity .1
shininess .6
specularColor 1 1 1
transparency 0
}
}
geometry Sphere { radius 2 }
}
]
}
DEF Tim2 TimeSensor {
cycleInterval 5
enabled TRUE
loop TRUE
}
DEF Ori21 OrientationInterpolator {
key [0 .5 1]
keyValue [ 0 1 0 0 0 1 0 3.141 0 1 0 6.282]
}
ROUTE Tim2.fraction_changed TO Ori21.set_fraction
ROUTE Ori21.value_changed TO Tra53.rotation