I create a OffscreenBuffer just like:
GLint oldFBO; glGetIntegerv(GL_FRAMEBUFFER_BINDING, &oldFBO); glGenFramebuffers(1, &myFramebufferID); glGenRenderbuffers(1, &myDepthID); glGenTextures(1, &myTextureID); glBindFramebuffer(GL_FRAMEBUFFER, myFramebufferID); ........//create my off screen buffer, bingding it, and then do my job in it. //In the end put the saved FBO back. glBindFramebuffer(GL_FRAMEBUFFER, oldFBO);
After put the saved FBO back, I saved the OffscreenBuffer as a picture and it turned out very well.but it do not display in rhino viewport.I am sorry that my English is not so good. I hope I have described my problem correctly.What I want to ask is, does RHINO SDK have interfaces to pass in data from the OpenGL off screen buffer.