Open ChenTianSky opened 6 months ago
Hi!
You have multiple ways (assuming two windows, but it extends to N windows):
If interactions only happen in one window and the other windows just show data:
CompositorWorkspaceListener::passPreExecute
to identify your pass (use CompositorPassDef::mIdentifier for that) and...If each window needs full functionality:
You'll need the very recent OffScreenCanvas
(needs OgreNext >= 3.0). See OffScreenCanvas2D and OffScreenCanvas3D samples.
Rather than using OffScreenCanvas::createTexture
you can create the workspace externally (one for each Window) and use OffScreenCanvas::setWorkspace
directly.
You'll get multiple secondary ColibriManagers (one OffScreenCanvas and ColibriManager per window) that are independent (you can't migrate widgets from one window to another though).
I use Ogre:: v1:: Overlay as a container to add Ogre:: v1:: TextAreaOverlayElement to different windows, but the text from multiple windows will be stacked together and rendered on each window. How can I achieve rendering different text on different windows? For example, rendering hello in window A and world in window B