All Questions
206 questions
0
votes
0
answers
219
views
SceneKit SCNMaterial setValue - Pass SCNVector4 as NSValue to shader
It works for my textures but not for SCNVector4 being converted to NSValue? I'm just trying to get vec4 to my surface shader
This question suggests it should work https://stackoverflow.com/a/39407262/...
0
votes
1
answer
905
views
Why is there no GLES option in GPU Frame Capture in xcode edit scheme
I was trying to capture a gpu frame of an MAC openGL program (https://github.com/JohnTargaryen/LearnOpenGL/blob/master/src/1.getting_started/2.1.hello_triangle/hello_triangle.cpp) using xcode. The ...
0
votes
1
answer
262
views
How to estimate OpenGL ES shader/Metal performance in GFlops
How to estimate OpenGL ES shader/Metal performance in GFlops?
iPhone X GPU is believed to have 350 GFlops in theory. (Ref from http://blog.filippkeks.com/2017/09/21/horrors-of-mobile-graphics.html)
...
0
votes
1
answer
600
views
OpenGL in iOS simulator is unusably slow
As per title, simulator is super slow, so my questions is there any way to improve OpenGL performance in iOS simulator?
1
vote
1
answer
251
views
OpenGL Mathematics (GLM) conflicts with AVFoundation: Call to 'simd_char' is ambiguous
I am building an iOS game that includes the GLM library for performing some calculations needed in GLSL (notably - a projection matrix). I also use AVFoundation APIs to play videos in some screens of ...
1
vote
0
answers
66
views
Is there a way to automate an LLDB command upon file save in Xcode?
I'm developing an OpenGL ES app for iOS. I'd love to skip the whole rebuild cycle when I just edit the fragment shaders. Ideally, I want Xcode to re-upload the shader code to the device and invoke a ...
1
vote
1
answer
2k
views
Metal much slower compared to OpenGL while rendering small textures on a large texture
I am trying to migrate my projects from OpenGL to Metal on iOS. But I seem to have hit a performance wall. The task is simple...
I have a large texture (more than 3000x3000 pixels). On which I need ...
1
vote
0
answers
57
views
Proper use of glMapBufferRange in swift
How do I properly use the data I get from the pointer returned by glMapBufferRange in swift (by use I mean read, write to index in array)?
My current code (relevant parts):
initialisation method...
{...
1
vote
0
answers
359
views
Why FPS Gauge in Xcode not usable for non-OpenGL ES or non-Metal App
Xcode's FPS Gauge and GPU Report seems only usable for code directly using OpenGL ES and Metal(This pic is captured using non-OpenGL ES or non-Metal demo).
In my understanding, Even Core Graphics and ...
3
votes
0
answers
440
views
GPUImage2: passing gl texture to shader
I'm trying to modify GPUImage2 Crosshair generator to replace default crosshairs with gl texture made of UIImage, my image is 128x128 png file.
I'm using GPUImage2 PictureInput for converting UIImage ...
1
vote
0
answers
124
views
Why does this SKShader display correctly in Xcode particle editor but not in the app I'm building?
I'm experimenting with using an SKShader attached to an SKEmitterNode.
The shader just creates circles. The particle emitter is based on the firefly particle template in Xcode. I left it as is aside ...
0
votes
1
answer
370
views
Using OpenGL extension in .fsh shader file for SKShader / iOS
In my iOS application I have a shader file TestShader.fsh with GL_EXT_shader_framebuffer_fetch extension:
#extension GL_EXT_shader_framebuffer_fetch : require
void main() {
lowp vec4 destColor = ...
25
votes
3
answers
5k
views
iOS 11 beta 4 presentRenderbuffer crash
My app crashes on iOS 11 beta 4 (15A5327g) when [EAGLContext presentRenderbuffer:] method is called. It happens only when I debugging in Xcode. When I launch app manually it doesn't crashed. On ...
0
votes
1
answer
567
views
How to create 360 Stereographic fisheye video or little planet video from equi-rectangle projection?
I have streaming images that are equi-rectangular projection. I would like to show it as little planet view. I tried to search for examples of it, but couldn't find any. Does anyone know how to ...
1
vote
1
answer
2k
views
openGL draw circle triangle and square in different display mode
I am using Xcode to write openGL. What I am doing is to draw a circle, a triangle, and a square.
However, I found that my circle only can display on
glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE);
...