iPhone Port

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Locked
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: iPhone Port

Post by Assaf Raman »

Nice work! The best patch this year so far.
Watch out for my OGRE related tweets here.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote:

Code: Select all

CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P7350  @ 2.00GHz
 *      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", 0x0 windowed  miscParams: FSAA=0 displayFrequency= orientation=480 x 320 
[Switching to process 28422 thread 0x3a07]
unable to read unknown load command 0x22
GL_VERSION = OpenGL ES-CM 1.1 APPLE
GL_VENDOR = Apple Computer, Inc.
GL_RENDERER = Apple Software Renderer
GL_EXTENSIONS = GL_APPLE_texture_2D_limited_npot GL_EXT_blend_minmax GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_paletted_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_fbo_render_mipmap GL_OES_framebuffer_object GL_OES_mapbuffer GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_mirrored_repeat 
EXT: GL_APPLE_texture_2D_limited_npot
EXT: GL_EXT_blend_minmax
EXT: GL_EXT_texture_filter_anisotropic
EXT: GL_EXT_texture_lod_bias
EXT: GL_IMG_read_format
EXT: GL_IMG_texture_compression_pvrtc
EXT: GL_IMG_texture_format_BGRA8888
EXT: GL_OES_blend_equation_separate
EXT: GL_OES_blend_func_separate
EXT: GL_OES_blend_subtract
EXT: GL_OES_compressed_paletted_texture
EXT: GL_OES_depth24
EXT: GL_OES_draw_texture
EXT: GL_OES_fbo_render_mipmap
EXT: GL_OES_framebuffer_object
EXT: GL_OES_mapbuffer
EXT: GL_OES_matrix_palette
EXT: GL_OES_point_size_array
EXT: GL_OES_point_sprite
EXT: GL_OES_read_format
EXT: GL_OES_rgb8_rgba8
EXT: GL_OES_stencil8
EXT: GL_OES_texture_mirrored_repeat
**************************************
*** OpenGL ES 1.x Renderer Started ***
**************************************
Registering ResourceManager for type GpuProgram
GL ES: Using PBuffers for rendering to textures
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 1.x Rendering Subsystem
GPU Vendor: apple
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: no
 * Cube mapping: no
 * Hardware stencil buffer: no
 * Hardware vertex / index buffers: yes
 * Vertex programs: no
 * Number of floating-point constants for vertex programs: 0
 * Number of integer constants for vertex programs: 0
 * Number of boolean constants for vertex programs: 0
 * Fragment programs: no
 * Number of floating-point constants for fragment programs: 0
 * Number of integer constants for fragment programs: 0
 * Number of boolean constants for fragment programs: 0
 * Geometry programs: no
 * Number of floating-point constants for geometry programs: 0
 * Number of integer constants for geometry programs: 0
 * Number of boolean constants for geometry programs: 0
 * Supported Shader Profiles:
 * Texture Compression: yes
   - DXT: no
   - VTC: no
   - PVRTC: yes
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: yes
 * User clip planes: no
 * 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 0x4d29510.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x4d6bdc0 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x4d6c040 starting.
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Parsing script StdQuad_vp.program
Parsing script deferred.glsl.program
Parsing script deferred.hlsl.program
Parsing script deferred.program
Parsing script deferred_post_ambient.program
Parsing script deferred_post_debug.glsl.program
Parsing script deferred_post_debug.hlsl.program
Parsing script deferred_post_debug.program
Parsing script deferred_post_minilight.glsl.program
Parsing script deferred_post_minilight.hlsl.program
Parsing script deferred_post_minilight.program
Parsing script deferred_post_multipass.glsl.program
Parsing script deferred_post_multipass.hlsl.program
Parsing script deferred_post_onepass.glsl.program
Parsing script deferred_post_onepass.hlsl.program
Parsing script deferred_post_vs.program
Parsing script ASCII.material
Parsing script ASMSwizzle.material
Compiler error: object unsupported by render system in ASMSwizzle.material(1)
Parsing script BlackAndWhite.material
Parsing script Bloom.material
Parsing script Bloom2.material
Parsing script CGSwizzle.material
Parsing script DepthShadowmap.material
Parsing script Dither.material
Parsing script DOF.material
Parsing script Embossed.material
Parsing script Example-DynTex.material
Parsing script Example-Water.material
Parsing script Example.material
Parsing script Examples-Advanced.material
Compiler error: object unsupported by render system in Examples-Advanced.material(413)
Parsing script facial.material
Parsing script Glass.material
Parsing script GLSLSwizzle.material
Parsing script Halftone.material
Parsing script hdr.material
Parsing script HeatVision.material
Parsing script Hurt.material
Parsing script instancing.material
Parsing script Invert.material
Parsing script IsoSurf.material
Parsing script Laplace.material
Parsing script MotionBlur.material
Parsing script MRTtest.material
Parsing script NightVision.material
Parsing script Ocean.material
[Switching to process 28422 thread 0x420b]
Parsing script OffsetMapping.material
Compiler error: object unsupported by render system in OffsetMapping.material(18)
Parsing script Ogre.material
Parsing script OldMovie.material
Parsing script OldTV.material
Parsing script ParticleGS.material
Parsing script Posterize.material
Parsing script pssm.material
Parsing script RadialBlur.material
Parsing script RZR-002.material
Parsing script SharpenEdges.material
Parsing script smoke.material
Parsing script Tiling.material
Parsing script VarianceShadowmap.material
Parsing script deferred.material
Parsing script deferred_post_ambient.material
Parsing script deferred_post_debug.material
Parsing script deferred_post_minilight.material
Parsing script deferred_post_multipass.material
Parsing script deferred_post_onepass.material
Parsing script deferreddemo.material
Parsing script ROOM.material
Parsing script RomanBath.material
Parsing script emitted_emitter.particle
Parsing script Example-Water.particle
Parsing script Example.particle
Parsing script smoke.particle
Parsing script Examples.compositor
Parsing script deferred.compositor
Parsing script sample.fontdef
Parsing script Compositor.overlay
Parsing script DP3.overlay
Parsing script Example-CubeMapping.overlay
Parsing script Example-DynTex.overlay
Parsing script Example-Water.overlay
Parsing script Shadows.overlay
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Texture: BumpyMetal.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
*** Initializing OIS ***
Assertion failed: ((min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"), function setExtents, file /Users/wolfman/Ogre/iphone/OgreMain/include/OgreAxisAlignedBox.h, line 253.
Hi,
every sample stops after the loading screen due this exception.
System spec OSX 10.5.7 3.1 iphone sdk and compiled for 3.1 simulator
I remember seeing this exact error for quite a while, I'll do some research tonight. Though your createRenderWindow command looks wonky.

Code: Select all

GLESRenderSystem::_createRenderWindow "OGRE Render Window", 0x0 windowed  miscParams: FSAA=0 displayFrequency= orientation=480 x 320 
Maybe try resetting the simulator(iPhone Simulator menu->Reset Content and Settings...). That might clear it up.
smithbob
Gnoblar
Posts: 5
Joined: Tue Apr 08, 2008 12:32 pm

Re: iPhone Port

Post by smithbob »

Hello,

I succeeded to build ogre and and a sample but it failed to start. I've got the following error
"no launchable executable present at path".
I think it is certainly due to a certificate problem.

In "BuildWithCMake.txt" there is the following information:
"And another thing. You will need to manually set the Bundle Identifier property of
the Info.plist file to match the App ID of the chosen code signing identity.
This can be done from the Target Properties panel. It must match the bundle
identifier of a valid developer certificate if you are building for devices."

But I did not understand what I have to do exactly. I compared the ogre sample project settings with other iPhone project I got and did not see any important differences.

Do you have any advices for me ?

thanks
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Smithbob,

That info is actually stored in the Info.plist file for each sample but can be accessed through Target properties. Double click on a target in Xcode, in the properties inspector that appears there will be 4 tabs across the top. I'm getting fitted for a suit right now so I can't see what they are named but select the third tab from the left. You should see bundle identifier, icon file, document types and several other fields. This is the screen where you can enter the bundle identifier for your app.

Hope this helps. I'm gonna take a break from profiling to write up the instructions for wiki tonight.

Masterfalcon
rbgames
Gnoblar
Posts: 5
Joined: Sat Jul 11, 2009 11:24 pm

Re: iPhone Port

Post by rbgames »

I'm going to put more time into this today, although I have a milestone on our current game project as well. I'm still at the point where everything works fine, installs to the phone, shows the Ogre logo and "spinner", then just a black screen. I do not see any errors in the debug console during the engine initialization, script parsing ,etc.. Looking forward to your wiki info.

RBGames
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

smithbob wrote:Hello,

I succeeded to build ogre and and a sample but it failed to start. I've got the following error
"no launchable executable present at path".
I think it is certainly due to a certificate problem.
Make sure that the correct Demo is selected as the Active Executable. You can do this from the menu Project->Set Active Executable.
sanfir
Halfling
Posts: 46
Joined: Thu Dec 22, 2005 2:43 pm
Location: Cairo, Egypt

Re: iPhone Port

Post by sanfir »

Hi, I'm new to Mac development, so please bear with me..
I followed all the steps in BuildingWithCmake.txt
But when I try to build the project in xcode, i get this wierd error

Code: Select all

Building target “libOgreMainStatic.a” of project “OGRE” with configuration “Debug”


Checking Dependencies
No architectures to compile for (ARCHS= , VALID_ARCHS=i386).
which i have no idea what it means
googling it only showed a post about having non intel motherboards, which is not my case.
Thank you.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

sanfir,

What version of Xcode are you using. Also, you do have iPhone SDK 3.0 installed, right?
sanfir
Halfling
Posts: 46
Joined: Thu Dec 22, 2005 2:43 pm
Location: Cairo, Egypt

Re: iPhone Port

Post by sanfir »

Thank you for your prompt reply
XCode is version 3.1.3, and yes I do have the SDK installed
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote:

Code: Select all

Assertion failed: ((min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"), function setExtents, file /Users/wolfman/Ogre/iphone/OgreMain/include/OgreAxisAlignedBox.h, line 253.
Hi,
every sample stops after the loading screen due this exception.
System spec OSX 10.5.7 3.1 iphone sdk and compiled for 3.1 simulator
Ahhh, try updating from trunk. Checkin 8806 should(hopefully) take care of that error.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: iPhone Port

Post by Wolfmanfx »

Ok i try it again after work :)
One thing the cMake script for osx do not care about the dep directory property (cmake gui configuration) it always looks for Dependicies/ iPhoneDependicies directory its a little bit confusing.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote:Ok i try it again after work :)
One thing the cMake script for osx do not care about the dep directory property (cmake gui configuration) it always looks for Dependicies/ iPhoneDependicies directory its a little bit confusing.
I'm not quite sure what you mean, could you elaborate more?
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: iPhone Port

Post by Assaf Raman »

The GUI of CMAKE (cmake-gui.exe) shows you a list of parameters you can set.
I guess he means that the parameter from the GUI is ignored.
Attachments
gui.GIF
gui.GIF (44.78 KiB) Viewed 3295 times
Watch out for my OGRE related tweets here.
sanfir
Halfling
Posts: 46
Joined: Thu Dec 22, 2005 2:43 pm
Location: Cairo, Egypt

Re: iPhone Port

Post by sanfir »

Code: Select all

    Building target “libOgreMainStatic.a” of project “OGRE” with configuration “Debug”


    Checking Dependencies
    No architectures to compile for (ARCHS= , VALID_ARCHS=i386).
I realized my mistake :D
I was using the iPhone SDK Beta :oops:
I downloaded the final version, and compiling now without the error, hope it works fine, fingers crossed :D
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: iPhone Port

Post by Wolfmanfx »

Yep assaf is right :)
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote:Yep assaf is right :)
Strange, I'll have to check that out after work.
smithbob
Gnoblar
Posts: 5
Joined: Tue Apr 08, 2008 12:32 pm

Re: iPhone Port

Post by smithbob »

masterfalcon wrote:Smithbob,

That info is actually stored in the Info.plist file for each sample but can be accessed through Target properties. Double click on a target in Xcode, in the properties inspector that appears there will be 4 tabs across the top. I'm getting fitted for a suit right now so I can't see what they are named but select the third tab from the left. You should see bundle identifier, icon file, document types and several other fields. This is the screen where you can enter the bundle identifier for your app.

Hope this helps. I'm gonna take a break from profiling to write up the instructions for wiki tonight.

Masterfalcon
Ok it is what I am looking ... but I've got the same value as my other test that correctly run on my ipod. The value is "com.yourcompany.${PRODUCT_NAME:rfc1034identifier}" ... yes it is not something that comes from my developer account. it seems more like a default value but it works for my other tests. There is something I did not understand ... I think I wait until Wednesday so some one can help me at my office :) ...

If I look at the Program Portable of the iPhone Developer Program there is Certificats, Devices, AppID and Provisioning. Where should I found the bunder identifier ?

Nicolas
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: iPhone Port

Post by Wolfmanfx »

Code: Select all

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.11.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.7.0dev-unstable (Cthugha)
Installing plugin: OpenGL ES 1.x RenderSystem
OpenGL ES 1.x Rendering Subsystem created.
Plugin successfully installed
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Installing plugin: BSP Scene Manager
Plugin successfully installed
Creating resource group Bootstrap
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/materials/textures/nvidia' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/gui' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/wolfman/Library/Application Support/iPhone Simulator/User/Applications/CE9B0601-930B-4D64-BE7F-FDF4DED6474F/Demo_CameraTrack.app/Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P7350  @ 2.00GHz
 *      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", 0x0 windowed  miscParams: FSAA=0 displayFrequency= orientation=480 x 320 
GL_VERSION = OpenGL ES-CM 1.1 APPLE
GL_VENDOR = Apple Computer, Inc.
GL_RENDERER = Apple Software Renderer
GL_EXTENSIONS = GL_APPLE_texture_2D_limited_npot GL_EXT_blend_minmax GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_paletted_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_fbo_render_mipmap GL_OES_framebuffer_object GL_OES_mapbuffer GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_mirrored_repeat 
EXT: GL_APPLE_texture_2D_limited_npot
EXT: GL_EXT_blend_minmax
EXT: GL_EXT_texture_filter_anisotropic
EXT: GL_EXT_texture_lod_bias
EXT: GL_IMG_read_format
EXT: GL_IMG_texture_compression_pvrtc
EXT: GL_IMG_texture_format_BGRA8888
EXT: GL_OES_blend_equation_separate
EXT: GL_OES_blend_func_separate
EXT: GL_OES_blend_subtract
EXT: GL_OES_compressed_paletted_texture
EXT: GL_OES_depth24
EXT: GL_OES_draw_texture
EXT: GL_OES_fbo_render_mipmap
EXT: GL_OES_framebuffer_object
EXT: GL_OES_mapbuffer
EXT: GL_OES_matrix_palette
EXT: GL_OES_point_size_array
EXT: GL_OES_point_sprite
EXT: GL_OES_read_format
EXT: GL_OES_rgb8_rgba8
EXT: GL_OES_stencil8
EXT: GL_OES_texture_mirrored_repeat
**************************************
*** OpenGL ES 1.x Renderer Started ***
**************************************
Registering ResourceManager for type GpuProgram
GL ES: Using PBuffers for rendering to textures
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 1.x Rendering Subsystem
GPU Vendor: apple
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: 0
 * Number of integer constants for vertex programs: 0
 * Number of boolean constants for vertex programs: 0
 * Fragment programs: no
 * Number of floating-point constants for fragment programs: 0
 * Number of integer constants for fragment programs: 0
 * Number of boolean constants for fragment programs: 0
 * Geometry programs: no
 * Number of floating-point constants for geometry programs: 0
 * Number of integer constants for geometry programs: 0
 * Number of boolean constants for geometry programs: 0
 * Supported Shader Profiles:
 * Texture Compression: yes
   - DXT: no
   - VTC: no
   - PVRTC: yes
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: yes
 * User clip planes: no
 * 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 0x4d29560.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x4d75bc0 starting.
Particle Renderer Type 'billboard' registered
DefaultWorkQueue('Root')::WorkerFunc - thread 0x4d74c70 starting.
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Parsing script StdQuad_vp.program
Parsing script deferred.glsl.program
Parsing script deferred.hlsl.program
Parsing script deferred.program
Parsing script deferred_post_ambient.program
Parsing script deferred_post_debug.glsl.program
Parsing script deferred_post_debug.hlsl.program
Parsing script deferred_post_debug.program
Parsing script deferred_post_minilight.glsl.program
Parsing script deferred_post_minilight.hlsl.program
Parsing script deferred_post_minilight.program
Parsing script deferred_post_multipass.glsl.program
[Switching to process 4541 thread 0x3a07]
unable to read unknown load command 0x22
[Switching to process 4541 thread 0x420b]
[Switching to process 4541 local thread 0xf03]
Parsing script deferred_post_multipass.hlsl.program
Parsing script deferred_post_onepass.glsl.program
Parsing script deferred_post_onepass.hlsl.program
Parsing script deferred_post_vs.program
Parsing script ASCII.material
Parsing script ASMSwizzle.material
Compiler error: object unsupported by render system in ASMSwizzle.material(1)
Parsing script BlackAndWhite.material
Parsing script Bloom.material
Parsing script Bloom2.material
Parsing script CGSwizzle.material
Parsing script DepthShadowmap.material
Parsing script Dither.material
Parsing script DOF.material
Parsing script Embossed.material
Parsing script Example-DynTex.material
Parsing script Example-Water.material
Parsing script Example.material
Parsing script Examples-Advanced.material
Compiler error: object unsupported by render system in Examples-Advanced.material(413)
Parsing script facial.material
Parsing script Glass.material
Parsing script GLSLSwizzle.material
Parsing script Halftone.material
Parsing script hdr.material
Parsing script HeatVision.material
Parsing script Hurt.material
Parsing script instancing.material
Parsing script Invert.material
Parsing script IsoSurf.material
Parsing script Laplace.material
Parsing script MotionBlur.material
Parsing script MRTtest.material
Parsing script NightVision.material
Parsing script Ocean.material
Parsing script OffsetMapping.material
Compiler error: object unsupported by render system in OffsetMapping.material(18)
Parsing script Ogre.material
Parsing script OldMovie.material
Parsing script OldTV.material
Parsing script ParticleGS.material
Parsing script Posterize.material
Parsing script pssm.material
Parsing script RadialBlur.material
Parsing script RZR-002.material
Parsing script SharpenEdges.material
Parsing script smoke.material
Parsing script Tiling.material
Parsing script VarianceShadowmap.material
Parsing script deferred.material
Parsing script deferred_post_ambient.material
Parsing script deferred_post_debug.material
Parsing script deferred_post_minilight.material
Parsing script deferred_post_multipass.material
Parsing script deferred_post_onepass.material
Parsing script deferreddemo.material
Parsing script ROOM.material
Parsing script RomanBath.material
Parsing script emitted_emitter.particle
Parsing script Example-Water.particle
Parsing script Example.particle
Parsing script smoke.particle
Parsing script Examples.compositor
Parsing script deferred.compositor
Parsing script sample.fontdef
Parsing script Compositor.overlay
Parsing script DP3.overlay
Parsing script Example-CubeMapping.overlay
Parsing script Example-DynTex.overlay
Parsing script Example-Water.overlay
Parsing script Shadows.overlay
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: RustySteel.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Mesh: Loading ogrehead.mesh.
Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
*** Initializing OIS ***
Assertion failed: ((min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"), function setExtents, file /Users/wolfman/Ogre/iphone/OgreMain/include/OgreAxisAlignedBox.h, line 253.
tried latest version again the same error also cleaned up the simulator
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote: tried latest version again the same error also cleaned up the simulator
I've got an idea of what's going on here that I'll try tonight. Try making an file named ogre.cfg in your build directory. Paste this into it. If it helps then I'll know what to do.

Code: Select all

Render System=OpenGL ES 1.x Rendering Subsystem

[OpenGL ES 1.x Rendering Subsystem]
FSAA=4
Full Screen=Yes
RTT Preferred Mode=Copy
Video Mode=480 x 320
Orientation=Landscape Left
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: iPhone Port

Post by Wolfmanfx »

Iam going to sleep :) but maybe should throw an exception if someone tries to create an window with wrong dimensions ( i think the d3d rendersystem do something similar, at least under win 32). But i do not understand the exeception. Strange tomorrow i give it another try with a fresh checkout. Keep up the good work :) go ogre iphone
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

Wolfmanfx wrote:Iam going to sleep :) but maybe should throw an exception if someone tries to create an window with wrong dimensions ( i think the d3d rendersystem do something similar, at least under win 32). But i do not understand the exeception. Strange tomorrow i give it another try with a fresh checkout. Keep up the good work :) go ogre iphone
I found the issue that you're experiencing. I had my demos copying an ogre.cfg into the app bundle. Without an ogre.cfg, values aren't being set correctly. I'll patch it up after work today.
sanfir
Halfling
Posts: 46
Joined: Thu Dec 22, 2005 2:43 pm
Location: Cairo, Egypt

Re: iPhone Port

Post by sanfir »

I am having the same problem as Wolfmanfx and rbGames, in debug it dumps the Assertion as mentioned above, and in release it just halts on a black screen.
Unfortunately I'm too bad in debugging with XCode, I can't even set a correct breakpoint :oops: so I'll be waiting for the patch
Last edited by sanfir on Wed Jul 15, 2009 1:53 am, edited 1 time in total.
justin
Gnoblar
Posts: 4
Joined: Tue Jul 14, 2009 11:28 pm

Re: iPhone Port

Post by justin »

Preface: Mac OSX 10.5.6 newest 3.0 SDK with XCode

I've been having a problem with libfreetype. The samples link directly to libfreetype.6.dylib, which exists in /usr/X11R6/lib/ (also exists libfreetype.6.3.16.dylib). The compiler says it is arm is an invalid architecture for it and the result are various "_FT" errors called with libOgreMainStatic.a (OgreFont.o).

I read various articles that mostly confused me regarding not needing to explicitly link libfreetype into your targets so I removed the library reference from the target and checked the core libraries for similar references. After cleaning all targets I built each library individually, then built the sample without the libfreetype library reference and still failed with the "_FT" errors, just without any warnings about not being able to build libfreetype with arm architecture.

Any ideas on this? In the meantime I think I'll try and get a new copy of the source, re-read the build instructions and try again.
Last edited by justin on Tue Jul 14, 2009 11:48 pm, edited 1 time in total.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: iPhone Port

Post by masterfalcon »

justin wrote:I've been having a problem with libfreetype. The samples link directly to libfreetype.6.dylib, which exists in /usr/X11R6/lib/ (also exists libfreetype.6.3.16.dylib). The compiler says it is arm is an invalid architecture for it and the result are various "_FT" errors called with libOgreMainStatic.a (OgreFont.o).

I read various articles that mostly confused me regarding not needing to explicitly link libfreetype into your targets so I removed the library reference from the target and checked the core libraries for similar references. After cleaning all targets I built each library individually, then built the sample without the libfreetype library reference and still failed with the "_FT" errors, just without any warnings about not being able to build libfreetype with arm architecture.

Any ideas on this?
Hmm, Could you post the errors? Also, Mac OS X, Xcode and iPhone SDK versions too.
justin
Gnoblar
Posts: 4
Joined: Tue Jul 14, 2009 11:28 pm

Re: iPhone Port

Post by justin »

OS X 10.5.6
SDK: 3.0
XCode: Bundled with SDK .dmg

This error is when the dylib reference is removed from the sample targets. It is identical to if the reference is there, except for a compiler warning declaring that libfreetype.6.dylib does not support arm architecture.

I read at one point you were using the 3.1 SDK. If a newer version of XCode is bundled with it, I do not have it as I have never gone that far. As a registered developer it's not really a problem to use the 3.1 beta SDK though.. as long as I don't have to upgrade my phone to 3.1 beta.

Also, the libraries seem to compile just fine. This is a problem when they are linked into the final executable project.

Image
Locked