Duffy
25-05-2010 18:18:55
The title is pretty much correct, after fixing the RenderSystem issue were finally back to a running application.
Unfortunately this http://yfrog.com/6giphoneartifactsp is all we see.
Were not sure were the black stuff comes from, the small green rectangle in the right bottom corner is actually the viewports background color.
The two buttons should be centered mid and top.
For now we use only the QGUI core resource zip.
Ogre log:
The code is pretty strait forward as well.
Unfortunately this http://yfrog.com/6giphoneartifactsp is all we see.
Were not sure were the black stuff comes from, the small green rectangle in the right bottom corner is actually the viewports background color.
The two buttons should be centered mid and top.
For now we use only the QGUI core resource zip.
Ogre log:
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.
DDS codec registering
FreeImage version: 3.13.1
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: jpg,jif,jpeg,jpe,png,tga,targa,tif,tiff
PVRTC 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.7.1 (Cthugha)
Installing plugin: OpenGL ES 1.x RenderSystem
OpenGL ES 1.x Rendering Subsystem created.
Plugin successfully installed
Added resource location '/Users/Rob/Library/Application Support/iPhone Simulator/User/Applications/0FB39644-B22E-463A-97ED-45D215BC3EEF/Spellbound.app/media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/Rob/Library/Application Support/iPhone Simulator/User/Applications/0FB39644-B22E-463A-97ED-45D215BC3EEF/Spellbound.app/media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/Rob/Library/Application Support/iPhone Simulator/User/Applications/0FB39644-B22E-463A-97ED-45D215BC3EEF/Spellbound.app/media/models/' of type 'FileSystem' to resource group 'General'
Creating resource group QuickGUI
Added resource location '/Users/Rob/Library/Application Support/iPhone Simulator/User/Applications/0FB39644-B22E-463A-97ED-45D215BC3EEF/Spellbound.app/media/gui/' of type 'FileSystem' to resource group 'QuickGUI'
Added resource location '/Users/Rob/Library/Application Support/iPhone Simulator/User/Applications/0FB39644-B22E-463A-97ED-45D215BC3EEF/Spellbound.app/media/gui/qgui.core.zip' of type 'Zip' to resource group 'QuickGUI'
CPU Identifier & Features
-------------------------
* CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: no
* 3DNOWEXT: no
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
GLESRenderSystem::_createRenderWindow "OGRE Render Window", 320x480 fullscreen miscParams: FSAA=0 displayFrequency=0 Hz orientation=Landscape Left
GL_VERSION = OpenGL ES-CM 1.1 APPLE
GL_VENDOR = Apple Computer, Inc.
GL_RENDERER = Apple Software Renderer
GL_EXTENSIONS = GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_mapbuffer GL_OES_matrix_palette GL_OES_point_size_array GL_OES_read_format GL_OES_stencil8 GL_OES_texture_mirrored_repeat GL_OES_point_sprite GL_OES_framebuffer_object GL_OES_blend_subtract GL_EXT_texture_lod_bias GL_EXT_texture_filter_anisotropic GL_OES_depth24 GL_OES_rgb8_rgba8 GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_APPLE_texture_2D_limited_npot
EXT:GL_OES_compressed_paletted_texture
EXT:GL_OES_draw_texture
EXT:GL_OES_mapbuffer
EXT:GL_OES_matrix_palette
EXT:GL_OES_point_size_array
EXT:GL_OES_read_format
EXT:GL_OES_stencil8
EXT:GL_OES_texture_mirrored_repeat
EXT:GL_OES_point_sprite
EXT:GL_OES_framebuffer_object
EXT:GL_OES_blend_subtract
EXT:GL_EXT_texture_lod_bias
EXT:GL_EXT_texture_filter_anisotropic
EXT:GL_OES_depth24
EXT:GL_OES_rgb8_rgba8
EXT:GL_IMG_read_format
EXT:GL_IMG_texture_compression_pvrtc
EXT:GL_IMG_texture_format_BGRA8888
EXT:GL_APPLE_texture_2D_limited_npot
**************************************
*** OpenGL ES 1.x Renderer Started ***
**************************************
Registering ResourceManager for type GpuProgram
GL ES: Using GL_OES_framebuffer_object for rendering to textures (best)
FBO PF_UNKNOWN depth/stencil support:
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8
[GL] : Valid FBO targets PF_UNKNOWN PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_X8R8G8B8 PF_X8B8G8R8
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 1.x Rendering Subsystem
GPU Vendor: unknown
Device Name: Apple Software Renderer
Driver Version: 0.0.0.0
* Fixed function pipeline: yes
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: no
* Hardware stencil buffer: no
* Hardware vertex / index buffers: yes
* Vertex programs: no
* Number of floating-point constants for vertex programs: 7996
* Number of integer constants for vertex programs: 434
* Number of boolean constants for vertex programs: 8092
* Fragment programs: no
* Number of floating-point constants for fragment programs: 8332
* Number of integer constants for fragment programs: 434
* Number of boolean constants for fragment programs: 8444
* Geometry programs: no
* Number of floating-point constants for geometry programs: 434
* Number of integer constants for geometry programs: 8204
* Number of boolean constants for geometry programs: 434
* Supported Shader Profiles:
* Texture Compression: yes
- DXT: no
- VTC: no
- PVRTC: yes
* 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: no
* Non-power-of-two textures: no
* Volume textures: no
* Multiple Render Targets: 1
- With different bit depths: no
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 511
* Vertex texture fetch: no
* Number of world matrices: 0
* Number of texture units: 8
* Stencil buffer depth: 0
* Number of vertex blend matrices: 0
* 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 support: no
* GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
DefaultWorkQueue('Root') initialising on thread main.
Particle Renderer Type 'billboard' registered
Initialising resource group QuickGUI
Parsing scripts for resource group QuickGUI
Parsing script qgui.skinTypes
Parsing script micross.fontdef
Finished parsing scripts for resource group QuickGUI
[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 "test1" found.
No definitions for type "SkinReference" found!
[QGUI] Skin definition for class "TextCursor" with ID "test2" 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.10using texture size 256x256
Info: Freetype returned null for character 160 in font micross.10
Texture: micross.10Texture: Loading 1 faces(PF_BYTE_LA,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
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 hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
The code is pretty strait forward as well.
void LobbyGameState::createPlayButton(void)
{
QuickGUI::Sheet& sheet = getCurrentGUISheet();
QuickGUI::ButtonDesc* descriptor = QuickGUI::DescManager::getSingleton().getDefaultButtonDesc();
descriptor->widget_name = "PlayButton";
descriptor->widget_dimensions.size = QuickGUI::Size(100, 25);
QuickGUI::TextSegment tdesc = QuickGUI::TextSegment("micross.12", QuickGUI::ColourValue::Black, "Play");
descriptor->textDesc.segments.push_back(tdesc);
_playButton = sheet.createButton(descriptor);
_playButton->setHorizontalAnchor(QuickGUI::ANCHOR_HORIZONTAL_CENTER);
_playButton->setVerticalAnchor(QuickGUI::ANCHOR_VERTICAL_CENTER);
_playButton->addWidgetEventHandler(QuickGUI::WIDGET_EVENT_MOUSE_CLICK, &LobbyGameState::onPlayButtonTapped, this);
}