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

发布时间:2021-03-26 11:24:49

我在用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
以上问题属网友观点,不代表本站立场,仅供参考!