tag:blogger.com,1999:blog-8436614286557982927.post1279968971559437103..comments2023-05-18T02:23:12.339-07:00Comments on Oleksandr Popov Live Wallpapers.: Developer's notes II. ETC2 texture compression in OpenGL ES 3.0Oleksandr Popovhttp://www.blogger.com/profile/16416641029130574652noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8436614286557982927.post-37102783420865022942016-11-16T22:18:13.773-08:002016-11-16T22:18:13.773-08:00Thanks Popov.
It was the compression format issue...Thanks Popov. <br />It was the compression format issue. Would like to share it with others. <br /><br />In RGB8_ETC2 format the compress size of each pixel is 8 bit so image size would be (width/4)*(height/4)*8 <br /><br />But I was using RGBA8_ETC2_EAC which uses 16 bit per pixels to store the alpha. Thats why the image size should be: <br />(width/4)*(height/4)*16 <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8436614286557982927.post-57998564511880430912016-11-16T06:20:57.860-08:002016-11-16T06:20:57.860-08:00Are you using correct `compression` parameter? It ...Are you using correct `compression` parameter? It should be `GLES30.GL_COMPRESSED_RGB8_ETC2`, for example:<br /><br />loadETC2Texture("textures/etc2/sky1.pkm", GLES30.GL_COMPRESSED_RGB8_ETC2, false, false);<br />Oleksandr Popovhttps://www.blogger.com/profile/16416641029130574652noreply@blogger.comtag:blogger.com,1999:blog-8436614286557982927.post-50394577721948142622016-11-16T03:52:56.942-08:002016-11-16T03:52:56.942-08:00I have used these values and now I am getting prop...I have used these values and now I am getting proper value for width & height but the texture showing is only black. Do we need any other change in code or shader? simple bitmap texture is loading with my code. I have only changed the texture load function.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8436614286557982927.post-23247425450319506912016-11-16T02:57:23.856-08:002016-11-16T02:57:23.856-08:00Hey, thank you for pointing this out.
PKM_HEADER_...Hey, thank you for pointing this out.<br /><br />PKM_HEADER_SIZE = 16<br />PKM_HEADER_WIDTH_OFFSET = 8<br />PKM_HEADER_HEIGHT_OFFSET = 10<br /><br /><br />I've updated code excerpt in post too.Oleksandr Popovhttps://www.blogger.com/profile/16416641029130574652noreply@blogger.comtag:blogger.com,1999:blog-8436614286557982927.post-58557359881123736132016-11-16T02:28:12.467-08:002016-11-16T02:28:12.467-08:00What are the values of
PKM_HEADER_WIDTH_OFFSET &a...What are the values of <br />PKM_HEADER_WIDTH_OFFSET & PKM_HEADER_HEIGHT_OFFSETAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8436614286557982927.post-57211320120700956282016-08-11T00:49:59.698-07:002016-08-11T00:49:59.698-07:00This comment has been removed by a blog administrator.fastcarehttps://www.blogger.com/profile/15580210391155391339noreply@blogger.com