using copyFrame with a segmentation texture
I'm struggling to get the copyFrame function working with a segmentation texture. I'm working from the Body Segmentation template project and I made a script has an input for a Texture and on a Touch Start event it tries to call copyFrame on it. I have assigned the included "Body Segmentation - Refined Edge" texture to the script, but when tap the simulator, I get the following error:
18:24:42 OpenGL call finished with error(s): OpenGL error with code 1286 occurred.(invalid framebuffer operation: 33305 error code: 1286)
So as you noticed, copyFrame for whatever reason does not work with segmentation textures. The workaround is to output the segmentation texture to a separate render target and then call copyFrame on that.
I have all the steps listed out here and you can also watch the process here. It's part of a tutorial, but the portion about solving the copyFrame issue is pretty universal.
copyFrame should work with a normal texture, so there might also be a separate issue. Can you share your script and scene setup?
nice