Abstract:VRML is the Virtual Reality Modeling Language(Virtual Reality Model Language) for short, is a text-based description of three-dimensional environment scene description language, HTML, 3D (three dimensional) simulation. To the moving celestial objects, such as solar eclipse and moon eclipse, this paper discusses the means and methods of the use of component-based technology to build three-dimensional movement of celestial objects as well as VRML virtual scenes interact with the outside world. Because the operation of three-dimensional making software (for example 3D Max) in the tradition can’t be controlled by user in the demo and interacted in time, this paper studies to achieve the movement of celestial objects interactive method and implementation process can be achieved by the use of VRML interpolator node, sensor nodes, Script node integrated combination of high-level language (such as Javascript)in the library. The human interacts with computer with the platform. Because speed is not ideal about the complex interactive three-dimensional motion, this article concludes the movement scene is optimized by Group and inline programs.