vrml和html的通信技术
怎么用html中的数值传递到vrml语言script中的函数内在html页面利用M_e.Nodes("clock5").Fields("sz")=0.1;来设置vrml中的sz值怎么不对
DEF clock5 TimeSensor {
cycleInterval 1
enabled TRUE
loop TRUE
}
DEF x1fangxiangyundong Script {
eventIn SFTime yundong
field SFFloat sz 0
eventOut SFFloat chabu
field SFInt32 ini 0
field SFInt32 i 0
field SFNode x1 USE x1fangxiang
field SFNode x2 USE x2fangxiang
url "vrmlscript:
function yundong(value){
sj=value;
if((sj-ini)>=0.01)
{x1.translation[2]=-2*sz/0.5*i;
x2.translation[1]=-1.732*sz/0.5*i*0.5;
x2.translation[2]=1.732*sz/0.5*i*0.5*0.866;
i++;
ini=sj;}}
"}
ROUTE clock5.time TO x1fangxiangyundong.yundong
补充:Java , Java相关