永发信息网

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

答案:2  悬赏:60  手机版
解决时间 2021-03-08 03:23
  • 提问者网友:爱了却不能说
  • 2021-03-07 20:03
【vrml】我在用VRML做一个地球围绕太阳转动的例子
最佳答案
  • 五星知识达人网友:躲不过心动
  • 2021-03-07 21:01
【答案】 #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楼网友:北方的南先生
  • 2021-03-07 22:06
好好学习下
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯