user2771609
user2771609

Reputation: 1903

Can I redraw only part of a scene in OpenGL?

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?

Upvotes: 0

Views: 467

Answers (1)

genpfault
genpfault

Reputation: 52083

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

Upvotes: 1

Related Questions