High-efficiency teaching can improve students' understanding of knowledge and improve teaching efficiency. For traditional astronomical knowledge teaching content, observation of the weather in the starry sky, serious night light pollution, and the safety of organization activities at night. This article uses Starry Sky Teaching as the object. Based on HTC Vive, it uses virtual reality Unity 3D technology to explore the development of virtual reality stars' observation learning scenes. The system has been applied to the teaching of starry sky in primary and secondary schools, which effectively improves the quality and teaching effect of classroom teaching, deepens students' understanding of astronomical knowledge, and helps technology promotion, and contribute to the development of virtual reality teaching theory.