[SOLVED] Nothing rendered except mouse cursor under Linux

sebarnolds

15-09-2009 17:47:51

Hello. I'm back for some Linux-related questions.

I've successfully built QuickGUI under Linux with Ogre 1.6.3 and OIS 1.2-branch.

I've followed the beginner tutorial 1 but it does nothing except showing the mouse cursor in the upper-left corner of the Ogre window (I skipped the events injection code for now). I tried to add a button as shown the the second tutorial but it doesn't change anything on the screen.

In order to be sure that I wasn't doing something wrong, I built the PlayPen application to see if it worked. But it didn't either. It was the same behaviour: the mouse cursor was shown (and functional in this case) but nothing else was shown.

Here is the (minimal) CMakeLists.txt I used. Note that I had to modify the source code to make it work under Linux (mainly the plugins loading), I can post the patch if you want.

include_directories(include ${CMAKE_SOURCE_DIR}/QuickGUI/include)

add_executable(PlayPen src/main.cpp src/MainForm.cpp src/Window.cpp src/PlayPen.cpp)
target_link_libraries(PlayPen QuickGUI ${OGRE_LIBRARY} ${OIS_LIBRARY})
set_target_properties(PlayPen PROPERTIES COMPILE_FLAGS "${DEBUG_PROPERTIES}")


And here is the full log of the application. As you will see there is a warning message ("No definitions for type "SkinReference" found!") that happens a lot, I don't know if it could be the source of the problem.

Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.10.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
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
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.6.3 (Shoggoth)
Loading library ./RenderSystem_GL.so
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Added resource location 'qgui.core.zip' of type 'Zip' to resource group 'General'
CPU Identifier & Features
-------------------------
* CPU ID: GenuineIntel: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: no
* 3DNOWEXT: no
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::_createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 displayFrequency=75 MHz gamma= vsync=No
GLXWindow::create used FBConfigID = 39
GL_VERSION = 2.1.8575
GL_VENDOR = ATI Technologies Inc.
GL_RENDERER = ATI Radeon HD 4800 Series
GL_EXTENSIONS = GL_AMDX_vertex_shader_tessellator GL_AMD_performance_monitor GL_AMD_texture_texture4 GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_transpose_matrix GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_buffer GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_swizzle GL_EXT_transform_feedback GL_EXT_vertex_array GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_WIN_swap_hint WGL_EXT_swap_control
Supported GLX extensions: GLX_ARB_create_context GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_swap_control GLX_NV_swap_group GLX_OML_swap_method GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_swap_barrier GLX_SGIX_swap_group GLX_SGIX_visual_select_group
***************************
*** GL Renderer Started ***
***************************
Registering ResourceManager for type GpuProgram
GLSL support detected
GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_L8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_L16 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A4L4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_BYTE_LA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B5G6R5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
[GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_L16 PF_A8 PF_A4L4 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_SHORT_GR PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL Rendering Subsystem
GPU Vendor: ati
Device Name: ATI Radeon HD 4800 Series
Driver Version: 2.1.8575.0
* Fixed function pipeline: yes
* Hardware generation of mipmaps: no
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: yes
- Stencil depth: 8
- Two sided stencil support: yes
- Wrap stencil values: yes
* Hardware vertex / index buffers: yes
* Vertex programs: yes
* Fragment programs: yes
* Geometry programs: no
* Supported Shader Profiles: arbfp1 arbvp1 glsl ps_1_1 ps_1_2 ps_1_3 ps_1_4
* Texture Compression: yes
- DXT: yes
- VTC: no
* Scissor Rectangle: yes
* Hardware Occlusion Query: yes
* User clip planes: yes
* VET_UBYTE4 vertex element type: yes
* Infinite far plane projection: yes
* Hardware render-to-texture: yes
* Floating point textures: yes
* Non-power-of-two textures: yes
* Volume textures: yes
* Multiple Render Targets: 8
- With different bit depths: yes
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 8192
* Vertex texture fetch: yes
- Max vertex textures: 16
- Vertex textures shared: yes
* Render to Vertex Buffer : no
* GL 1.5 without VBO workaround: no
* Frame Buffer objects: yes
* Frame Buffer objects (ARB extension): no
* Frame Buffer objects (ATI extension): no
* PBuffer suppport: no
* GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
ResourceBackgroundQueue - threading disabled
Particle Renderer Type 'billboard' registered
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group General
Parsing script qgui.skinTypes
Parsing script micross.fontdef
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
[QGUI] Loading SkinClass and SkinType definitions...
[QGUI] Skin definition for class "Button" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.close" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.comboboxdropdown" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.hscrollleft" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.hscrollright" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.hslider" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.treeviewnode.expand" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.treeviewnode.minimize" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.vscrolldown" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.vscrollup" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Button" with ID "default.vslider" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "CheckBox" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "CheckBox" with ID "default.treeviewcheckboxnode" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "ColorPicker" with ID "default" found.
[QGUI] Skin definition for class "ComboBox" with ID "default" found.
[QGUI] Skin definition for class "Console" with ID "default" found.
[QGUI] Skin definition for class "ContextMenu" with ID "default" found.
[QGUI] Skin definition for class "HScrollBar" with ID "default" found.
[QGUI] Skin definition for class "Image" with ID "ColorPallette" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Image" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Label" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "List" with ID "default" found.
[QGUI] Skin definition for class "ListImageItem" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "ListTextItem" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Menu" with ID "default" found.
[QGUI] Skin definition for class "MenuImageItem" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MenuPanel" with ID "default" found.
[QGUI] Skin definition for class "MenuPanel" with ID "default.dropdownlist" found.
[QGUI] Skin definition for class "MenuTextItem" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "ModalWindow" with ID "default" found.
[QGUI] Skin definition for class "MouseCursor" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "diag1resize" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "diag2resize" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "grabable" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "grabbed" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "hresize" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "MouseCursor" with ID "vresize" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Panel" with ID "default" found.
[QGUI] Skin definition for class "Panel" with ID "editor.tabpage.area" found.
[QGUI] Skin definition for class "ProgressBar" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "PropertyGrid" with ID "QuickGUIEditor" found.
[QGUI] Skin definition for class "PropertyGrid" with ID "default" found.
[QGUI] Skin definition for class "PropertyGridBoolProperty" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "PropertyGridComboBoxProperty" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "PropertyGridSection" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "PropertyGridTextProperty" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "RadioButton" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "RadioButton" with ID "default.treeviewradiobuttonnode" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "Sheet" with ID "default" found.
[QGUI] Skin definition for class "Tab" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TabControl" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TabControl" with ID "editor" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TabPage" with ID "default" found.
No definitions for type "SkinElement" found!
[QGUI] Skin definition for class "TabPage" with ID "editor" found.
No definitions for type "SkinElement" found!
[QGUI] Skin definition for class "TextArea" with ID "default" found.
[QGUI] Skin definition for class "TextBox" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TextCursor" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TextCursor" with ID "test" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TitleBar" with ID "default" found.
[QGUI] Skin definition for class "ToolBar" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TreeView" with ID "default" found.
[QGUI] Skin definition for class "TreeViewCheckBoxNode" with ID "default" found.
[QGUI] Skin definition for class "TreeViewNode" with ID "default" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TreeViewRadioButtonNode" with ID "default" found.
[QGUI] Skin definition for class "VScrollBar" with ID "default" found.
[QGUI] Skin definition for class "Window" with ID "default" found.
Font micross.12using texture size 256x256
Info: Freetype returned null for character 160 in font micross.12
Texture: micross.12Texture: Loading 1 faces(PF_BYTE_LA,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
Texture: qgui.tab.front.png: Loading 1 faces(PF_A8R8G8B8,19x17x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,19x17x1.
Texture: qgui.cursor.textselect.png: Loading 1 faces(PF_A8R8G8B8,15x26x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,15x26x1.


EDIT: I forgot to say that I am using QuickGUI svn revision 1006.

Thank you very much for your help,
Sebastien

sebarnolds

15-09-2009 18:28:49

Oops, it seems the problem in my application was due to an error in my .fontdef file. Ogre didn't find the ttf file so QuickGUI didn't have what it needed to render the button.

Now, if anyone has a clue about the PlayPen application, I would gladly hear it.

Sebastien

Calder

15-09-2009 23:07:18

If I'm not terribly mistaken, the PlayPen app is just the development editor, right? So try right clicking...

EDIT: I am terribly mistaken. Trying to get it working on my system right now. In the mean time, if you could run the PlayPen app in the terminal and post the output, that would help significantly.

Calder

16-09-2009 00:38:41

Well, I just realized something very bad. My computer broke around 2-3 weeks ago, and the new one I got uses an Intel GMA 4500 HD card, which, coincidentally, is completely neglected in Ubuntu Jaunty. Supposedly one of the big features of Karmic is new drivers for this series of card, so this might be fixed in a month and a half, but for right now I can't run Ogre. The PlayPen app is actually not the best example to use, but if you still want to build it we can try debugging remotely. I can send you a simple terrain editor I made a while ago if you're looking for code examples.

kungfoomasta

16-09-2009 00:48:49

The PlayPen is just an app that I use to investigate issues that people find, its not really mandatory that it be run. As for the Editor, it starts with a blank screen, and you have to right click to be able to do things with it. The editor isn't complete either, however I've tried to make the effort required to code in a GUI as easy as possible. The important thing here is that the library can be built and used.

If you follow the short tutorials on the wiki, using the library should be straightforward.
http://www.ogre3d.org/wiki/index.php/QuickGUI

sebarnolds

16-09-2009 08:36:38

Okay, thanks for your answers.

As I said, I found the problem in my application (the missing font referenced from the .fontdef file) and I can now see a button. I'll try later to continue the tutorials of the wiki, to see if I have any problem.

I didn't know for the PlayPen, I thought it was some kind of demo application. I'll try to build the editor later this week. If I find any problem, I'll post them here, otherwise consider the problem solved.

Thank you,
Sebastien

sebarnolds

16-09-2009 17:07:29

Hello again.

I just came back from work and tried compiling the editor. It works fine, my problem can be considered as solved.

If anybody is interested, here is my diff in order to compile the editor for Ogre 1.6.3:

Index: src/QuickGUIEditorApp.cpp
===================================================================
--- src/QuickGUIEditorApp.cpp (révision 1006)
+++ src/QuickGUIEditorApp.cpp (copie de travail)
@@ -13,7 +13,7 @@
mOgreRoot = new Ogre::Root("", "");



#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32

- bool useOpenGL = 0;

+ bool useOpenGL = 0;

#if defined _DEBUG

mOgreRoot->loadPlugin("RenderSystem_GL_d.dll");

mOgreRoot->loadPlugin("RenderSystem_Direct3D9_d.dll");

@@ -21,14 +21,18 @@
mOgreRoot->loadPlugin("RenderSystem_GL.dll");

mOgreRoot->loadPlugin("RenderSystem_Direct3D9.dll");

#endif

-#else

- bool useOpenGL = 1;

- mOgreRoot->loadPlugin("/usr/local/lib/OGRE/RenderSystem_GL.so");

+#else
+ bool useOpenGL = 1;

+ #if defined _DEBUG

+ mOgreRoot->loadPlugin("./RenderSystem_GL_d.so");
+ #else
+ mOgreRoot->loadPlugin("./RenderSystem_GL.so");
+ #endif

#endif

-

+ Ogre::RenderSystemList * pRenderers = mOgreRoot->getAvailableRenderers();

if(useOpenGL)

{

- mOgreRoot->setRenderSystem(mOgreRoot->getAvailableRenderers().front());

+ mOgreRoot->setRenderSystem((*pRenderers)[0]);

mRenderSystem = mOgreRoot->getRenderSystem();



// OpenGL Parameters

@@ -38,7 +42,7 @@
}

else

{

- mOgreRoot->setRenderSystem(mOgreRoot->getAvailableRenderers()[1]);

+ mOgreRoot->setRenderSystem((*pRenderers)[1]);

mRenderSystem = mOgreRoot->getRenderSystem();



// DirectX Parameters



Again, thank you for your answers,
Sebastien