Using overlays to write on texture

Problems building or running the engine, queries about how to use features etc.
Post Reply
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Using overlays to write on texture

Post by xrgo »

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!
User avatar
dark_sylinc
OGRE Team Member
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

Post by dark_sylinc »

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.
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Using overlays to write on texture

Post by xrgo »

thanks! I'll try =)
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Using overlays to write on texture

Post by xrgo »

dark_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.
this one worked, previous ideas don't =P
Muchisisimas gracias!
Post Reply