- Home /
 
               Question by 
               onionman77 · Feb 19, 2015 at 06:27 AM · 
                texture2dopenglreadpixels  
              
 
              Using ReadPixels to capture GL calls
Hello!,
I am trying to use Texture2D.ReadPixels to capture the screen and put it into a texture. This works well, except that it doesn't seem to pick up GL calls, as far as I can tell.
Does anyone know a way to use OpenGL to write to a texture in Unity Free?
               Comment
              
 
               
              Answer by onionman77 · Feb 21, 2015 at 05:36 AM
So I guess ReadPixels does pick up GL calls after all, they just have to be done in the right frame or such. I found that if I make my GL calls RIGHT before I call readpixels, they do get picked up. It just took me many weeks to discover this fact. Apologies for the impossible question!
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                