Art can purify the soul and cultivate sentiment. Artists promote the dissemination and popularization of ecological awareness through the power of art. Painting has a strong visual aesthetic ideology and closely relates to people, nature, and society. Landscape oil paintings use visual metaphor and symbolic expression techniques to endow paintings with multiple and rich ecological concepts, conveying anxiety about various ecological imbalances in human society. However, the exploration of oil painting teaching has stopped in universities recently. Therefore, it is necessary to study the diversified landscape oil painting teaching mode from the perspective of ecology to promote its sustainable development. To further immerse students in nature and advance the sustainable development of oil painting teaching from an ecological perspective, teachers can utilize VR to create natural scenery by introducing the metaverse into the landscape oil painting course. However, in the 360-degree VR landscape sampling video, if the texture cannot be processed well, the student's experience will be significantly reduced. To this end, the texture synthesis of VR videos is studied. The simulation results show that the proposed texture synthesis method performs better in time and space, which undoubtedly improves the students' experience of watching VR landscape videos. Finally, this study uses questionnaires to examine the application effect of metaverse-based landscape oil painting courses. The experimental results demonstrate that metaverse-based landscape oil painting courses can increase students' sense of immersion, most strikingly, which is of great help to the improvement of grades.