i don't see anything

kaolite

11-01-2010 13:24:18

Hi,

I have tryed to use myGUI in my ogre application. I have read the wiki and done the same thing but I don't see anything. Is there something special to do after loading :
m_ogreMyGuiPlatform=new MyGUI::OgrePlatform();
m_ogreMyGuiPlatform->initialise(OgreEngine::getInstance()->m_auxRenderWindow,OgreEngine::getInstance()->m_sceneMgr); // mWindow is Ogre::RenderWindow*, mSceneManager is Ogre::SceneManager*
m_ogreMyGuiPlatform->getRenderManagerPtr()->setActiveViewport(1);
m_myGui=new MyGUI::Gui();
m_myGui->initialise();
MyGUI::LayoutManager::getInstance().load("debug.layout");

I have multiple scene and multiple viewport .. is it related ?
I have open the myGUI log file and it seems that all is ok ... the ressource file are finded ..

my.name

11-01-2010 13:46:32

show log

Altren

11-01-2010 13:55:07

Are you sure that your active viewport is 1st ? May be you shouldn't call m_ogreMyGuiPlatform->getRenderManagerPtr()->setActiveViewport(1); ?

kaolite

11-01-2010 14:00:01

Yes I have tryed without m_ogreMyGuiPlatform->getRenderManagerPtr()->setActiveViewport(1); .. it's the same ... and I don't see anything on any viewport


Here is the log :
----------------------------------------------------------------------------------------------------------------------------------
loging report for : 01/11/2010 13:56:11
----------------------------------------------------------------------------------------------------------------------------------

13:56:11 | Platform | Info | * Initialise: OgreRenderManager | .\src\MyGUI_OgreRenderManager.cpp | 27
13:56:11 | Platform | Info | OgreRenderManager successfully initialized | .\src\MyGUI_OgreRenderManager.cpp | 55
13:56:11 | Platform | Info | * Initialise: OgreDataManager | .\src\MyGUI_OgreDataManager.cpp | 46
13:56:11 | Platform | Info | OgreDataManager successfully initialized | .\src\MyGUI_OgreDataManager.cpp | 50
13:56:11 | Core | Info | * Initialise: Gui | .\src\MyGUI_Gui.cpp | 82
13:56:11 | Core | Info | * MyGUI version 3.1.0 | .\src\MyGUI_Gui.cpp | 86
13:56:11 | Core | Info | * Initialise: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 43
13:56:11 | Core | Info | ResourceManager successfully initialized | .\src\MyGUI_ResourceManager.cpp | 51
13:56:11 | Core | Info | * Initialise: LayerManager | .\src\MyGUI_LayerManager.cpp | 45
13:56:11 | Core | Info | LayerManager successfully initialized | .\src\MyGUI_LayerManager.cpp | 53
13:56:11 | Core | Info | * Initialise: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 66
13:56:11 | Core | Info | WidgetManager successfully initialized | .\src\MyGUI_WidgetManager.cpp | 105
13:56:11 | Core | Info | * Initialise: InputManager | .\src\MyGUI_InputManager.cpp | 42
13:56:11 | Core | Info | InputManager successfully initialized | .\src\MyGUI_InputManager.cpp | 59
13:56:11 | Core | Info | * Initialise: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 44
13:56:11 | Core | Info | SubWidgetManager successfully initialized | .\src\MyGUI_SubWidgetManager.cpp | 64
13:56:11 | Core | Info | * Initialise: SkinManager | .\src\MyGUI_SkinManager.cpp | 46
13:56:11 | Core | Info | SkinManager successfully initialized | .\src\MyGUI_SkinManager.cpp | 54
13:56:11 | Core | Info | * Initialise: FontManager | .\src\MyGUI_FontManager.cpp | 44
13:56:11 | Core | Info | FontManager successfully initialized | .\src\MyGUI_FontManager.cpp | 53
13:56:11 | Core | Info | * Initialise: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 42
13:56:11 | Core | Info | ControllerManager successfully initialized | .\src\MyGUI_ControllerManager.cpp | 52
13:56:11 | Core | Info | * Initialise: PointerManager | .\src\MyGUI_PointerManager.cpp | 51
13:56:11 | Core | Info | PointerManager successfully initialized | .\src\MyGUI_PointerManager.cpp | 69
13:56:11 | Core | Info | * Initialise: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 82
13:56:11 | Core | Info | ClipboardManager successfully initialized | .\src\MyGUI_ClipboardManager.cpp | 96
13:56:11 | Core | Info | * Initialise: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 43
13:56:11 | Core | Info | LayoutManager successfully initialized | .\src\MyGUI_LayoutManager.cpp | 49
13:56:11 | Core | Info | * Initialise: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 35
13:56:11 | Core | Info | DynLibManager successfully initialized | .\src\MyGUI_DynLibManager.cpp | 37
13:56:11 | Core | Info | * Initialise: PluginManager | .\src\MyGUI_PluginManager.cpp | 37
13:56:11 | Core | Info | PluginManager successfully initialized | .\src\MyGUI_PluginManager.cpp | 41
13:56:11 | Core | Info | * Initialise: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 40
13:56:11 | Core | Info | LanguageManager successfully initialized | .\src\MyGUI_LanguageManager.cpp | 44
13:56:11 | Core | Info | * Initialise: FactoryManager | .\src\MyGUI_FactoryManager.cpp | 34
13:56:11 | Core | Info | FactoryManager successfully initialized | .\src\MyGUI_FactoryManager.cpp | 37
13:56:11 | Core | Info | Load ini file 'core_theme.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Load ini file 'core_language.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Load ini file 'core_font.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using texture size 512 x 256 | .\src\MyGUI_ResourceTrueTypeFont.cpp | 183
13:56:11 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using real height 17 pixels | .\src\MyGUI_ResourceTrueTypeFont.cpp | 184
13:56:11 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using texture size 256 x 256 | .\src\MyGUI_ResourceTrueTypeFont.cpp | 183
13:56:11 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using real height 14 pixels | .\src\MyGUI_ResourceTrueTypeFont.cpp | 184
13:56:11 | Core | Info | Load ini file 'core_resource.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Load ini file 'core_skin.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Register value : 'HCenter' = 0 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 181
13:56:11 | Core | Info | Register value : 'VCenter' = 0 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 182
13:56:11 | Core | Info | Register value : 'Center' = 0 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 183
13:56:11 | Core | Info | Register value : 'Left' = 2 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 184
13:56:11 | Core | Info | Register value : 'Right' = 4 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 185
13:56:11 | Core | Info | Register value : 'HStretch' = 6 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 186
13:56:11 | Core | Info | Register value : 'Top' = 8 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 187
13:56:11 | Core | Info | Register value : 'Bottom' = 16 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 188
13:56:11 | Core | Info | Register value : 'VStretch' = 24 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 189
13:56:11 | Core | Info | Register value : 'Stretch' = 30 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 190
13:56:11 | Core | Info | Register value : 'Default' = 10 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 191
13:56:11 | Core | Info | Register value : 'HRelative' = 32 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 192
13:56:11 | Core | Info | Register value : 'VRelative' = 64 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 193
13:56:11 | Core | Info | Register value : 'Relative' = 96 | c:\dev\mygui\myguiengine\include\MyGUI_Align.h | 194
13:56:11 | Core | Info | Load ini file 'core_pointer.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Load ini file 'core_layer.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Load ini file 'core_settings.xml' | .\src\MyGUI_ResourceManager.cpp | 152
13:56:11 | Core | Info | Gui successfully initialized | .\src\MyGUI_Gui.cpp | 129
13:56:11 | Core | Info | load layout 'debug.layout' | .\src\MyGUI_LayoutManager.cpp | 74

bishopnator

26-01-2010 11:56:12

Hi, I have exactly the same problem - I followed steps from wiki page (MyGUI QuickStart) and I also don't see anything. I debugged rendering and it stepped into OgreRenderManager::renderQueueStarted method, so I have valid viewport and I have enabled overlay rendering in that viewport.

MyGUI.log file:

----------------------------------------------------------------------------------------------------------------------------------
loging report for : 01/26/2010 13:06:25
----------------------------------------------------------------------------------------------------------------------------------

13:06:25 | Platform | Info | * Initialise: OgreRenderManager | C:\VSLibs\GolfOgre\MyGUI3.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 27
13:06:25 | Platform | Info | OgreRenderManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 55
13:06:25 | Platform | Info | * Initialise: OgreDataManager | C:\VSLibs\GolfOgre\MyGUI3.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 46
13:06:25 | Platform | Info | OgreDataManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 50
13:06:25 | Core | Info | * Initialise: Gui | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_Gui.cpp | 82
13:06:25 | Core | Info | * MyGUI version 3.0.0 | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_Gui.cpp | 86
13:06:25 | Core | Info | * Initialise: ResourceManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 43
13:06:25 | Core | Info | ResourceManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 51
13:06:25 | Core | Info | * Initialise: LayerManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LayerManager.cpp | 45
13:06:25 | Core | Info | LayerManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LayerManager.cpp | 53
13:06:25 | Core | Info | * Initialise: WidgetManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 66
13:06:25 | Core | Info | WidgetManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 105
13:06:25 | Core | Info | * Initialise: InputManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_InputManager.cpp | 42
13:06:25 | Core | Info | InputManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_InputManager.cpp | 59
13:06:25 | Core | Info | * Initialise: SubWidgetManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 44
13:06:25 | Core | Info | SubWidgetManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 64
13:06:25 | Core | Info | * Initialise: SkinManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_SkinManager.cpp | 46
13:06:25 | Core | Info | SkinManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_SkinManager.cpp | 54
13:06:25 | Core | Info | * Initialise: FontManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_FontManager.cpp | 44
13:06:25 | Core | Info | FontManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_FontManager.cpp | 53
13:06:25 | Core | Info | * Initialise: ControllerManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 42
13:06:25 | Core | Info | ControllerManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 52
13:06:25 | Core | Info | * Initialise: PointerManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_PointerManager.cpp | 51
13:06:25 | Core | Info | PointerManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_PointerManager.cpp | 69
13:06:25 | Core | Info | * Initialise: ClipboardManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 82
13:06:25 | Core | Info | ClipboardManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 96
13:06:25 | Core | Info | * Initialise: LayoutManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 43
13:06:25 | Core | Info | LayoutManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 49
13:06:25 | Core | Info | * Initialise: DynLibManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 35
13:06:25 | Core | Info | DynLibManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 37
13:06:25 | Core | Info | * Initialise: PluginManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_PluginManager.cpp | 37
13:06:25 | Core | Info | PluginManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_PluginManager.cpp | 41
13:06:25 | Core | Info | * Initialise: LanguageManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 40
13:06:25 | Core | Info | LanguageManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 44
13:06:25 | Core | Info | * Initialise: FactoryManager | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 34
13:06:25 | Core | Info | FactoryManager successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 37
13:06:25 | Core | Info | Load ini file 'core_theme.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:25 | Core | Info | Load ini file 'core_language.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:25 | Core | Info | Load ini file 'core_font.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:25 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using texture size 512 x 256 | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 183
13:06:25 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using real height 17 pixels | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 184
13:06:25 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using texture size 256 x 256 | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 183
13:06:25 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using real height 14 pixels | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 184
13:06:25 | Core | Info | Load ini file 'core_resource.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:25 | Core | Info | Load ini file 'core_skin.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:25 | Core | Info | Register value : 'HCenter' = 0 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 181
13:06:25 | Core | Info | Register value : 'VCenter' = 0 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 182
13:06:25 | Core | Info | Register value : 'Center' = 0 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 183
13:06:25 | Core | Info | Register value : 'Left' = 2 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 184
13:06:25 | Core | Info | Register value : 'Right' = 4 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 185
13:06:25 | Core | Info | Register value : 'HStretch' = 6 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 186
13:06:25 | Core | Info | Register value : 'Top' = 8 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 187
13:06:25 | Core | Info | Register value : 'Bottom' = 16 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 188
13:06:25 | Core | Info | Register value : 'VStretch' = 24 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 189
13:06:25 | Core | Info | Register value : 'Stretch' = 30 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 190
13:06:25 | Core | Info | Register value : 'Default' = 10 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 191
13:06:25 | Core | Info | Register value : 'HRelative' = 32 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 192
13:06:25 | Core | Info | Register value : 'VRelative' = 64 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 193
13:06:25 | Core | Info | Register value : 'Relative' = 96 | c:\vslibs\golfogre\mygui3.0\myguiengine\include\MyGUI_Align.h | 194
13:06:26 | Core | Info | Load ini file 'core_pointer.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:26 | Core | Info | Load ini file 'core_layer.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:26 | Core | Info | Load ini file 'core_settings.xml' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
13:06:26 | Core | Info | Gui successfully initialized | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_Gui.cpp | 129
13:07:02 | Core | Info | load layout 'camera_curve_dlg.layout' | C:\VSLibs\GolfOgre\MyGUI3.0\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 74


Ogre.log file:

13:06:23: Creating resource group General
13:06:23: Creating resource group Internal
13:06:23: Creating resource group Autodetect
13:06:23: SceneManagerFactory for type 'DefaultSceneManager' registered.
13:06:23: Registering ResourceManager for type Material
13:06:23: Registering ResourceManager for type Mesh
13:06:23: Registering ResourceManager for type Skeleton
13:06:23: MovableObjectFactory for type 'ParticleSystem' registered.
13:06:23: OverlayElementFactory for type Panel registered.
13:06:23: OverlayElementFactory for type BorderPanel registered.
13:06:23: OverlayElementFactory for type TextArea registered.
13:06:23: Registering ResourceManager for type Font
13:06:23: ArchiveFactory for archive type FileSystem registered.
13:06:23: ArchiveFactory for archive type Zip registered.
13:06:23: FreeImage version: 3.11.0
13:06:23: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
13:06:23: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
13:06:23: DDS codec registering
13:06:23: Registering ResourceManager for type HighLevelGpuProgram
13:06:23: Registering ResourceManager for type Compositor
13:06:23: MovableObjectFactory for type 'Entity' registered.
13:06:23: MovableObjectFactory for type 'Light' registered.
13:06:23: MovableObjectFactory for type 'BillboardSet' registered.
13:06:23: MovableObjectFactory for type 'ManualObject' registered.
13:06:23: MovableObjectFactory for type 'BillboardChain' registered.
13:06:23: MovableObjectFactory for type 'RibbonTrail' registered.
13:06:23: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at c:\vslibs\golfogre\golf_v1.6.9530_ogresdk_1.6.0src\ogremain\src\ogreconfigfile.cpp (line 84)
13:06:23: plugins.cfg not found, automatic plugin loading disabled.
13:06:23: *-*-* OGRE Initialising
13:06:23: *-*-* Version 1.6.0 (Shoggoth)
13:06:23: Loading library RenderSystem_Direct3D9_d.dll
13:06:23: Installing plugin: D3D9 RenderSystem
13:06:23: D3D9 : Direct3D9 Rendering Subsystem created.
13:06:23: D3D9: Driver Detection Starts
13:06:23: D3D9: Driver Detection Ends
13:06:23: Plugin successfully installed
13:06:23: Loading library Plugin_ParticleFX_d.dll
13:06:23: Installing plugin: ParticleFX
13:06:23: Particle Emitter Type 'Point' registered
13:06:23: Particle Emitter Type 'Box' registered
13:06:23: Particle Emitter Type 'Ellipsoid' registered
13:06:23: Particle Emitter Type 'Cylinder' registered
13:06:23: Particle Emitter Type 'Ring' registered
13:06:23: Particle Emitter Type 'HollowEllipsoid' registered
13:06:23: Particle Affector Type 'LinearForce' registered
13:06:23: Particle Affector Type 'ColourFader' registered
13:06:23: Particle Affector Type 'ColourFader2' registered
13:06:23: Particle Affector Type 'ColourImage' registered
13:06:23: Particle Affector Type 'ColourInterpolator' registered
13:06:23: Particle Affector Type 'Scaler' registered
13:06:23: Particle Affector Type 'Rotator' registered
13:06:23: Particle Affector Type 'DirectionRandomiser' registered
13:06:23: Particle Affector Type 'DeflectorPlane' registered
13:06:23: Plugin successfully installed
13:06:23: Loading library Plugin_OctreeSceneManagerEx_d.dll
13:06:23: Installing plugin: Octree & Terrain Scene Manager
13:06:23: Plugin successfully installed
13:06:23: Loading library Plugin_CgProgramManager_d.dll
13:06:23: Installing plugin: Cg Program Manager
13:06:24: Plugin successfully installed
13:06:24: SceneManagerFactory for type 'GCx2dSceneManager' registered.
13:06:24: MovableObjectFactory for type 'GSSkyEntity' registered.
13:06:24: MovableObjectFactory for type 'GUManualObject' registered.
13:06:24: Particle Emitter Type 'Custom' registered
13:06:24: Particle Affector Type 'Custom' registered
13:06:24: D3D9 : RenderSystem Option: Full Screen = No
13:06:24: D3D9 : RenderSystem Option: VSync = Yes
13:06:24: CPU Identifier & Features
13:06:24: -------------------------
13:06:24: * CPU ID: GenuineIntel: Intel(R) Pentium(R) D CPU 3.40GHz
13:06:24: * SSE: yes
13:06:24: * SSE2: yes
13:06:24: * SSE3: yes
13:06:24: * MMX: yes
13:06:24: * MMXEXT: yes
13:06:24: * 3DNOW: no
13:06:24: * 3DNOWEXT: no
13:06:24: * CMOV: yes
13:06:24: * TSC: yes
13:06:24: * FPU: yes
13:06:24: * PRO: yes
13:06:24: * HT: yes
13:06:24: -------------------------
13:06:24: D3D9 : Subsystem Initialising
13:06:24: ***************************************
13:06:24: *** D3D9 : Subsystem Initialised OK ***
13:06:24: ***************************************
13:06:24: D3D9RenderSystem::_createRenderWindow "fullscreen_wnd", 1x1 windowed miscParams: externalWindowHandle=2035780
13:06:24: D3D9 : Created D3D9 Rendering Window 'fullscreen_wnd' : 1x1, 32bpp
13:06:24: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:06:24: Registering ResourceManager for type Texture
13:06:24: Registering ResourceManager for type GpuProgram
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT16_R
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT32_R
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT16_GR
13:06:24: D3D9: Vertex texture format supported - PF_FLOAT32_GR
13:06:24: RenderSystem capabilities
13:06:24: -------------------------
13:06:24: RenderSystem Name: Direct3D9 Rendering Subsystem
13:06:24: GPU Vendor: nvidia
13:06:24: Device Name: NVIDIA GeForce 9600 GT
13:06:24: Driver Version: 6.14.11.9562
13:06:24: * Fixed function pipeline: yes
13:06:24: * Hardware generation of mipmaps: yes
13:06:24: * Texture blending: yes
13:06:24: * Anisotropic texture filtering: yes
13:06:24: * Dot product texture operation: yes
13:06:24: * Cube mapping: yes
13:06:24: * Hardware stencil buffer: yes
13:06:24: - Stencil depth: 8
13:06:24: - Two sided stencil support: yes
13:06:24: - Wrap stencil values: yes
13:06:24: * Hardware vertex / index buffers: yes
13:06:24: * Vertex programs: yes
13:06:24: * Fragment programs: yes
13:06:24: * Geometry programs: no
13:06:24: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
13:06:24: * Texture Compression: yes
13:06:24: - DXT: yes
13:06:24: - VTC: no
13:06:24: * Texture Address Modes:
13:06:24: - wrap: yes
13:06:24: - mirror: yes
13:06:24: - clamp: yes
13:06:24: - border: yes
13:06:24: * Scissor Rectangle: yes
13:06:24: * Hardware Occlusion Query: yes
13:06:24: * User clip planes: yes
13:06:24: * VET_UBYTE4 vertex element type: yes
13:06:24: * Infinite far plane projection: yes
13:06:24: * Hardware render-to-texture: yes
13:06:24: * Floating point textures: yes
13:06:24: * Non-power-of-two textures: yes
13:06:24: * Volume textures: yes
13:06:24: * Multiple Render Targets: 4
13:06:24: - With different bit depths: yes
13:06:24: * Point Sprites: yes
13:06:24: * Extended point parameters: yes
13:06:24: * Max Point Size: 8192
13:06:24: * Vertex texture fetch: yes
13:06:24: - Max vertex textures: 4
13:06:24: - Vertex textures shared: no
13:06:24: * Render to Vertex Buffer : no
13:06:24: * DirectX per stage constants: yes
13:06:24: ResourceBackgroundQueue - threading disabled
13:06:24: Particle Renderer Type 'billboard' registered
13:06:24: SceneManagerFactory for type 'OctreeSceneManager' registered.
13:06:24: SceneManagerFactory for type 'GolfCupSceneManager' registered.
13:06:24: SceneManagerFactory for type 'TerrainSceneManager' registered.
13:06:24: OGRE EXCEPTION(6:FileNotFoundException): 'd:\projects\GolfCup_SVN_main\bin\debug\resources.cfg' file not found! in ConfigFile::load at c:\vslibs\golfogre\golf_v1.6.9530_ogresdk_1.6.0src\ogremain\src\ogreconfigfile.cpp (line 84)
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/fonts' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/materials' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/materials/programs' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/materials/scripts' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/materials/textures' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/materials/shaders' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/models' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/overlays' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/particle' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/fonts' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/imagesets' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/layouts' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/looknfeel' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/schemes' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/gui/courses' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/maps' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/sounds' of type 'FileSystem' to resource group 'General'
13:06:24: Added resource location 'd:\projects\GolfCup_SVN_main\media/languages' of type 'FileSystem' to resource group 'General'
13:06:24: Parsing scripts for resource group Autodetect
13:06:24: Finished parsing scripts for resource group Autodetect
13:06:24: Parsing scripts for resource group General
13:06:24: Parsing script player_name_selection.material
13:06:24: Parsing script player_name_selection_highlight.material
13:06:24: Parsing script terrain_info.material
13:06:24: Parsing script debug.material
13:06:24: Parsing script CourierNewDef.fontdef
13:06:24: Parsing script HoleDef.fontdef
13:06:24: Parsing script SideView.fontdef
13:06:24: Parsing script TopView.fontdef
13:06:24: Finished parsing scripts for resource group General
13:06:24: Parsing scripts for resource group Internal
13:06:24: Finished parsing scripts for resource group Internal
13:06:24: Texture: white.tga: Loading 1 faces(PF_R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x32x1.
13:06:24: Texture: graphics2d.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:06:24: Font HoleDefinitionusing texture size 512x256
13:06:24: Info: Freetype returned null for character 160 in font HoleDefinition
13:06:24: Texture: HoleDefinitionTexture: Loading 1 faces(PF_BYTE_LA,512x256x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x256x1.
13:06:24: Flag FlagMesh00 created
13:06:25: Creating resource group MyGUI_resource_group
13:06:25: Added resource location 'd:\projects\GolfCup_SVN_main\media\gui\editor' of type 'FileSystem' to resource group 'MyGUI_resource_group'
13:06:25: Added resource location 'd:\projects\GolfCup_SVN_main\media\gui\editor\core' of type 'FileSystem' to resource group 'MyGUI_resource_group'
13:06:25: Texture: core_micro_font.PNG: Loading 1 faces(PF_A8R8G8B8,512x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x128x1.
13:06:25: Texture: core.png: Loading 1 faces(PF_A8R8G8B8,1024x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
13:06:26: Texture: core_pointer.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
13:06:26: D3D9RenderSystem::_createRenderWindow "CTopView", 1276x585 windowed miscParams: externalWindowHandle=463128
13:06:26: D3D9 : Created D3D9 Rendering Window 'CTopView' : 1276x585, 32bpp
13:06:26: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:06:26: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
13:06:26: D3D9RenderSystem::_createRenderWindow "CSideView", 1276x318 windowed miscParams: externalWindowHandle=987436
13:06:26: D3D9 : Created D3D9 Rendering Window 'CSideView' : 1276x318, 32bpp
13:06:26: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:06:36: postInitHeightMap took = 7ms
13:06:36: mem usage [quad tree]: 300
13:06:37: D3D9 : Loading 2D Texture, image name : '37FE02D8-0555-4FB6-AE66-1E4A8568A3F8' with 2 mip map levels
13:06:49: D3D9 : Loading 2D Texture, image name : 'FFDCA687-98BB-46F8-AF5E-FFF74088A203' with 9 mip map levels
13:06:49: D3D9 : Loading 2D Texture, image name : 'B47376E5-9FC5-4C7A-9A05-D190EB5E7306' with 9 mip map levels
13:06:49: Texture: texture_terrain_hole: Loading 1 faces(PF_X8R8G8B8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,16x16x1.
13:06:53: D3D9 : Loading 2D Texture, image name : 'A8DD77B6-7179-446C-83F7-CE5689EE84B6' with 11 mip map levels
13:06:53: D3D9 : Loading 2D Texture, image name : '0AC07725-7B4B-4AD8-9788-94A898ECE99F' with 10 mip map levels
13:06:53: D3D9 : Loading 2D Texture, image name : '8E568F1F-4835-4BDA-8A48-300802322C11' with 9 mip map levels
13:06:53: HeightMap: preparing cache took: 324ms (0 calls; empty = 0)
13:06:53: D3D9 : Loading 2D Texture, image name : '04ACAE6B-6253-4046-B077-C95D954D5C9C' with 7 mip map levels
13:06:53: heightmap memory usage = 11903222
13:06:53: D3D9 : Loading 2D Texture, image name : 'BBC941F4-0205-43FD-85FE-F5E268381905' with 5 mip map levels
13:06:53: Texture: F364AA97-0FCC-4544-8F95-995F5ADB0C99: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:06:54: Texture: E84500A9-4143-47AF-9A6D-3CC53E34B06B: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
13:07:00: Mesh: Loading Sphere.mesh.
13:07:00: Can't assign material NoMaterial to SubEntity of CCameraCurveDlg::CAMERA_TARGET_POINT because this Material does not exist. Have you forgotten to define it in a .material script?
13:07:02: !!! Direct3D Device Lost!
13:07:02: AddinFX: Device lost
13:07:02: Terrain::HeightMap::onLostDevice()
13:07:02: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
13:07:02: Released D3D9 default pool texture: Ogre/ShadowTexture0
13:07:02: D3D9TextureManager released:
13:07:02: 1 unmanaged textures
13:07:02: D3D9HardwareBufferManager released:
13:07:02: 1 unmanaged vertex buffers
13:07:02: 0 unmanaged index buffers
13:07:02: Reset device ok w:1280 h:1024
13:07:02: Recreating D3D9 default pool texture: Ogre/ShadowTexture0
13:07:02: Recreated D3D9 default pool texture: Ogre/ShadowTexture0
13:07:02: D3D9TextureManager recreated:
13:07:02: 1 unmanaged textures
13:07:02: D3D9HardwareBufferManager recreated:
13:07:02: 1 unmanaged vertex buffers
13:07:02: 0 unmanaged index buffers
13:07:02: !!! Direct3D Device successfully restored.
13:07:02: AddinFX: Device restored
13:07:02: Terrain::HeightMap::onResetDevice()

I set MyGUI_resource_group as resource group name fro MyGUI (you can find this string in ogre.log).

camera_curve_dlg.layout (it is just renamed layout from QuickStart wiki):

<?xml version="1.0" encoding="UTF-8"?>

<MyGUI type="Layout">

<Widget type="Button" skin="Button" position="10 10 300 26" align="Default" layer="Main" name="MyFirstButton" >
<Property key="Widget_Caption" value="exit" />
</Widget>

</MyGUI>


note: I am trying to use MyGUI in MFC application (my editor has 2 views (render windows) and it is possible to switch one of them to fullscreen rendering - I want to use MyGUI as UI in fullscreen rendering).

bishopnator

26-01-2010 13:16:41

I solved it :) it is important to call mPlatform->getRenderManagerPtr()->setActiveViewport(0); This call update view size in renderer and in GUI. In my case I initialize MyGUI to small window (1x1 pixels) and later I resize it to correct size (when user clicks on button for switching to fullscreen).

IMO such notifications should be called automatically (maybe via Ogre::RenderTargetListener methods viewportAdded and viewportRemoved).

ZealAddon

17-02-2010 21:35:58

I just ran into this problem as well. If I create MyGUI BEFORE creating my initial camera, I see nothing. However if I creat MyGUI AFTER creating my initial camera, things display just fine. So as a temp solution, I simply call 'mPlatform->getRenderManagerPtr()->setActiveViewport(0)' after creating every camera, and that seems to fix things.

My question is, why is MyGUI switching things around behind the scenes when we create a new camera?

*I guess I am just a little confused as to how MyGUI renders things. Does it create its own ogre camera? Why does it need/care about my cameras/viewports? I already passed it the window (aka render target), so shouldnt that be all it needs?