摘要
利用单纯的VRML语言只能实现静态的三维场景或简单的动画,而不能实现复杂的动画。VRML提供了一个Script脚本节点,通过该节点中的url域并利用Java、JavaScript等语言编写程序,可以在VRML场景中实现比较复杂的动画;Java类包中提供的EAI是增强VRML场景与外部环境通信和融合能力的高层次类包,通过EAI并利用Java编程,可实现对VRML场景的访问并实现可控制的复杂动画。文章依据两个事例,论述了在VRML场景中实现复杂动画的方法及过程。实例表明,通过Script节点和EAI可在VRML虚拟场景中实现可控制的、交互性好的复杂动画。
Using VRML can only realize static three_dimensional scenes or simple animations, but can not realize complex animations. VRML provides a Script node, using its "url" field and programing by Java and JavaScript can realize complex animations in the VRML scene. EAI in the Java classes can enhance the connection and amalgamation of VRML scene and external environment, so using it and programming by Java can visit the objects in the VRML scenes. According to the two examples in this paper, the method and the process of complex animations are discussed. The instances indicate that using Script node and EAI can realize controllable and altemant complex animations in VRML scene.
出处
《科技信息》
2007年第19期62-64,共3页
Science & Technology Information