Can I redraw only part of a scene in OpenGL?

房东的猫 提交于 2019-12-04 06:15:46

问题


I have a scene composed of many objects. Most of the objects are static, but some objects move. When a move happens it seems like I have to redraw the whole scene. It is possible for me to express some kind of compositing of the scene and redraw only some of the components of the scene?


回答1:


Render the static parts to a FBO, blit that as needed to the framebuffer, and render dynamic objects on top.



来源:https://stackoverflow.com/questions/21763661/can-i-redraw-only-part-of-a-scene-in-opengl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!