There exist many problems in the development of cities, such as: transportation, energy, health care, public safety, etc. It is worth for us to make some valuable researches to solve these issues. Fortunately, with the development of communication technology, microelectronics, graphics rendering technology, we can use these technologies to build a smart, efficient city for the city's future development plans and timely, effectively response to emergencies or disasters. Regardless from a technical or a political point of view, we need to make our city smarter, prosperity and progress. In this paper, we build a virtual reality system with sensor network. Make an attempt to use OpenSceneGraph, a 3D visualization platform to render data which is received by the perception of the external sensor network through network communication in real time to realize the interaction between virtual and reality world. Combining sensor network, virtual reality and network communication will create a suitable multi-dimensional information space and have a wide applicative prospect.