1.9+iOS7 Textures on simulator ok, but not on device

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
kennyevo
Gnoblar
Posts: 17
Joined: Tue Nov 27, 2012 9:03 am

1.9+iOS7 Textures on simulator ok, but not on device

Post by kennyevo » Tue Dec 31, 2013 1:02 am

Hi!

I've successfully ported my project to iOS with Ogre3D 1.9 and Bullet.
I have a problem, when I run the project on the simulator everything is fine, but on the device, every texture is black! :S

Any idea how to solve this?

Thank you in advance!
0 x

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

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by masterfalcon » Tue Dec 31, 2013 2:18 am

Need more info. Are you using the latest 1.9 source(I fixed an issue like this a week or so ago)? What device is this? Could you provide the log?
0 x

kennyevo
Gnoblar
Posts: 17
Joined: Tue Nov 27, 2012 9:03 am

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by kennyevo » Tue Dec 31, 2013 2:33 am

Hi!
I'm using the latest 1.9 source from the repo, my device is an iPhone4 with iOS 7.0.4

Here are the logs:

The one with the simulator:
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.
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.3
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,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
PVRTC codec registering
ETC 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.9.0 (Ghadamon)
Installing plugin: OpenGL ES 2.0 RenderSystem
OpenGL ES 2.x Rendering Subsystem created.
Plugin successfully installed
CPU Identifier & Features
-------------------------
* CPU ID: GenuineIntel: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: no
* 3DNOWEXT: no
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
Registering ResourceManager for type Texture
GLES2RenderSystem::_createRenderWindow "OgreFramework", 320x480 fullscreen miscParams: FSAA=0 contentScalingFactor=2 displayFrequency=0 Hz
The iOS Simulator libSystem was initialized out of order. This is most often caused by running host executables or inserting host dylibs. In the future, this will cause an abort.
iOS: Window created 320 x 480 with backing store size 960 x 640 using content scaling factor 2.0
GL_VERSION = OpenGL ES 2.0 APPLE-9.2.1
GL_VENDOR = Apple Computer, Inc.
GL_RENDERER = Apple Software Renderer
GL_EXTENSIONS = GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc
EXT:GL_OES_depth_texture
EXT:GL_OES_depth24
EXT:GL_OES_element_index_uint
EXT:GL_OES_fbo_render_mipmap
EXT:GL_OES_mapbuffer
EXT:GL_OES_packed_depth_stencil
EXT:GL_OES_rgb8_rgba8
EXT:GL_OES_standard_derivatives
EXT:GL_OES_texture_float
EXT:GL_OES_texture_half_float
EXT:GL_OES_texture_half_float_linear
EXT:GL_OES_vertex_array_object
EXT:GL_EXT_blend_minmax
EXT:GL_EXT_color_buffer_half_float
EXT:GL_EXT_debug_label
EXT:GL_EXT_debug_marker
EXT:GL_EXT_discard_framebuffer
EXT:GL_EXT_draw_instanced
EXT:GL_EXT_instanced_arrays
EXT:GL_EXT_map_buffer_range
EXT:GL_EXT_occlusion_query_boolean
EXT:GL_EXT_pvrtc_sRGB
EXT:GL_EXT_read_format_bgra
EXT:GL_EXT_separate_shader_objects
EXT:GL_EXT_shader_framebuffer_fetch
EXT:GL_EXT_shader_texture_lod
EXT:GL_EXT_shadow_samplers
EXT:GL_EXT_sRGB
EXT:GL_EXT_texture_filter_anisotropic
EXT:GL_EXT_texture_rg
EXT:GL_EXT_texture_storage
EXT:GL_APPLE_copy_texture_levels
EXT:GL_APPLE_framebuffer_multisample
EXT:GL_APPLE_rgb_422
EXT:GL_APPLE_sync
EXT:GL_APPLE_texture_format_BGRA8888
EXT:GL_APPLE_texture_max_level
EXT:GL_IMG_read_format
EXT:GL_IMG_texture_compression_pvrtc
**************************************
*** OpenGL ES 2.x Renderer Started ***
**************************************
GLSL ES support detected
Registering ResourceManager for type GpuProgram
GL ES 2: Using FBOs for rendering to textures
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_RG8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
[GLES2] : Valid FBO targets PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_FLOAT16_RGB PF_X8R8G8B8 PF_SHORT_RGBA PF_R8 PF_RG8
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 2.x Rendering Subsystem
GPU Vendor: apple
Device Name: Apple Software Renderer
Driver Version: 0.0.0.0
* Fixed function pipeline: no
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: no
* Hardware vertex / index buffers: yes
* 32-bit index buffers: yes
* Vertex programs: yes
* Number of floating-point constants for vertex programs: 128
* Number of integer constants for vertex programs: 128
* Number of boolean constants for vertex programs: 128
* Fragment programs: yes
* Number of floating-point constants for fragment programs: 64
* Number of integer constants for fragment programs: 64
* Number of boolean constants for fragment programs: 64
* 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
* Tesselation Hull programs: no
* Number of floating-point constants for tesselation hull programs: 0
* Number of integer constants for tesselation hull programs: 0
* Number of boolean constants for tesselation hull programs: 0
* Tesselation Domain programs: no
* Number of floating-point constants for tesselation domain programs: 0
* Number of integer constants for tesselation domain programs: 0
* Number of boolean constants for tesselation domain programs: 0
* Compute programs: no
* Number of floating-point constants for compute programs: 0
* Number of integer constants for compute programs: 0
* Number of boolean constants for compute programs: 0
* Supported Shader Profiles: glsles
* Texture Compression: yes
- DXT: no
- VTC: no
- PVRTC: yes
- ATC: no
- ETC1: no
- ETC2: no
- BC4/BC5: no
- BC6H/BC7: no
* 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: yes
* Non-power-of-two textures: yes
* 1d textures: yes
* Volume textures: no
* Multiple Render Targets: 1
- With different bit depths: no
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 0
* 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
* Hardware Atomic Counters: 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
* Vertex Array Objects: yes
* Separate shader objects: yes
DefaultWorkQueue('Root') initialising on thread 0x2c9f1a8.
DefaultWorkQueue('Root')::WorkerFunc - thread 0xb0115000 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0xb0197000 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0xb0219000 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0xb029b000 starting.
Particle Renderer Type 'billboard' registered
Creating resource group Bootstrap
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/models' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/RTShaderLib' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/RTShaderLib/materials' of type 'FileSystem' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '/Users/jakaba/Library/Application Support/iPhone Simulator/7.0.3/Applications/32599EA1-F39B-470A-8265-4845039D0DF6/ogretest.app/media/packs/skybox.zip' of type 'Zip' to resource group 'General'
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Creating resources for group Autodetect
All done
Parsing scripts for resource group Bootstrap
Parsing script SdkTrays.material
Finished parsing scripts for resource group Bootstrap
Creating resources for group Bootstrap
All done
Parsing scripts for resource group General
Parsing script car.material
Parsing script challenger_wheel.material
Parsing script chassis.material
Parsing script Examples.material
Compiler error: reference to a non existing object in Examples.material(253)
Compiler error: reference to a non existing object in Examples.material(772)
Compiler error: reference to a non existing object in Examples.material(784)
Compiler error: reference to a non existing object in Examples.material(1281)
Compiler error: reference to a non existing object in Examples.material(1473)
Compiler error: reference to a non existing object in Examples.material(1508)
Compiler error: reference to a non existing object in Examples.material(1617)
Compiler error: reference to a non existing object in Examples.material(1622)
Compiler error: reference to a non existing object in Examples.material(1716)
Parsing script Ogre.material
Parsing script TestLevel.material
Parsing script track.material
Parsing script wheel.material
Parsing script HardwareSkinningShadow.material
Parsing script RTShaderSystem.material
Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(211): token "rtshader_system" is not recognized
Finished parsing scripts for resource group General
Creating resources for group General
All done
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Creating resources for group Internal
All done
Demo initialized!
Entering GameState...
Mesh: Loading track.mesh.
Can't assign material Material to SubEntity of groundEntity because this Material does not exist. Have you forgotten to define it in a .material script?
Texture: TRACK01.TGA: Loading 1 faces(PF_R8G8B8,1024x1024x1) with 10 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,1024x1024x1.
Mesh: Loading car.mesh.
Error loading texture LICENSE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource LICENSE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 MISC.png: Loading 1 faces(PF_A8R8G8B8,512x256x1) with 9 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,512x256x1.
Texture: CHALLENGER71 BRAKELIGHT.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x128x1.
Texture: BOTTOM.png: Loading 1 faces(PF_R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,256x128x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 BADGING.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DRIVER.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DRIVER.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: ENGINE.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x128x1.
Texture: CHALLENGER71 HEADLIGHT.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x64x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 INTERIOR.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,512x512x1.
Mesh: Loading wheel.mesh.
WARNING: wheel.mesh is an older format ([MeshSerializer_v1.40]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
Texture: Tire_tex.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
The log from the device:
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.
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.3
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,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
PVRTC codec registering
ETC 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.9.0 (Ghadamon)
Installing plugin: OpenGL ES 2.0 RenderSystem
OpenGL ES 2.x Rendering Subsystem created.
Plugin successfully installed
CPU Identifier & Features
-------------------------
* CPU ID: ARMv7
* VFP: no
* NEON: yes
-------------------------
Registering ResourceManager for type Texture
GLES2RenderSystem::_createRenderWindow "OgreFramework", 320x480 fullscreen miscParams: FSAA=0 contentScalingFactor=2 displayFrequency=0 Hz
iOS: Window created 320 x 480 with backing store size 960 x 640 using content scaling factor 2.0
GL_VERSION = OpenGL ES 2.0 IMGSGX535-97
GL_VENDOR = Imagination Technologies
GL_RENDERER = PowerVR SGX 535
GL_EXTENSIONS = GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_EXT_texture_storage GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc
EXT:GL_OES_depth_texture
EXT:GL_OES_depth24
EXT:GL_OES_element_index_uint
EXT:GL_OES_fbo_render_mipmap
EXT:GL_OES_mapbuffer
EXT:GL_OES_packed_depth_stencil
EXT:GL_OES_rgb8_rgba8
EXT:GL_OES_standard_derivatives
EXT:GL_OES_texture_float
EXT:GL_OES_texture_half_float
EXT:GL_OES_vertex_array_object
EXT:GL_EXT_blend_minmax
EXT:GL_EXT_debug_label
EXT:GL_EXT_debug_marker
EXT:GL_EXT_discard_framebuffer
EXT:GL_EXT_draw_instanced
EXT:GL_EXT_instanced_arrays
EXT:GL_EXT_map_buffer_range
EXT:GL_EXT_read_format_bgra
EXT:GL_EXT_separate_shader_objects
EXT:GL_EXT_shader_framebuffer_fetch
EXT:GL_EXT_shader_texture_lod
EXT:GL_EXT_texture_filter_anisotropic
EXT:GL_EXT_texture_storage
EXT:GL_APPLE_copy_texture_levels
EXT:GL_APPLE_framebuffer_multisample
EXT:GL_APPLE_rgb_422
EXT:GL_APPLE_sync
EXT:GL_APPLE_texture_format_BGRA8888
EXT:GL_APPLE_texture_max_level
EXT:GL_IMG_read_format
EXT:GL_IMG_texture_compression_pvrtc
**************************************
*** OpenGL ES 2.x Renderer Started ***
**************************************
GLSL ES support detected
Registering ResourceManager for type GpuProgram
GL ES 2: Using FBOs for rendering to textures
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
[GLES2] : Valid FBO targets PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_X8R8G8B8 PF_SHORT_RGBA
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 2.x Rendering Subsystem
GPU Vendor: imagination technologies
Device Name: PowerVR SGX 535
Driver Version: 0.0.0.0
* Fixed function pipeline: no
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: no
* Hardware vertex / index buffers: yes
* 32-bit index buffers: yes
* Vertex programs: yes
* Number of floating-point constants for vertex programs: 128
* Number of integer constants for vertex programs: 128
* Number of boolean constants for vertex programs: 128
* Fragment programs: yes
* Number of floating-point constants for fragment programs: 64
* Number of integer constants for fragment programs: 64
* Number of boolean constants for fragment programs: 64
* 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
* Tesselation Hull programs: no
* Number of floating-point constants for tesselation hull programs: 0
* Number of integer constants for tesselation hull programs: 0
* Number of boolean constants for tesselation hull programs: 0
* Tesselation Domain programs: no
* Number of floating-point constants for tesselation domain programs: 0
* Number of integer constants for tesselation domain programs: 0
* Number of boolean constants for tesselation domain programs: 0
* Compute programs: no
* Number of floating-point constants for compute programs: 0
* Number of integer constants for compute programs: 0
* Number of boolean constants for compute programs: 0
* Supported Shader Profiles: glsles
* Texture Compression: yes
- DXT: no
- VTC: no
- PVRTC: yes
- ATC: no
- ETC1: no
- ETC2: no
- BC4/BC5: no
- BC6H/BC7: no
* Scissor Rectangle: yes
* Hardware Occlusion Query: no
* User clip planes: no
* 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
* 1d textures: yes
* Volume textures: no
* Multiple Render Targets: 1
- With different bit depths: no
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 0
* 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
* Hardware Atomic Counters: 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
* Vertex Array Objects: yes
* Separate shader objects: yes
DefaultWorkQueue('Root') initialising on thread 0x3b32d18c.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x4510000 starting.
Particle Renderer Type 'billboard' registered
Creating resource group Bootstrap
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/models' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/RTShaderLib' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/RTShaderLib/materials' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '/var/mobile/Applications/FF283BD8-8F66-4AC5-B1C4-5AD9FDFB64F8/ogretest.app/media/packs/skybox.zip' of type 'Zip' to resource group 'General'
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Creating resources for group Autodetect
All done
Parsing scripts for resource group Bootstrap
Parsing script SdkTrays.material
Finished parsing scripts for resource group Bootstrap
Creating resources for group Bootstrap
All done
Parsing scripts for resource group General
Parsing script Examples.material
Compiler error: reference to a non existing object in Examples.material(253)
Compiler error: reference to a non existing object in Examples.material(772)
Compiler error: reference to a non existing object in Examples.material(784)
Compiler error: reference to a non existing object in Examples.material(1281)
Compiler error: reference to a non existing object in Examples.material(1473)
Compiler error: reference to a non existing object in Examples.material(1508)
Compiler error: reference to a non existing object in Examples.material(1617)
Compiler error: reference to a non existing object in Examples.material(1622)
Compiler error: reference to a non existing object in Examples.material(1716)
Parsing script Ogre.material
Parsing script TestLevel.material
Parsing script car.material
Parsing script challenger_wheel.material
Parsing script chassis.material
Parsing script track.material
Parsing script wheel.material
Parsing script HardwareSkinningShadow.material
Parsing script RTShaderSystem.material
Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(211): token "rtshader_system" is not recognized
Finished parsing scripts for resource group General
Creating resources for group General
All done
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Creating resources for group Internal
All done
Demo initialized!
Entering GameState...
Mesh: Loading track.mesh.
Can't assign material Material to SubEntity of groundEntity because this Material does not exist. Have you forgotten to define it in a .material script?
Error loading texture TRACK01.TGA. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource TRACK01.TGA in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Mesh: Loading car.mesh.
Error loading texture LICENSE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource LICENSE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 MISC.png: Loading 1 faces(PF_A8R8G8B8,512x256x1) with 9 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,512x256x1.
Texture: CHALLENGER71 BRAKELIGHT.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x128x1.
Texture: BOTTOM.png: Loading 1 faces(PF_R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,256x128x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 BADGING.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Error loading texture DRIVER.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DRIVER.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: ENGINE.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x128x1.
Texture: CHALLENGER71 HEADLIGHT.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x64x1.
Error loading texture DOORLINE.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DOORLINE.png in resource group General or any other group. in ResourceGroupManager::openResource at /Users/jakaba/Documents/Projects/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Texture: CHALLENGER71 INTERIOR.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,512x512x1.
Mesh: Loading wheel.mesh.
WARNING: wheel.mesh is an older format ([MeshSerializer_v1.40]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
Texture: Tire_tex.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
0 x

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

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by masterfalcon » Tue Dec 31, 2013 3:19 pm

I think this that is repeated for every texture might be the cause:

Code: Select all

 Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException)
0 x

kennyevo
Gnoblar
Posts: 17
Joined: Tue Nov 27, 2012 9:03 am

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by kennyevo » Wed Jan 01, 2014 1:53 am

But why does it render correctly on simulator? What's the difference?
0 x

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

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by masterfalcon » Sat Jan 04, 2014 8:59 am

I would check that all the resource locations are correct and make sure that none are being skipped. It looks like you may have hardcoded the resource location paths, they should be relative to the app. You can use macBundlePath() to get the base path up to ogretest.app
0 x

kennyevo
Gnoblar
Posts: 17
Joined: Tue Nov 27, 2012 9:03 am

Re: 1.9+iOS7 Textures on simulator ok, but not on device

Post by kennyevo » Sat Jan 04, 2014 5:30 pm

I'm using the 1.8 Xcode template modified to work with xcode5 and ios7. (and ogre 1.9)
I'll take a look at the resource loading part of the framework, but if I remember correctly, it uses the macBundlePath().
0 x

Post Reply