How would you go about setting a viewport for rendering a camera? Ogre::Camera::setWindow doesn't seem to do anything. Think about rendering a scene from multiple points of view on the same render window, such as the typical 3dsmax look.
Thanks.
How would you go about setting a viewport for rendering a camera? Ogre::Camera::setWindow doesn't seem to do anything. Think about rendering a scene from multiple points of view on the same render window, such as the typical 3dsmax look.
Thanks.
I think you want Render to Texture
https://wiki.ogre3d.org/Intermediate+Tutorial+7
Hi, you no longer manipulate the viewport class directly.
See Samples/2.0/ApiUsage/StereoRendering
sample on how to setup rendering for multiple/different regions of the RenderTarget (that sample uses two independent cameras, one for each region, but you can also use the same camera).
We have a section for it in the manual.
Cheers
Thanks for the pointer. I wasn't considering using two workspaces. I'll give this a shot. I see I can also set the viewport offset dynamically so this will allow resizing as it will be required.
No, this is not related to render to texture.