OpenGLES

RSS for tag

Create 3D and 2D graphics effects using OpenGL ES, a compact and efficient subset of OpenGL.

Posts under OpenGLES tag

26 Posts

Post

Replies

Boosts

Views

Activity

The iPhone doesn't support 32-bit float textures?
I create a 32-bit floating point texture withCVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, ..., ..., NULL, GL_TEXTURE_2D, GL_RGBA, ..., ..., GL_BGRA, GL_FLOAT, 0, ...);orglTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, 128, 128, 0, GL_RGBA, GL_FLOAT, ...);send the texture to a vertex shader and read the output with transform feedback. For some reason the data is truncaed to 16-bit half floats.For example,Input: 0.001000, 0.000100, 0.000010, 0.000001 Output: 0.000999, 0.000100, 0.000000, 0.000000This only happens on my iPhone 6s, not on the iPad.Does the iPhone not support 32-bit floating point textures in OpenGL?
1
0
2.5k
Oct ’22
Idea for Apple messages and music
Apple should begin to integrate a feature in iMessages that allow an iMessage user to send a clip of a song to another user very quickly and easily like you can a emoji paid subscription users to the Apple Music service can select any portion of clip five10 seconds of the entire song that’s in the Apple Music library non-subscription members can send pre-selected clips of certain links that Apple has put in there. This will encourage users to not only share songs, and encourage those with subscriptions to listen to more music, but it will also encourage those without subscription to subscribe to enjoy that feature of iMessage similar to how you can send a message with a screen affect. You should be able to send a text message but then have the other person’s iPhone play a song in the background also it would be a lot better if the person had full access to the full song they could select via lyrics what portion of the audio clip they want to send via video lyric .
0
0
1.2k
Aug ’22
Updating old OpenGLES app - why isn't it fullscreen?
I am updating my old pre-notch OpenGLES app, and when it launches on my iPhone 13, it has black bars at the top and bottom. I was expecting it to fill the screen and go under the notch. Why is it not doing that? When my app starts, I set my view bounds using [[UIScreen mainScreen] bounds], which is giving me dimensions of 375 x 667. The nativeBounds are supposedly 1125 x 2001. But the iPhone 13 is 1170 x 2532 pixels. Why do I get these numbers, where in the app settings is this determined? I can't find anything in the .plist or anywhere else... I've read about safe areas but my app is an old-school EAGLLayer app, no storyboard. I do have a navigationController - but I'm getting this smaller display area being reported before that is even created... I can't find any documentation online about this either. Anyone know?
1
0
1.3k
Feb ’22
Application freezes on glTexImage2D
My application freezes on a call to glTexImage2D, this is the stack trace I get from the lldb: thread #3 frame #0: 0x00000001bb04d9b4 libsystem_kernel.dylib`mach_msg_trap + 8 frame #1: 0x00000001bb04dd60 libsystem_kernel.dylib`mach_msg + 76 frame #2: 0x00000001bdb28dd0 IOKit`io_connect_method + 440 frame #3: 0x00000001bdb28bec IOKit`IOConnectCallMethod + 236 frame #4: 0x00000001d5b1b970 IOGPU`IOGPUResourceCreate + 224 frame #5: 0x00000001d5b159f8 IOGPU`-[IOGPUMetalResource initWithDevice:remoteStorageResource:options:args:argsSize:] + 476 frame #6: 0x00000001d5b18ab8 IOGPU`-[IOGPUMetalTexture initWithBuffer:descriptor:sysMemOffset:sysMemRowBytes:vidMemSize:vidMemRowBytes:args:argsSize:isStrideTexture:] + 616 frame #7: 0x00000001d5b1925c IOGPU`-[IOGPUMetalTexture initWithPrimaryBuffer:heapIndex:bufferIndex:bufferOffset:length:descriptor:sysMemRowBytes:vidMemSize:vidMemRowBytes:args:argsSize:] + 96 frame #8: 0x000000021c45bc10 AGXMetal13_3`___lldb_unnamed_symbol4663$$AGXMetal13_3 + 468 frame #9: 0x0000000133953aa8 AppleMetalOpenGLRenderer`GLDTextureRec::loadObj() + 3156 frame #10: 0x000000013398a960 AppleMetalOpenGLRenderer`gldModifyTexSubImage + 160 frame #11: 0x000000021bd9a7e8 GLEngine`glTexImage2D_Exec + 1944 frame #12: 0x000000021bd7b8d0 libGL.dylib`glTexImage2D + 80 My questions are: how could a call to glTexImage2D freezes and cause the thread stuck forever? Why and how to solve it? Thank you in advance, and looking forward to any suggestions
4
0
2.4k
Dec ’21
Wait for next drawable more than 1/60 second. After enable screen recorder it become normal.
This project is work for android and iOS, so I use a CAEAGLLayer to present live video which is 60fps. All code work well at iPhone11 and older devices. But at iPhone 12 and iPhone 13, it becomes strange. The layer drops some frames. I profile with Instrument and find some drawable are waited more than 1/60 second. And after I turn on Screen Recorder, it work well. All drawables are waited less than 1/60 second. The layer present video with 60fps. After I turn off the screen recorder, it didn't work again. Is there anyone can tell me what happened and how to workaround it?
2
0
1.8k
Dec ’21
The iPhone doesn't support 32-bit float textures?
I create a 32-bit floating point texture withCVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, ..., ..., NULL, GL_TEXTURE_2D, GL_RGBA, ..., ..., GL_BGRA, GL_FLOAT, 0, ...);orglTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, 128, 128, 0, GL_RGBA, GL_FLOAT, ...);send the texture to a vertex shader and read the output with transform feedback. For some reason the data is truncaed to 16-bit half floats.For example,Input: 0.001000, 0.000100, 0.000010, 0.000001 Output: 0.000999, 0.000100, 0.000000, 0.000000This only happens on my iPhone 6s, not on the iPad.Does the iPhone not support 32-bit floating point textures in OpenGL?
Replies
1
Boosts
0
Views
2.5k
Activity
Oct ’22
Idea for Apple messages and music
Apple should begin to integrate a feature in iMessages that allow an iMessage user to send a clip of a song to another user very quickly and easily like you can a emoji paid subscription users to the Apple Music service can select any portion of clip five10 seconds of the entire song that’s in the Apple Music library non-subscription members can send pre-selected clips of certain links that Apple has put in there. This will encourage users to not only share songs, and encourage those with subscriptions to listen to more music, but it will also encourage those without subscription to subscribe to enjoy that feature of iMessage similar to how you can send a message with a screen affect. You should be able to send a text message but then have the other person’s iPhone play a song in the background also it would be a lot better if the person had full access to the full song they could select via lyrics what portion of the audio clip they want to send via video lyric .
Replies
0
Boosts
0
Views
1.2k
Activity
Aug ’22
Updating old OpenGLES app - why isn't it fullscreen?
I am updating my old pre-notch OpenGLES app, and when it launches on my iPhone 13, it has black bars at the top and bottom. I was expecting it to fill the screen and go under the notch. Why is it not doing that? When my app starts, I set my view bounds using [[UIScreen mainScreen] bounds], which is giving me dimensions of 375 x 667. The nativeBounds are supposedly 1125 x 2001. But the iPhone 13 is 1170 x 2532 pixels. Why do I get these numbers, where in the app settings is this determined? I can't find anything in the .plist or anywhere else... I've read about safe areas but my app is an old-school EAGLLayer app, no storyboard. I do have a navigationController - but I'm getting this smaller display area being reported before that is even created... I can't find any documentation online about this either. Anyone know?
Replies
1
Boosts
0
Views
1.3k
Activity
Feb ’22
Application freezes on glTexImage2D
My application freezes on a call to glTexImage2D, this is the stack trace I get from the lldb: thread #3 frame #0: 0x00000001bb04d9b4 libsystem_kernel.dylib`mach_msg_trap + 8 frame #1: 0x00000001bb04dd60 libsystem_kernel.dylib`mach_msg + 76 frame #2: 0x00000001bdb28dd0 IOKit`io_connect_method + 440 frame #3: 0x00000001bdb28bec IOKit`IOConnectCallMethod + 236 frame #4: 0x00000001d5b1b970 IOGPU`IOGPUResourceCreate + 224 frame #5: 0x00000001d5b159f8 IOGPU`-[IOGPUMetalResource initWithDevice:remoteStorageResource:options:args:argsSize:] + 476 frame #6: 0x00000001d5b18ab8 IOGPU`-[IOGPUMetalTexture initWithBuffer:descriptor:sysMemOffset:sysMemRowBytes:vidMemSize:vidMemRowBytes:args:argsSize:isStrideTexture:] + 616 frame #7: 0x00000001d5b1925c IOGPU`-[IOGPUMetalTexture initWithPrimaryBuffer:heapIndex:bufferIndex:bufferOffset:length:descriptor:sysMemRowBytes:vidMemSize:vidMemRowBytes:args:argsSize:] + 96 frame #8: 0x000000021c45bc10 AGXMetal13_3`___lldb_unnamed_symbol4663$$AGXMetal13_3 + 468 frame #9: 0x0000000133953aa8 AppleMetalOpenGLRenderer`GLDTextureRec::loadObj() + 3156 frame #10: 0x000000013398a960 AppleMetalOpenGLRenderer`gldModifyTexSubImage + 160 frame #11: 0x000000021bd9a7e8 GLEngine`glTexImage2D_Exec + 1944 frame #12: 0x000000021bd7b8d0 libGL.dylib`glTexImage2D + 80 My questions are: how could a call to glTexImage2D freezes and cause the thread stuck forever? Why and how to solve it? Thank you in advance, and looking forward to any suggestions
Replies
4
Boosts
0
Views
2.4k
Activity
Dec ’21
Wait for next drawable more than 1/60 second. After enable screen recorder it become normal.
This project is work for android and iOS, so I use a CAEAGLLayer to present live video which is 60fps. All code work well at iPhone11 and older devices. But at iPhone 12 and iPhone 13, it becomes strange. The layer drops some frames. I profile with Instrument and find some drawable are waited more than 1/60 second. And after I turn on Screen Recorder, it work well. All drawables are waited less than 1/60 second. The layer present video with 60fps. After I turn off the screen recorder, it didn't work again. Is there anyone can tell me what happened and how to workaround it?
Replies
2
Boosts
0
Views
1.8k
Activity
Dec ’21