I am trying to Render a 3D-View onto another on a specified Position and Size. And because I can not explain it exactly, I made a graphic.

Graphic-Description of my Problem

If you could help me out, could you please also tell me how to call the case I am searching for so I can do some more research on it?

Thanks, Chris.

有帮助吗?

解决方案

You can achieve this in several ways:

  • Create alternative viewport(s) and set it before rendering each your Picture-in-picture stuff

  • Render to texture and then just draw it as textured quad (sprite)

  • Many cheat-tricks with a stencil buffer

    (links above go to native functions, but I hope you can figure out ones for your framework)

Maybe I've forget something else. Hope it helps.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top