black screen? damn..

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

kewur
Just popping in
Just popping in
Posts: 17
Joined: Fri Dec 05, 2008 00:05

black screen? damn..

Postby kewur » Sat Dec 06, 2008 22:35

Hello everyone!

Im trying to use cegui in my ogre application

but im having some problems (maybe in both i really couldnt understand)

im not sure which one fails to work.. since my debugger also is not working!

Code: Select all

DrawUtil* DU = DrawUtil::getSingleton();
   DU->CeguiRenderer = new CEGUI::OgreCEGUIRenderer(DU->DefaultWindow,
                                       Ogre::RENDER_QUEUE_OVERLAY,
                                       false,
                                       3000,
                                       DU->DefaultSceneManager);
   
 
   CEGUI::System* mSystem = new CEGUI::System(DU->CeguiRenderer);
   DU->mSystem = mSystem;

   DU->setCegui();

   
   
   

   CEGUI::MouseCursor::getSingleton().setImage(CEGUI::System::getSingleton().getDefaultMouseCursor());


   CEGUI::System::getSingletonPtr()->renderGUI();
      


this is my launching seq.

Code: Select all

   DrawUtil* DU = DrawUtil::getSingleton();
   
   //set logger
   CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
   //loading the scheme
   CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme", (CEGUI::utf8*)"GUI");
   
   //set the deafult mouse cursor
   DU->mSystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");

   //Set the font
   CEGUI::FontManager::getSingleton().createFont("Tahoma-8.font", (CEGUI::utf8*)"GUI");

   DU->mSystem->setDefaultFont((CEGUI::utf8*)"Tahoma-8");

   CEGUI::Window* mLayout = CEGUI::WindowManager::getSingleton().loadWindowLayout("facial.layout", "" , "GUI");
   DU->mLayout = mLayout;
   
   DU->mSystem->setGUISheet(mLayout);


and this is for setting things up.. well as im not good at using cegui at the moment (but i hope i ll imorove on the subject soon)

is this code wrong in some ways?

its not showing anything..

here is my cegui logs..

Code: Select all

01/10/2008 16:57:04 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
01/10/2008 16:57:04 (InfL1)   +                     Crazy Eddie's GUI System - Event log                    +
01/10/2008 16:57:04 (InfL1)   +                          (http://www.cegui.org.uk/)                         +
01/10/2008 16:57:04 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

01/10/2008 16:57:04 (InfL1)   CEGUI::Logger singleton created.
01/10/2008 16:57:04 (InfL1)   ---- Begining CEGUI System initialisation ----
01/10/2008 16:57:04 (InfL1)   CEGUI::ImagesetManager singleton created
01/10/2008 16:57:04 (InfL1)   CEGUI::FontManager singleton created.
01/10/2008 16:57:04 (InfL1)   CEGUI::WindowFactoryManager singleton created
01/10/2008 16:57:04 (InfL1)   CEGUI::WindowManager singleton created
01/10/2008 16:57:04 (InfL1)   CEGUI::SchemeManager singleton created.
01/10/2008 16:57:04 (InfL1)   CEGUI::MouseCursor singleton created.
01/10/2008 16:57:04 (InfL1)   CEGUI::GlobalEventSet singleton created.
01/10/2008 16:57:04 (InfL1)   CEGUI::WidgetLookManager singleton created.
01/10/2008 16:57:04 (InfL1)   CEGUI::WindowRendererManager singleton created
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'DefaultWindow' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'DragContainer' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'ScrolledContainer' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'ClippedContainer' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Checkbox' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/PushButton' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/RadioButton' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Combobox' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ComboDropList' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Editbox' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/FrameWindow' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ItemEntry' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Listbox' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ListHeader' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ListHeaderSegment' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Menubar' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/PopupMenu' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/MenuItem' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/MultiColumnList' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/MultiLineEditbox' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ProgressBar' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ScrollablePane' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Scrollbar' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Slider' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Spinner' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/TabButton' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/TabControl' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Thumb' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Titlebar' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/Tooltip' windows added.
01/10/2008 16:57:04 (InfL1)   WindowFactory for 'CEGUI/ItemListbox' windows added.
01/10/2008 16:57:04 (InfL1)   Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
01/10/2008 16:57:04 (InfL1)   CEGUI::System singleton created.
01/10/2008 16:57:04 (InfL1)   ---- CEGUI System initialisation completed ----
01/10/2008 16:57:04 (InfL1)   ---- Version 0.5.1 ----
01/10/2008 16:57:04 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
01/10/2008 16:57:04 (InfL1)   ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
01/10/2008 16:57:04 (InfL1)   ---- Scripting module is: None ----
01/10/2008 16:57:04 (InfL1)   Attempting to load Scheme from file 'TaharezLookSkin.scheme'.
01/10/2008 16:57:04 (InfL1)   Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
01/10/2008 16:57:04 (InfL1)   Started creation of Imageset from XML specification:
01/10/2008 16:57:04 (InfL1)   ---- CEGUI Imageset name: TaharezLook
01/10/2008 16:57:04 (InfL1)   ---- Source texture file: TaharezLook.tga in resource group: (Default)
01/10/2008 16:57:04 (InfL1)   Attempting to create Font from the information specified in file 'bluehighway-12.font'.
01/10/2008 16:57:04 (InfL1)   Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1)   ---- CEGUI font name: BlueHighway-12
01/10/2008 16:57:04 (InfL1)   ----     Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1)   ---- Real point size: 12
01/10/2008 16:57:04 (InfL1)   Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1)   Attempting to create Font from the information specified in file 'bluehighway-10.font'.
01/10/2008 16:57:04 (InfL1)   Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1)   ---- CEGUI font name: BlueHighway-10
01/10/2008 16:57:04 (InfL1)   ----     Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1)   ---- Real point size: 10
01/10/2008 16:57:04 (InfL1)   Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1)   Attempting to create Font from the information specified in file 'bluehighway-8.font'.
01/10/2008 16:57:04 (InfL1)   Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1)   ---- CEGUI font name: BlueHighway-8
01/10/2008 16:57:04 (InfL1)   ----     Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1)   ---- Real point size: 8
01/10/2008 16:57:04 (InfL1)   Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1)   ===== Falagard 'root' element: look and feel parsing begins =====
01/10/2008 16:57:04 (InfL1)   ===== Look and feel parsing completed =====
01/10/2008 16:57:04 (InfL1)   No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Button' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Default' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Editbox' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/FrameWindow' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ItemEntry' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ListHeader' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ListHeaderSegment' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Listbox' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Menubar' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/MenuItem' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/MultiColumnList' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/MultiLineEditbox' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/PopupMenu' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ProgressBar' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ScrollablePane' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Scrollbar' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Slider' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Static' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/StaticImage' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/StaticText' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/SystemButton' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/TabButton' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/TabControl' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Titlebar' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ToggleButton' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/Tooltip' added.
01/10/2008 16:57:04 (InfL1)   WindowRendererFactory 'Falagard/ItemListbox' added.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'TaharezLook/Button'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'.
01/10/2008 16:57:04 (InfL1)   Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'.



as you may realized by now im using the samples like facial.layout

thanks in advance for any sort of help!
or sorry for asking a stupid question (if i did)


i just wanna know if my problem is cegui based or ogre based

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

Postby CrazyEddie » Sun Dec 07, 2008 10:34

Hi, and welcome :)

First you have to make sure that that DU->DefaultSceneManager is the actual scene manager that you're using.

Code: Select all

CEGUI::System::getSingletonPtr()->renderGUI();

I'm no sure why you're calling this, since the CEGUI renderer module for Ogre will take care of that automatically for you.

Is that the full log? If not can you post the rest of it? If it is the full log, it appears that something is dying part-way through.

Aside from anything else, I would strongly urge you to abandon all coding work until such time as you have a functioning debugger. Otherwise it's like trying to work as a mechanic without having any spanners.

CE.

kewur
Just popping in
Just popping in
Posts: 17
Joined: Fri Dec 05, 2008 00:05

Postby kewur » Sun Dec 07, 2008 12:42

thanks for replying quick (:

unfortunatly it is my full cegui log. my ogre.log seems to be like that too

it is my default scene manager here ;

Code: Select all

mgr = _mRoot->createSceneManager(Ogre::ST_GENERIC , "Default SceneManager");
   DU->DefaultSceneManager = mgr;


both ogre and cegui logs comes a halt in the middle..

i also posted my problem with my ogre concerns in the ogre forum.. but there isnt much improvments over there..

i dont think my problem is cegui related anymore, i think its more about ogre..

my ogre post is here (if you are interested) with some debugger outputs

http://www.ogre3d.org/phpBB2/viewtopic. ... 996#317996

thanks for helping me

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

Postby CrazyEddie » Sun Dec 07, 2008 15:39

Ok, the scene manager seems fine.

So what actually happens when you run your code? I know you said you get a black screen, but is the app actually running or does it hang?

You might, if you are not already, consider surrounding some of your code with try/catch blocks (catching Ogre exceptions for the Ogre parts and CEGUI exceptions for the CEGUI parts) and having the catch blocks output any messages (although these should normally appear in the log anyway).

kewur
Just popping in
Just popping in
Posts: 17
Joined: Fri Dec 05, 2008 00:05

Postby kewur » Sun Dec 07, 2008 16:45

CrazyEddie wrote:Ok, the scene manager seems fine.

So what actually happens when you run your code? I know you said you get a black screen, but is the app actually running or does it hang?



Thats the part i couldnt understand (: it doesnt hang, its still running. I think some of the cfg files have been damaged, im going to try that when i have the time

CrazyEddie wrote:You might, if you are not already, consider surrounding some of your code with try/catch blocks (catching Ogre exceptions for the Ogre parts and CEGUI exceptions for the CEGUI parts) and having the catch blocks output any messages (although these should normally appear in the log anyway).


i'll put some try and catch as you adviced

thanks for your time (:

i ll post it if i can get it right :D, what the hell i'll post if i even cant :D

kewur
Just popping in
Just popping in
Posts: 17
Joined: Fri Dec 05, 2008 00:05

Postby kewur » Sun Dec 07, 2008 22:27

well so much for VS9 debugger

ok, it seems i had to adjust the working directory for the debugger seperatly. i didnt know that
now my debugger works

it seems that i forgot to attach my framelistener :D haha silly me.. :D

well thanks for helping me out!!

and kids! remember to add your framelistener before starting rendering.

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

Postby CrazyEddie » Mon Dec 08, 2008 12:57

I'm glad you have gotten this to work :)

With regards to the debugger, yeah that is annoying having to set that working dir all the time. I would have thought having a default of $(TargetDir) was an obvious thing for them to have done, but apparently not.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests