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

bigstoneetp 1年前 已收到1个回答 举报

奶茶榕 幼苗

共回答了19个问题采纳率:94.7% 举报

#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

1年前

7
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.055 s. - webmaster@yulucn.com