The successful implementation of the function that red cultural materials play in ideological education is hampered by a number of significant problems with their incorporation into ideological education in colleges and universities. In this paper, the virtual ideological learning environment is created using Unity3D, the three-dimensional model of the virtual intelligent body is imported, and the virtual intelligent environment perceptual field is obtained. First, the virtual ideological learning environment is modeled using 3DS MAX modeling tools, entity models, parent-child relationships of the components are adjusted, and materials are processed to obtain the three-dimensional object models, optimizing the models. By using FSM to construct the virtual intelligent body’s decision-making cognition module, enhance the intelligent body’s response time, and construct the physical models of the virtual ideological learning environment. Based on the knowledge features of red culture integration into civic and political education, learning routes are tailored and maximized.Detecting the effect of integrating red culture into Civics learning, the probability that the difficulty interval of A students’ push questions falls in the range of 60 to 80 points is 53.3%, which is slightly higher than that of B and C students, because A students’ achievements in Civics test are better than the other two, and there is a certain degree of personalization. The average score (93.24), the number of A grades (42), and the excellence rate (93.33%) of the experimental class are significantly higher than those of the control class when evaluating the students’ civics learning ability. This suggests that the integration of red culture into college students’ civics education has a positive experimental effect.