[solved] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

xekon
Just popping in
Just popping in
Posts: 14
Joined: Thu Jan 21, 2010 00:07

[solved] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby xekon » Sat Jan 30, 2010 01:04

first, I tried to search +ogre +tutorial through the forums here, hoping to find some ogre specific tutorials to show me what I might be missing, but ogre search term is ignored because its very common?

I am using Ogre 1.7 from SVN, Cegui 0.7 branch from SVN.

I am at tutorial 3 where you finally get to see something on the screen(mouse pointer): http://www.cegui.org.uk/docs/current/da ... orial.html

My application did not have a cursor to begin with, just the empty window, and after following these tutorials, I am not getting any errors or crashes, but I still don't have a cursor. I have went over the Beginner's Tutorials in the Developer Documentation a few times and I can't figure out what I am missing.

it says in tutorial 2 that if your using Ogre then you want to use ogre's resource manager for resource locations, and also set the default resource groups to be used:

Code: Select all

   // load the CEGUI resource location(s)
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/schemes/", "FileSystem", "schemes");
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/imagesets/", "FileSystem", "imagesets");
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/fonts/", "FileSystem", "fonts");
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/layouts/", "FileSystem", "layouts");
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/looknfeel/", "FileSystem", "looknfeels");
   Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../datafiles/lua_scripts/", "FileSystem", "lua_scripts");

   // set the default resource groups to be used
   CEGUI::Imageset::setDefaultResourceGroup("imagesets");
   CEGUI::Font::setDefaultResourceGroup("fonts");
   CEGUI::Scheme::setDefaultResourceGroup("schemes");
   CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeels");
   CEGUI::WindowManager::setDefaultResourceGroup("layouts");
   CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");


Then in tutorial 3, you load the scheme and set a mouse cursor:

Code: Select all

   // create (load) the TaharezLook scheme file
   // (this auto-loads the TaharezLook looknfeel and imageset files)
   CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme" );
   // default mouse cursor YAY!
   CEGUI::System::getSingleton().setDefaultMouseCursor( "TaharezLook", "MouseArrow" );


Cegui.log:

Code: Select all

29/01/2010 16:55:17 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
29/01/2010 16:55:17 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
29/01/2010 16:55:17 (Std)    +                          (http://www.cegui.org.uk/)                         +
29/01/2010 16:55:17 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

29/01/2010 16:55:17 (Std)    CEGUI::Logger singleton created. (02A96CA8)
29/01/2010 16:55:17 (Std)    
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    * Important:                                                                   *
29/01/2010 16:55:17 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
29/01/2010 16:55:17 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
29/01/2010 16:55:17 (Std)    *     support being given; please do not waste our time.                       *
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    ---- Version 0.7.2 (Build: Jan 24 2010 Static Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
29/01/2010 16:55:17 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
29/01/2010 16:55:17 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
29/01/2010 16:55:17 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
29/01/2010 16:55:17 (Std)    ---- Scripting module is: None ----
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
29/01/2010 16:55:17 (Std)    ********************************************************************************
29/01/2010 16:55:17 (Std)    
29/01/2010 16:55:17 (Std)    ---- Begining CEGUI System initialisation ----
29/01/2010 16:55:17 (Std)    CEGUI::ImagesetManager singleton created (02A96EC0)
29/01/2010 16:55:17 (Std)    CEGUI::FontManager singleton created. (02A98240)
29/01/2010 16:55:17 (Std)    CEGUI::WindowFactoryManager singleton created
29/01/2010 16:55:17 (Std)    CEGUI::WindowManager singleton created (02A98600)
29/01/2010 16:55:17 (Std)    CEGUI::SchemeManager singleton created. (02A97630)
29/01/2010 16:55:17 (Std)    CEGUI::MouseCursor singleton created. (02A97848)
29/01/2010 16:55:17 (Std)    CEGUI::GlobalEventSet singleton created. (02A986A0)
29/01/2010 16:55:17 (Std)    CEGUI::WidgetLookManager singleton created. (02A97E88)
29/01/2010 16:55:17 (Std)    CEGUI::WindowRendererManager singleton created (02A97EE0)
29/01/2010 16:55:17 (Std)    CEGUI::RenderEffectManager singleton created (02A97F38)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'DefaultWindow' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'DefaultWindow' windows added. (02A9A490)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'DragContainer' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'DragContainer' windows added. (02A9A650)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'ScrolledContainer' windows added. (02A9A858)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'ClippedContainer' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'ClippedContainer' windows added. (02A9AA18)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (02A9AC28)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (02A9AE40)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (02A9B000)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (02A9B220)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (02A9B3E0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (02A9B5A0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (02A9B7D0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (02A9B990)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (02A9BB50)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (02A9BD10)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (02A9BED0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (02A9C160)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (02A9C520)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (02A9C5F8)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (02A9C7B8)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (02A9CA18)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (02A9CC88)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (02A9CE48)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (02A9D008)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (02A9D1C8)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (02A9D388)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (02A9D548)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (02A9D708)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (02A9D8C8)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (02A9DA88)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (02A9DD30)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (02A9DEF0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (02A9E0B0)
29/01/2010 16:55:17 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
29/01/2010 16:55:17 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (02A9E270)
29/01/2010 16:55:17 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
29/01/2010 16:55:17 (Std)    CEGUI::System singleton created. (02A96890)
29/01/2010 16:55:17 (Std)    ---- CEGUI System initialisation completed ----
29/01/2010 16:55:17 (Std)    
29/01/2010 16:55:17 (Std)    Started creation of Scheme from XML specification:
29/01/2010 16:55:17 (Std)    ---- CEGUI GUIScheme name: TaharezLook
29/01/2010 16:55:17 (Std)    Started creation of Imageset from XML specification:
29/01/2010 16:55:17 (Std)    ---- CEGUI Imageset name: TaharezLook
29/01/2010 16:55:17 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
29/01/2010 16:55:17 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
29/01/2010 16:55:18 (Std)    ===== Look and feel parsing completed =====
29/01/2010 16:55:18 (Std)    No window factories specified for module 'CEGUIFalagardBase' - adding all available factories...
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'Falagard/ProgressBar', window renderer '' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'Falagard/Button', window renderer '' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'Falagard/Checkbox', window renderer '' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'Falagard/ComboDropList', window renderer '' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'Falagard/Editbox', window renderer '' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'Falagard/Combobox', window renderer '' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'Falagard/Editbox', window renderer '' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'Falagard/FrameWindow', window renderer '' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'Falagard/Scrollbar', window renderer '' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'Falagard/Thumb', window renderer '' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'Falagard/Button', window renderer '' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'Falagard/Scrollbar', window renderer '' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'Falagard/Thumb', window renderer '' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'Falagard/ListHeader', window renderer '' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'Falagard/ListHeaderSegment', window renderer '' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'Falagard/Listbox', window renderer '' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'Falagard/Menubar', window renderer '' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'Falagard/MenuItem', window renderer '' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'Falagard/MultiColumnList', window renderer '' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'Falagard/MultiLineEditbox', window renderer '' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'Falagard/PopupMenu', window renderer '' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'Falagard/ProgressBar', window renderer '' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'Falagard/RadioButton', window renderer '' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'Falagard/ScrollablePane', window renderer '' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'Falagard/Slider', window renderer '' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'Falagard/Thumb', window renderer '' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'Falagard/Spinner', window renderer '' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'Falagard/StaticImage', window renderer '' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'Falagard/StaticText', window renderer '' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'Falagard/SystemButton', window renderer '' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'Falagard/TabButton', window renderer '' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'Falagard/TabControl', window renderer '' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/TabPane' using base type 'Falagard/TabPane', window renderer '' Look'N'Feel 'TaharezLook/TabPane' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'Falagard/Titlebar', window renderer '' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'Falagard/Tooltip', window renderer '' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'Falagard/Scrollbar', window renderer '' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'Falagard/Thumb', window renderer '' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (002FC4D8)
29/01/2010 16:55:18 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'Falagard/ProgressBar', window renderer '' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (002FC4D8)
Last edited by xekon on Sun Jan 31, 2010 01:49, edited 4 times in total.

xekon
Just popping in
Just popping in
Posts: 14
Joined: Thu Jan 21, 2010 00:07

Re: OGRE Dev Docs-Beg Tut 3- no errors, Still no mouse cursor

Postby xekon » Sat Jan 30, 2010 07:20

after reading through some posts I found in somebody elses code snippet this:

so instead of just:

Code: Select all

CEGUI::System::getSingleton().setDefaultMouseCursor( "TaharezLook", "MouseArrow" );


I have:

Code: Select all

CEGUI::System::getSingleton().setDefaultMouseCursor( "TaharezLook", "MouseArrow" );
CEGUI::MouseCursor::getSingleton().setImage("TaharezLook", "MouseArrow");


I figured the defaultmousecursor was the one I needed since I have not added any Cegui UI elements to the screen yet, like buttons, etc.

so now when i start up the app I have a cursor in the top left corner... im guess that all I need to do now is update the cursors position with a Mousemove() type of function, so I am off to do more researchin :)

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

Re: [SOLVED] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby CrazyEddie » Sat Jan 30, 2010 09:15

im guess that all I need to do now is update the cursors position with a Mousemove() type of function

Direct your eyes to the fifth tutorial here: http://www.cegui.org.uk/docs/current/in ... orial.html It's a little less specific than some of the others due to the highly open way this can be done (I think in the future we might get some api and engine specific tutorials that go from zero to hero for each system). Anyway usually waht you'' end up with for Ogre is a class derived from Ogre::FrameListener, OIS::MouseListener and OIS::KeyListener, you register an instance of that class with Ogre and OIS and in the functions of that class you'll basically forward the notifications to CEGUI via the injection interface.

One note of as regards to the mouse not showing initially; this is just how CEGUI has always been, and in actual fact once you start injecting movements, the mouse will show - i.e. no need for the separate MouseCursor::setImage call - though setting it explicitly at initialisation is fine if you want to carry on with that.

HTH

CE.

xekon
Just popping in
Just popping in
Posts: 14
Joined: Thu Jan 21, 2010 00:07

Re: [SOLVED] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby xekon » Sat Jan 30, 2010 22:06

ahh, thanks CE.

in my input.cpp I used:

Code: Select all

// MouseListener
bool InputHandler::mouseMoved(const OIS::MouseEvent &evt) {
   return CEGUI::System::getSingleton().injectMouseMove(evt.state.X.rel, evt.state.Y.rel);
}


I now have a cursor on the screen and it tracks my mouse movement :) now to maybe make a menu that has exit game as an option. and then I will probably call it good for the overall beginning... and maybe extend it farther if anyone has any feature requests

xekon
Just popping in
Just popping in
Posts: 14
Joined: Thu Jan 21, 2010 00:07

Re: [SOLVED] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby xekon » Sun Jan 31, 2010 21:56

CrazyEddie wrote:One note of as regards to the mouse not showing initially; this is just how CEGUI has always been, and in actual fact once you start injecting movements, the mouse will show - i.e. no need for the separate MouseCursor::setImage call - though setting it explicitly at initialisation is fine if you want to carry on with that.


My mouse movement works great, I am now using(input.cpp):

Code: Select all

// MouseListener
bool InputHandler::mouseMoved(const OIS::MouseEvent &evt) {
   return CEGUI::System::getSingleton().injectMousePosition(evt.state.X.abs, evt.state.Y.abs);
}


I tried commenting out that line like you mentioned:

Code: Select all

   CEGUI::System::getSingleton().setDefaultMouseCursor( "TaharezLook", "MouseArrow" );
   //CEGUI::MouseCursor::getSingleton().setImage("TaharezLook", "MouseArrow");


but if I comment out that line I get no cursor, so I must have structured my application in a way that requires me to have the separate MouseCursor::setImage call to set it explicitly at initialisation, otherwise I get no cursor even after moving the mouse around a bunch, then I uncomment it, and cursor is back.

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

Re: [solved] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby CrazyEddie » Tue Feb 02, 2010 19:51

Oh right. Sounds like maybe you don't have a full-screen root window then. IIRC that will cause the behaviour you're seeing without the explicit setImage call :)

CE.

xekon
Just popping in
Just popping in
Posts: 14
Joined: Thu Jan 21, 2010 00:07

Re: [solved] OGRE Dev Docs-Beg Tut 3- no errors, Still no cursor

Postby xekon » Tue Feb 02, 2010 22:16

ahhh yep. I am in Windowed mode. Thanks again for all the help, you rock! :D


Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests