vrml中用vrmlpad软件怎么实现这个?!请高手帮帮,好的加分

2025-01-01 10:10:41
推荐回答(1个)
回答1:

有点麻烦..给你个例子你看看吧。随时间改透明度..运动很好做哈,改坐标就哦了。一样道理。 DEF Box01 Transform { translation -33.99 0 11.65 children [ DEF touchke TouchSensor {} Transform {... DEF clock TimeSensor{loop TRUE enabled FALSE } DEF script3 Script { eventIn SFTime changtrans eventOut SFFloat set_color field SFFloat trans 0 url "vrmlscript:function changtrans() {trans+=0.15; print('attention!'); if(trans>1){trans=0; print('high 13cm,length 1000cm');} set_color=trans; }"}... appearance Appearance { material Material { diffuseColor .11 .53 .14 specularColor .06 .08 .21 emissiveColor .01 .07 .02 ambientIntensity .03 shininess .03... ROUTE touchke.touchTime TO script3.changtrans ROUTE script3.set_color TO orbl.transparency