Hello! Ogre 2.1
I want to write simple dynamic text on 2 different textures. I want to use the overlay system because it seems simple enough...
What I had in mind is:
I have 2 workspaces, that renders nothing to a different texture each, but with overlays true. I create 2 overlaySystem and put my texts there.
The problem is that it seems that the overlays are associated with the sceneManager, do I need to have 2 sceneManagers to achieve this? can I use one different overlaySystem per workspace?
Thanks!
Using overlays to write on texture
-
- OGRE Expert User
- Posts: 1148
- Joined: Sat Jul 06, 2013 10:59 pm
- Location: Chile
- x 168
- dark_sylinc
- OGRE Team Member
- Posts: 5299
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1280
- Contact:
Re: Using overlays to write on texture
The overlay system has enough technical debt accumulated, so it's working a bit "hacky". I don't know if the OverlaySystem is actually respecting the RenderQueue groups and/or the visibility masks. If it is, you could use that to control what is rendered where.
Otherwise, the easiest hack that could work is a workspace listener that enables and disables the right overlays when it's time to render them in a pass. Using two SceneManagers sounds overkill to me.
Otherwise, the easiest hack that could work is a workspace listener that enables and disables the right overlays when it's time to render them in a pass. Using two SceneManagers sounds overkill to me.
-
- OGRE Expert User
- Posts: 1148
- Joined: Sat Jul 06, 2013 10:59 pm
- Location: Chile
- x 168
Re: Using overlays to write on texture
thanks! I'll try =)
-
- OGRE Expert User
- Posts: 1148
- Joined: Sat Jul 06, 2013 10:59 pm
- Location: Chile
- x 168
Re: Using overlays to write on texture
this one worked, previous ideas don't =Pdark_sylinc wrote:the easiest hack that could work is a workspace listener that enables and disables the right overlays when it's time to render them in a pass.
Muchisisimas gracias!