thecaptain
10-01-2008 10:17:31
I just spend the last 5 hours trying to integrate the new version of QuickGUI (since the new rendering system) into our MMOG project, and I think I've finally gotten it to work!
However, there are of course some glitches that I'd like to work through (including the DirectX rendering thing ).
One thing I noticed was that under OpenGL, if you place a rectangle for rendering a background image for a menu or something (we do this in our game), the GUI doesn't show up! I was able to reproduce this behavior by adding this code into the demo:
Even though the rectangle is set to RENDER_QUEUE_BACKGROUND, the GUI is not showing up. This only happens on OpenGL.
I also had a question regarding QuickGUI::Image. Is there a way to simply load an image file and display it? Maybe something like img->loadImage(fighter23.png);? We have a menu screen with all sorts of icons for items, and it wouldn't really make sense to put all of these images into a skinset. If there is a way to do it already, how?
Now finally some sleep...
However, there are of course some glitches that I'd like to work through (including the DirectX rendering thing ).
One thing I noticed was that under OpenGL, if you place a rectangle for rendering a background image for a menu or something (we do this in our game), the GUI doesn't show up! I was able to reproduce this behavior by adding this code into the demo:
// Create background rectangle covering the whole screen
Ogre::Rectangle2D* mRect = new Rectangle2D(true);
mRect->setCorners(-1.0, 1.0, 1.0, -1.0);
// Render the background before everything else
mRect->setRenderQueueGroup(RENDER_QUEUE_BACKGROUND);
// Use infinite AAB to always stay visible
AxisAlignedBox aabInf;
aabInf.setInfinite();
mRect->setBoundingBox(aabInf);
SceneNode* backgroundNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("Background");
backgroundNode->attachObject(mRect);
Even though the rectangle is set to RENDER_QUEUE_BACKGROUND, the GUI is not showing up. This only happens on OpenGL.
I also had a question regarding QuickGUI::Image. Is there a way to simply load an image file and display it? Maybe something like img->loadImage(fighter23.png);? We have a menu screen with all sorts of icons for items, and it wouldn't really make sense to put all of these images into a skinset. If there is a way to do it already, how?
Now finally some sleep...