So, from what I understand about FBOs, they are textures that can be rendered to.
So, does this mean things like Portal’s portal effect would be achieved through that?
EDIT: :o, 100th post.
So, from what I understand about FBOs, they are textures that can be rendered to.
So, does this mean things like Portal’s portal effect would be achieved through that?
EDIT: :o, 100th post.
Yup!
If you listen to the commentaries in Portal 1, they mention doing some crazy stuff with the stencil buffer to handle the effect. They obviously don’t spill all the beans on how they accomplish it, but there’s some insights in there you’ll want to pay attention to.
Also, awesome wikibook on creating portal-esque rendering with stencil buffer:
More info on FBOs here, with LWJGL and LibGDX examples: