Ogre 1.8.1 A png problem in Android

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
ohsheep
Gnoblar
Posts: 4
Joined: Wed Feb 20, 2013 3:02 pm

Ogre 1.8.1 A png problem in Android

Post by ohsheep »

Hello everyone!
I met a problem when I use png in Adnroid.
It doesn't work, I can only see a black screen. But when I change the png to jpg, it works.

Here's my material code:

Code: Select all

vertex_program TexturedVP glsles
{
    source vs_common.glsl
}

fragment_program TexturedFP glsles
{
    source ps_common.glsl
}

material Yuna
{
	technique
	{
		pass
		{
			vertex_program_ref TexturedVP
    	         	{
	            		param_named_auto worldViewProj worldviewproj_matrix
      		 	}
     
      		 	fragment_program_ref TexturedFP
      		 	{
	    	     		param_named textureMap int 0
      		 	}
			texture_unit
			{
				texture tpltex00.png // (texture tpltex00.jpg works!)
			}
		}
	}
}
Then here's the pngLog:

Code: Select all

02-20 21:36:04.743: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.743: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.743: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.743: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.933: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.933: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.933: I/libogresamplebrowser(1231): Adding resource location
02-20 21:36:04.933: I/libogresamplebrowser(1231): Adding resource location
02-20 21:39:33.837: I/ogre(4148): Creating resource group General
02-20 21:39:33.837: I/ogre(4148): Creating resource group Internal
02-20 21:39:33.837: I/ogre(4148): Creating resource group Autodetect
02-20 21:39:33.837: I/ogre(4148): SceneManagerFactory for type 'DefaultSceneManager' registered.
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type Material
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type Mesh
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type Skeleton
02-20 21:39:33.847: I/ogre(4148): MovableObjectFactory for type 'ParticleSystem' registered.
02-20 21:39:33.847: I/ogre(4148): OverlayElementFactory for type Panel registered.
02-20 21:39:33.847: I/ogre(4148): OverlayElementFactory for type BorderPanel registered.
02-20 21:39:33.847: I/ogre(4148): OverlayElementFactory for type TextArea registered.
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type Font
02-20 21:39:33.847: I/ogre(4148): ArchiveFactory for archive type FileSystem registered.
02-20 21:39:33.847: I/ogre(4148): ArchiveFactory for archive type Zip registered.
02-20 21:39:33.847: I/ogre(4148): ArchiveFactory for archive type EmbeddedZip registered.
02-20 21:39:33.847: I/ogre(4148): DDS codec registering
02-20 21:39:33.847: I/ogre(4148): FreeImage version: 3.15.3
02-20 21:39:33.847: I/ogre(4148): This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
02-20 21:39:33.847: I/ogre(4148): Supported formats: jpg,jif,jpeg,jpe,png,gif
02-20 21:39:33.847: I/ogre(4148): PVRTC codec registering
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type HighLevelGpuProgram
02-20 21:39:33.847: I/ogre(4148): Registering ResourceManager for type Compositor
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'Entity' registered.
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'Light' registered.
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'BillboardSet' registered.
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'ManualObject' registered.
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'BillboardChain' registered.
02-20 21:39:33.857: I/ogre(4148): MovableObjectFactory for type 'RibbonTrail' registered.
02-20 21:39:33.857: I/ogre(4148): *-*-* OGRE Initialising
02-20 21:39:33.857: I/ogre(4148): *-*-* Version 1.8.1 (Byatis)
02-20 21:39:33.857: I/ogre(4148): Installing plugin: OpenGL ES 2.0 RenderSystem
02-20 21:39:33.857: I/ogre(4148): OpenGL ES 2.x Rendering Subsystem created.
02-20 21:39:33.857: I/ogre(4148): 	GLSupport addConfig called
02-20 21:39:33.857: I/ogre(4148): Plugin successfully installed
02-20 21:39:33.857: I/ogre(4148): Installing plugin: ParticleFX
02-20 21:39:33.857: I/ogre(4148): Particle Emitter Type 'Point' registered
02-20 21:39:33.857: I/ogre(4148): Particle Emitter Type 'Box' registered
02-20 21:39:33.857: I/ogre(4148): Particle Emitter Type 'Ellipsoid' registered
02-20 21:39:33.857: I/ogre(4148): Particle Emitter Type 'Cylinder' registered
02-20 21:39:33.857: I/ogre(4148): Particle Emitter Type 'Ring' registered
02-20 21:39:33.867: I/ogre(4148): Particle Emitter Type 'HollowEllipsoid' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'LinearForce' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'ColourFader' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'ColourFader2' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'ColourImage' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'ColourInterpolator' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'Scaler' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'Rotator' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'DirectionRandomiser' registered
02-20 21:39:33.867: I/ogre(4148): Particle Affector Type 'DeflectorPlane' registered
02-20 21:39:33.867: I/ogre(4148): Plugin successfully installed
02-20 21:39:33.867: I/ogre(4148): CPU Identifier & Features
02-20 21:39:33.867: I/ogre(4148): -------------------------
02-20 21:39:33.867: I/ogre(4148):  *   CPU ID: 
02-20 21:39:33.867: I/ogre(4148):  *      VFP: no
02-20 21:39:33.867: I/ogre(4148):  *     NEON: no
02-20 21:39:33.867: I/ogre(4148): -------------------------
02-20 21:39:33.867: I/ogre(4148): 	GLSupport start called
02-20 21:39:33.867: I/ogre(4148): Registering ResourceManager for type Texture
02-20 21:39:33.867: I/ogre(4148): 	GLSupport createWindow called
02-20 21:39:33.867: I/ogre(4148): ArchiveFactory for archive type Android registered.
02-20 21:39:33.867: I/libogresamplebrowser(4148): Adding resource locations
02-20 21:39:33.867: I/ogre(4148): Creating resource group Popular
02-20 21:39:33.867: I/ogre(4148): Creating resource group Essential
02-20 21:39:33.867: I/ogre(4148): RTShaderLib.mp3 package found
02-20 21:39:33.877: I/ogre(4148): RTShaderLib.mp3 package loaded
02-20 21:39:33.917: I/ogre(4148): Added resource location 'RTShaderLib.mp3' of type 'Android' to resource group 'Popular'
02-20 21:39:33.917: I/ogre(4148): SdkTrays.mp3 package found
02-20 21:39:33.927: I/ogre(4148): SdkTrays.mp3 package loaded
02-20 21:39:33.937: I/ogre(4148): Added resource location 'SdkTrays.mp3' of type 'Android' to resource group 'Essential'
02-20 21:39:33.937: I/ogre(4148): Sinbad.mp3 package found
02-20 21:39:33.957: I/ogre(4148): Sinbad.mp3 package loaded
02-20 21:39:33.967: I/ogre(4148): Added resource location 'Sinbad.mp3' of type 'Android' to resource group 'Essential'
02-20 21:39:33.967: I/ogre(4148): thumbnails.mp3 package found
02-20 21:39:33.977: I/ogre(4148): thumbnails.mp3 package loaded
02-20 21:39:33.997: I/ogre(4148): Added resource location 'thumbnails.mp3' of type 'Android' to resource group 'Essential'
02-20 21:39:34.017: I/ogre(4148): GLES2RenderSystem::_createRenderWindow "OgreAndroidPrimary", 960x465 fullscreen  miscParams: externalGLContext=0 externalWindowHandle=0 
02-20 21:39:34.017: I/ogre(4148): 	GLSupport newWindow called
02-20 21:39:34.017: I/ogre(4148): 	create called
02-20 21:39:34.017: I/ogre(4148): 	initNativeCreatedWindow called
02-20 21:39:34.017: I/ogre(4148): GL_VERSION = OpenGL ES 2.0 1566933
02-20 21:39:34.017: I/ogre(4148): GL_VENDOR = Qualcomm
02-20 21:39:34.017: I/ogre(4148): GL_RENDERER = Adreno (TM) 220
02-20 21:39:34.017: I/ogre(4148): GL_EXTENSIONS = GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_QCOM_memory_monitor GL_AMD_compressed_3DC_texture 
02-20 21:39:34.017: I/ogre(4148): EXT:GL_AMD_compressed_ATC_texture
02-20 21:39:34.017: I/ogre(4148): EXT:GL_AMD_performance_monitor
02-20 21:39:34.017: I/ogre(4148): EXT:GL_AMD_program_binary_Z400
02-20 21:39:34.017: I/ogre(4148): EXT:GL_EXT_texture_filter_anisotropic
02-20 21:39:34.017: I/ogre(4148): EXT:GL_EXT_texture_format_BGRA8888
02-20 21:39:34.017: I/ogre(4148): EXT:GL_EXT_texture_type_2_10_10_10_REV
02-20 21:39:34.017: I/ogre(4148): EXT:GL_NV_fence
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_compressed_ETC1_RGB8_texture
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_depth_texture
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_depth24
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_EGL_image
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_EGL_image_external
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_element_index_uint
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_fbo_render_mipmap
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_fragment_precision_high
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_get_program_binary
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_packed_depth_stencil
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_rgb8_rgba8
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_standard_derivatives
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_texture_3D
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_texture_float
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_texture_half_float
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_texture_half_float_linear
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_texture_npot
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_vertex_half_float
02-20 21:39:34.017: I/ogre(4148): EXT:GL_OES_vertex_type_10_10_10_2
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_binning_control
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_driver_control
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_perfmon_global_mode
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_extended_get
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_extended_get2
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_tiled_rendering
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_writeonly_rendering
02-20 21:39:34.017: I/ogre(4148): EXT:GL_QCOM_memory_monitor
02-20 21:39:34.017: I/ogre(4148): EXT:GL_AMD_compressed_3DC_texture
02-20 21:39:34.017: I/ogre(4148): **************************************
02-20 21:39:34.017: I/ogre(4148): *** OpenGL ES 2.x Renderer Started ***
02-20 21:39:34.017: I/ogre(4148): **************************************
02-20 21:39:34.017: I/ogre(4148): GLSL ES support detected
02-20 21:39:34.017: I/ogre(4148): Registering ResourceManager for type GpuProgram
02-20 21:39:34.017: I/ogre(4148): GL ES 2: Using FBOs for rendering to textures
02-20 21:39:34.027: I/ogre(4148): FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 Packed-D24S8 
02-20 21:39:34.037: I/ogre(4148): FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 Packed-D24S8 
02-20 21:39:34.047: I/ogre(4148): FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 Packed-D24S8 
02-20 21:39:34.057: I/ogre(4148): FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 Packed-D24S8 
02-20 21:39:34.057: I/ogre(4148): [GLES2] : Valid FBO targets PF_UNKNOWN PF_R8G8B8 PF_B8G8R8 PF_X8B8G8R8 
02-20 21:39:34.057: I/ogre(4148): RenderSystem capabilities
02-20 21:39:34.057: I/ogre(4148): -------------------------
02-20 21:39:34.057: I/ogre(4148): RenderSystem Name: OpenGL ES 2.x Rendering Subsystem
02-20 21:39:34.057: I/ogre(4148): GPU Vendor: unknown
02-20 21:39:34.057: I/ogre(4148): Device Name: Adreno (TM) 220
02-20 21:39:34.057: I/ogre(4148): Driver Version: 0.0.0.0
02-20 21:39:34.057: I/ogre(4148):  * Fixed function pipeline: no
02-20 21:39:34.057: I/ogre(4148):  * Hardware generation of mipmaps: yes
02-20 21:39:34.057: I/ogre(4148):  * Texture blending: yes
02-20 21:39:34.057: I/ogre(4148):  * Anisotropic texture filtering: yes
02-20 21:39:34.057: I/ogre(4148):  * Dot product texture operation: yes
02-20 21:39:34.057: I/ogre(4148):  * Cube mapping: yes
02-20 21:39:34.057: I/ogre(4148):  * Hardware stencil buffer: no
02-20 21:39:34.057: I/ogre(4148):  * Hardware vertex / index buffers: yes
02-20 21:39:34.057: I/ogre(4148):  * Vertex programs: yes
02-20 21:39:34.057: I/ogre(4148):  * Number of floating-point constants for vertex programs: 251
02-20 21:39:34.057: I/ogre(4148):  * Number of integer constants for vertex programs: 251
02-20 21:39:34.057: I/ogre(4148):  * Number of boolean constants for vertex programs: 251
02-20 21:39:34.057: I/ogre(4148):  * Fragment programs: yes
02-20 21:39:34.057: I/ogre(4148):  * Number of floating-point constants for fragment programs: 222
02-20 21:39:34.057: I/ogre(4148):  * Number of integer constants for fragment programs: 222
02-20 21:39:34.057: I/ogre(4148):  * Number of boolean constants for fragment programs: 222
02-20 21:39:34.057: I/ogre(4148):  * Geometry programs: no
02-20 21:39:34.057: I/ogre(4148):  * Number of floating-point constants for geometry programs: 0
02-20 21:39:34.057: I/ogre(4148):  * Number of integer constants for geometry programs: 0
02-20 21:39:34.057: I/ogre(4148):  * Number of boolean constants for geometry programs: 0
02-20 21:39:34.057: I/ogre(4148):  * Supported Shader Profiles: glsles
02-20 21:39:34.057: I/ogre(4148):  * Texture Compression: no
02-20 21:39:34.057: I/ogre(4148):  * Scissor Rectangle: yes
02-20 21:39:34.057: I/ogre(4148):  * Hardware Occlusion Query: no
02-20 21:39:34.057: I/ogre(4148):  * User clip planes: no
02-20 21:39:34.057: I/ogre(4148):  * VET_UBYTE4 vertex element type: yes
02-20 21:39:34.057: I/ogre(4148):  * Infinite far plane projection: yes
02-20 21:39:34.057: I/ogre(4148):  * Hardware render-to-texture: yes
02-20 21:39:34.057: I/ogre(4148):  * Floating point textures: yes
02-20 21:39:34.057: I/ogre(4148):  * Non-power-of-two textures: no
02-20 21:39:34.057: I/ogre(4148):  * Volume textures: no
02-20 21:39:34.057: I/ogre(4148):  * Multiple Render Targets: 1
02-20 21:39:34.057: I/ogre(4148):    - With different bit depths: no
02-20 21:39:34.057: I/ogre(4148):  * Point Sprites: yes
02-20 21:39:34.057: I/ogre(4148):  * Extended point parameters: yes
02-20 21:39:34.057: I/ogre(4148):  * Max Point Size: 0.000000
02-20 21:39:34.057: I/ogre(4148):  * Vertex texture fetch: no
02-20 21:39:34.057: I/ogre(4148):  * Number of world matrices: 0
02-20 21:39:34.057: I/ogre(4148):  * Number of texture units: 16
02-20 21:39:34.057: I/ogre(4148):  * Stencil buffer depth: 0
02-20 21:39:34.057: I/ogre(4148):  * Number of vertex blend matrices: 0
02-20 21:39:34.057: I/ogre(4148):  * Render to Vertex Buffer : no
02-20 21:39:34.057: I/ogre(4148):  * GL 1.5 without VBO workaround: no
02-20 21:39:34.057: I/ogre(4148):  * Frame Buffer objects: yes
02-20 21:39:34.057: I/ogre(4148):  * Frame Buffer objects (ARB extension): no
02-20 21:39:34.057: I/ogre(4148):  * Frame Buffer objects (ATI extension): no
02-20 21:39:34.057: I/ogre(4148):  * PBuffer support: no
02-20 21:39:34.057: I/ogre(4148):  * GL 1.5 without HW-occlusion workaround: no
02-20 21:39:34.057: I/ogre(4148):  * Separate shader objects: no
02-20 21:39:34.067: I/ogre(4148): DefaultWorkQueue('Root') initialising on thread main.
02-20 21:39:34.067: I/ogre(4148): Particle Renderer Type 'billboard' registered
02-20 21:39:34.067: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.067: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/shader' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.067: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/material' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.067: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/skeleton' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.067: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/texture' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/RTShaderLib' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/particle' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/core/models' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/core/fonts' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/core/materials' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/examples/materials' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/examples/models' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.077: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/examples/ogre' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.087: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/examples/scripts' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.087: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/examples/textures' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.087: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/ogre_media/materials' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.087: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/ogre_media/meshes' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.097: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/ogre_media/shaders' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.097: I/ogre(4148): Added resource location '/sdcard/MyGameTest/mesh/ogre_media/textures' of type 'FileSystem' to resource group 'General'
02-20 21:39:34.097: I/ogre(4148): Parsing scripts for resource group Autodetect
02-20 21:39:34.097: I/ogre(4148): Finished parsing scripts for resource group Autodetect
02-20 21:39:34.097: I/ogre(4148): Creating resources for group Autodetect
02-20 21:39:34.097: I/ogre(4148): All done
02-20 21:39:34.097: I/ogre(4148): Parsing scripts for resource group Essential
02-20 21:39:34.097: I/ogre(4148): Parsing script SdkTrays.material
02-20 21:39:34.107: I/ogre(4148): Parsing script SdkTrays.fontdef
02-20 21:39:34.107: I/ogre(4148): Parsing script SdkTrays.overlay
02-20 21:39:34.107: I/ogre(4148): Bad element attribute line: '# you can offset the image to change the cursor "hotspot"' for element SdkTrays/Cursor in overlay 
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_cursor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_tray.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x64x1.
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_button_up.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x32x1.
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_mini_tray.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.117: I/ogre(4148): Texture: sdk_track.png: Loading 1 faces(PF_A8R8G8B8,16x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,16x32x1.
02-20 21:39:34.127: I/ogre(4148): Texture: sdk_handle.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with 4 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,16x16x1.
02-20 21:39:34.127: I/ogre(4148): Texture: sdk_mini_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.137: I/ogre(4148): Texture: sdk_label.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.137: I/ogre(4148): Texture: sdk_separator.png: Loading 1 faces(PF_A8R8G8B8,64x16x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x16x1.
02-20 21:39:34.137: I/ogre(4148): Texture: sdk_logo.png: Loading 1 faces(PF_A8R8G8B8,128x64x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x64x1.
02-20 21:39:34.147: I/ogre(4148): Texture: sdk_shade.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x64x1.
02-20 21:39:34.147: I/ogre(4148): Texture: sdk_frame.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.147: I/ogre(4148): Texture: sdk_mini_text_box_over.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
02-20 21:39:34.147: I/ogre(4148): Texture: sdk_pulse.png: Loading 1 faces(PF_R8G8B8,8x1x1) with 3 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,8x1x1.
02-20 21:39:34.147: I/ogre(4148): Finished parsing scripts for resource group Essential
02-20 21:39:34.147: I/ogre(4148): Creating resources for group Essential
02-20 21:39:34.147: I/ogre(4148): All done
02-20 21:39:34.147: I/ogre(4148): Parsing scripts for resource group General
02-20 21:39:34.207: I/ogre(4148): Parsing script glow.material
02-20 21:39:34.207: I/ogre(4148): Parsing script GLSLSwizzle.material
02-20 21:39:34.217: I/ogre(4148): Parsing script RomanBath.material
02-20 21:39:34.227: I/ogre(4148): Parsing script UniqueModel.MESH.material
02-20 21:39:34.227: I/ogre(4148): Parsing script yuna.material
02-20 21:39:34.227: I/ogre(4148): Parsing script pued.material
02-20 21:39:34.237: I/ogre(4148): Parsing script pu_example.material
02-20 21:39:34.257: I/ogre(4148): Parsing script pu_example_32.material
02-20 21:39:34.267: I/ogre(4148): Parsing script pu_mediapack_01.material
02-20 21:39:34.297: I/ogre(4148): Parsing script common.material
02-20 21:39:34.307: I/ogre(4148): Compiler error: invalid parameters in common.material(35): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.307: I/ogre(4148): Compiler error: invalid parameters in common.material(63): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.307: I/ogre(4148): Compiler error: invalid parameters in common.material(93): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.307: I/ogre(4148): Compiler error: invalid parameters in common.material(136): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.307: I/ogre(4148): Parsing script Robot.material
02-20 21:39:34.307: I/ogre(4148): Compiler error: invalid parameters in Robot.material(40): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.307: I/ogre(4148): Parsing script Sinbad.material
02-20 21:39:34.318: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(29): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.318: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(55): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.318: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(81): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(107): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(133): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(159): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(185): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(211): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(237): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(263): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Compiler error: invalid parameters in Sinbad.material(289): param_named and param_indexed properties requires at least 3 arguments
02-20 21:39:34.328: I/ogre(4148): Parsing script sky_box.material
02-20 21:39:34.328: I/ogre(4148): Parsing script myscript.particle
02-20 21:39:34.338: I/ogre(4148): Finished parsing scripts for resource group General
02-20 21:39:34.338: I/ogre(4148): Creating resources for group General
02-20 21:39:34.338: I/ogre(4148): All done
02-20 21:39:34.338: I/ogre(4148): Parsing scripts for resource group Internal
02-20 21:39:34.338: I/ogre(4148): Finished parsing scripts for resource group Internal
02-20 21:39:34.338: I/ogre(4148): Creating resources for group Internal
02-20 21:39:34.338: I/ogre(4148): All done
02-20 21:39:34.338: I/ogre(4148): Parsing scripts for resource group Popular
02-20 21:39:34.338: I/ogre(4148): Parsing script materials\RTShaderSystem.material
02-20 21:39:34.338: I/ogre(4148): Compiler error: unknown error in (23): token class, rtshader_system, unrecognized.
02-20 21:39:34.338: I/ogre(4148): Compiler error: unknown error in (52): token class, rtshader_system, unrecognized.
02-20 21:39:34.338: I/ogre(4148): Compiler error: unknown error in (81): token class, rtshader_system, unrecognized.
02-20 21:39:34.338: I/ogre(4148): Compiler error: unknown error in (110): token class, rtshader_system, unrecognized.
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (146): token class, rtshader_system, unrecognized.
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (162): token class, rtshader_system, unrecognized.
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (211): token class, rtshader_system, unrecognized.
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (23): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (52): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (81): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (110): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (146): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (81): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (162): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (81): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (110): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Compiler error: unknown error in (211): token "rtshader_system" is not recognized
02-20 21:39:34.348: I/ogre(4148): Finished parsing scripts for resource group Popular
02-20 21:39:34.348: I/ogre(4148): Creating resources for group Popular
02-20 21:39:34.348: I/ogre(4148): All done
02-20 21:39:34.508: I/ogre(4148): Texture: stevecube_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.558: I/ogre(4148): Texture: stevecube_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.608: I/ogre(4148): Texture: stevecube_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.658: I/ogre(4148): Texture: stevecube_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.708: I/ogre(4148): Texture: stevecube_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.758: I/ogre(4148): Texture: stevecube_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
02-20 21:39:34.878: I/ogre(4148): Mesh: Loading yuna.mesh.
02-20 21:39:34.968: I/ogre(4148): Skeleton: Loading yuna.skeleton
02-20 21:39:34.978: I/ogre(4148): WARNING: yuna.mesh is an older format ([MeshSerializer_v1.41]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
02-20 21:39:34.978: I/ogre(4148): Can't assign material Material#35 to SubEntity of Yuna because this Material does not exist. Have you forgotten to define it in a .material script?
02-20 21:39:34.998: I/ogre(4148): Texture: tpltex00.png: Loading 1 faces(PF_A8R8G8B8,128x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x256x1.
02-20 21:39:35.048: I/ogre(4148): Vertex Program:CubeMapVP Fragment Program:CubeMapFP
02-20 21:39:35.048: I/ogre(4148): GLSL link result : 
02-20 21:39:35.048: I/ogre(4148): --From Fragment Shader:
02-20 21:39:35.048: I/ogre(4148): --From Vertex Shader:
02-20 21:39:35.048: I/ogre(4148): Link was successful.
02-20 21:39:35.108: I/ogre(4148): Vertex Program:TexturedVP Fragment Program:TexturedFP
02-20 21:39:35.108: I/ogre(4148): GLSL link result : 
02-20 21:39:35.108: I/ogre(4148): --From Fragment Shader:
02-20 21:39:35.108: I/ogre(4148): --From Vertex Shader:
02-20 21:39:35.108: I/ogre(4148): Link was successful.
Last is the jpgLog, it's almost same as pngLog.
Some difference in last some lines:

Code: Select all

02-20 21:36:06.315: I/ogre(1231): Mesh: Loading yuna.mesh.
02-20 21:36:06.335: I/ogre(1231): Skeleton: Loading yuna.skeleton
02-20 21:36:06.345: I/ogre(1231): WARNING: yuna.mesh is an older format ([MeshSerializer_v1.41]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
02-20 21:36:06.345: I/ogre(1231): Can't assign material Material#35 to SubEntity of Yuna because this Material does not exist. Have you forgotten to define it in a .material script?
02-20 21:36:06.355: I/ogre(1231): FreeImage error: 'Invalid magic number' when loading format GIF
02-20 21:36:06.375: I/ogre(1231): Texture: tpltex00.jpg: Loading 1 faces(PF_R8G8B8,128x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,128x256x1.
02-20 21:36:06.425: I/ogre(1231): Vertex Program:CubeMapVP Fragment Program:CubeMapFP
02-20 21:36:06.425: I/ogre(1231): GLSL link result : 
02-20 21:36:06.425: I/ogre(1231): --From Fragment Shader:
02-20 21:36:06.425: I/ogre(1231): --From Vertex Shader:
02-20 21:36:06.425: I/ogre(1231): Link was successful.
02-20 21:36:06.495: I/ogre(1231): Vertex Program:TexturedVP Fragment Program:TexturedFP
02-20 21:36:06.495: I/ogre(1231): GLSL link result : 
02-20 21:36:06.495: I/ogre(1231): --From Fragment Shader:
02-20 21:36:06.495: I/ogre(1231): --From Vertex Shader:
02-20 21:36:06.495: I/ogre(1231): Link was successful.
Thanks in advance!
mannam
Halfling
Posts: 45
Joined: Tue Feb 15, 2011 7:23 am

Re: Ogre 1.8.1 A png problem in Android

Post by mannam »

Do you use alpha channel in your shader?
ohsheep
Gnoblar
Posts: 4
Joined: Wed Feb 20, 2013 3:02 pm

Re: Ogre 1.8.1 A png problem in Android

Post by ohsheep »

Could you tell me how to use alpha channel?

I found that when the png is PF_R8G8B8 it works, but PF_A8B8G8R8 doesn't work.

Here's my shader code:

Code: Select all

precision mediump int;
precision mediump float;
uniform mat4 worldViewProj;
attribute vec4 position;
attribute vec2 uv0;
varying vec2 oUv0;

void main()					
{											
	gl_Position = worldViewProj * position;
	oUv0 = uv0;
}

Code: Select all

precision mediump int;
precision mediump float;
uniform sampler2D textureMap;
varying vec2 oUv0;

void main()
{
	vec4 texColor = texture2D(textureMap, oUv0);  // I found that the value of texColor is (0,0,0,1)
	gl_FragColor = texColor;
}
ohsheep
Gnoblar
Posts: 4
Joined: Wed Feb 20, 2013 3:02 pm

Re: Ogre 1.8.1 A png problem in Android

Post by ohsheep »

Ok, the problem is in these two lines:

[GLES2] : Valid FBO targets PF_UNKNOWN PF_R8G8B8 PF_B8G8R8 PF_X8B8G8R8
Loading 1 faces(PF_A8R8G8B8,128x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x256x1.

The PF_A8B8G8R8 is invalid.
So the texture_unit should be changed to:
texture_unit
{
texture tpltex00.png PF_X8B8G8R8
}

It seems that I can never user a alpha channel ?
mannam
Halfling
Posts: 45
Joined: Tue Feb 15, 2011 7:23 am

Re: Ogre 1.8.1 A png problem in Android

Post by mannam »

It's not related to alpha channel then. I'm not sure what's the problem.