Multi-viewport rendering bug

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

ianstangoe
Quite a regular
Quite a regular
Posts: 79
Joined: Wed Jan 09, 2008 11:06

Multi-viewport rendering bug

Postby ianstangoe » Wed Aug 11, 2010 18:54

Hi CE,

Specifically the CEGUIRQListener approach to rendering duplicate gui's in multiple viewports:

I have a dual viewport setup for passive stereo applications and came across a bug, whereby I was getting a mysterious 3rd rendering of gui elements at a peculiar position and aspect ratio. Turns out it was linked to a scene that contained shadows, the confusing thing was that, when switching between two different scene's within the same app, the bug would disappear and reappear depending on which scene you had switched to :lol:

Anyway, I debugged it and noticed that an 'extra' SHADOW render was being done which was the same renderqueue as my gui elements renderqueue, presumably because OGRE internally assigns this pass to the last renderqueue in use, in my case my gui elements :( The problem is that the renderqueue my gui resides in is fired twice causing the queue_id check to pass and rendering my gui an extra time, on top of that the viewport dimensions in this call seem to be the size as the main window, so I get an extra large set of gui elements appear on top of my scene! :evil:

To fix it for now I do a check of the invocation string=="SHADOW", however this doesn't seem like a solution and I haven't looked into OGRE yet to see if there could be other internal operations that do the same thing, so I was wondering if you had any ideas for a better method of avoiding this problem?

As I understand it, theres not a ready-made solution for multiple viewport rendering built-in to 0.7.x yet is there? i.e. split-screen multi-viewport gui rendering isn't implemented is it?

I'm going to have a think on it, so this is just a heads up in case anybody else uses this approach and gets caught out, it was quite a head scratcher I can tell ya! :lol:

Best Regards,

Ian.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Multi-viewport rendering bug

Postby CrazyEddie » Thu Aug 12, 2010 12:10

Thanks for posting. It's an interesting issue :)

I have not looked into it at all, and no better solutions come to me off the top of my head, though I imagine that a better solution would exist.

As I understand it, theres not a ready-made solution for multiple viewport rendering built-in to 0.7.x yet is there? i.e. split-screen multi-viewport gui rendering isn't implemented is it?

Yeah, that's right. 0.7.x is/was supposed to be getting better support for what I call multiple roots, which would enable various things to be achieved including rendering a layout to multiple targets, though at present I have no estimate as to when this will actually get put in.

Let us know if you discover anything else interesting as far as this issue goes.

CE.

ianstangoe
Quite a regular
Quite a regular
Posts: 79
Joined: Wed Jan 09, 2008 11:06

Re: Multi-viewport rendering bug

Postby ianstangoe » Thu Aug 12, 2010 14:57

Will do. :)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 7 guests