This is a patch for a problem in the compositor demo. In revision 7277 sinbad have made this change "Make compositors easier to debug by including more context in the name of derived surfaces and materials. Common names placed at the end so that comparisons still fast.", well, this caused an unexpended problem in the compositor demo. The compositor debug windows (the window that shows you the rendering of each stage of the compositor) stopped showing the preview of each compositor stage. The reason is stopped working is that cegui represents an image by a string that holds 2 values, set and image (a string that looks like this: "set:XXXX image:XXXX") and it turns out that this string is sensitive to spaces. So – when Sinbad added the viewport name to the string – he also added spaces that were a part of the viewport name, (look at OgreCompositorInstance.cpp line 475), and cegui stopped finding the right image and so on, and you didn't see the preview image anymore. I just patched the problem in the SVN head by replacing spaces with underscore in the auto generated name. Problem solved.
This is a patch for a problem in the compositor demo.
In revision 7277 sinbad have made this change "Make compositors easier to debug by including more context in the name of derived surfaces and materials. Common names placed at the end so that comparisons still fast.", well, this caused an unexpended problem in the compositor demo. The compositor debug windows (the window that shows you the rendering of each stage of the compositor) stopped showing the preview of each compositor stage.
The reason is stopped working is that cegui represents an image by a string that holds 2 values, set and image (a string that looks like this: "set:XXXX image:XXXX") and it turns out that this string is sensitive to spaces.
So – when Sinbad added the viewport name to the string – he also added spaces that were a part of the viewport name, (look at OgreCompositorInstance.cpp line 475), and cegui stopped finding the right image and so on, and you didn't see the preview image anymore.
I just patched the problem in the SVN head by replacing spaces with underscore in the auto generated name.
Problem solved.
jakzale/ogre,jakzale/ogre,jakzale/ogre,jakzale/ogre,jakzale/ogre