Search code examples
iosopengl-esopengl-es-2.0everyplay

Do Everyplay supports multiple render pass? (ios)


I have been using everyplay SDK for recording my project's gameplay(ios-opengles 2.0). its working well. But if i use RenderToTexture (for shadows) it just records blank screen. How can i overcome this problem ?

For shadows i need to have multiple render pass that shifts rendertarget . is there any other way ?


Solution

  • Try it like this:

    while(1) { 
        renderShadow();
    
        glBindFramebuffer(GL_FRAMEBUFFER, fbo1);
    
        [everyplayCapture afterPresentRenderbuffer:fbo1];
    
        glClearColor(0.45f, 0.45f, 0.45f, 1.0f);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        ....
        glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
        ...
    
        [everyplayCapture beforePresentRenderbuffer:fbo1];
    
        [(EAGLView *)self.view presentFramebuffer];
    }