glreadpixels Questions

8

How to take a screenshot of an OpenGL window in C++ and save it to file. I found the glReadPixels() function, but I don't know what to do next. Where I can set path to a file, for example? If not...
Wexford asked 30/4, 2011 at 21:53

2

Solved

I want to dump raw texture data to disk (to read back later), and I'm not sure about glReadPixel will read from the currently bound texture. How can I read the buffer from my texture?
Publication asked 8/8, 2012 at 11:20

2

Solved

How do I flip an Screenshot image? I can't find my problem anywhere else.Example code: /* *@param fileLoc //Location of fileoutput destination *@param format //"png" *@param WIDTH //Display.width(...
Alexia asked 6/12, 2012 at 11:10

2

Solved

I want to get every OpenGL frame from an animation with glReadPixels() and convert the data to OpenCV::Mat. I know that glReadPixels() gets the data by rows from the lower one to upper one, from le...
Daubigny asked 1/2, 2012 at 14:44

2

Solved

hey i m trying the record the gameplay of my game so that i can upload its video to youtube from device itself...m trying to do same thing as Talking tomcat app for iphone..recording the video then...
Furr asked 8/8, 2011 at 9:52

5

Solved

I'm using glReadPixels to read data into a CVPixelBufferRef. I use the CVPixelBufferRef as the input into an AVAssetWriter. Unfortunately the pixel formats seem to be mismatched. I think glReadPi...
Sarrusophone asked 25/10, 2011 at 21:3

2

Solved

Possible Duplicate: Why is glReadPixels() failing in this code in iOS 6.0? I currently have an App in Appstore that uses the Cocos2D framework. For collision detection I am using glRe...
Junie asked 23/8, 2012 at 13:35

2

Solved

I want to use two PBOs to read pixel in alternative way. I thought the PBO way will much faster, because glReadPixels returns immediately when using PBO, and a lot of time can be overlapped. Stran...
Tellus asked 10/7, 2012 at 8:47

1

In iOS 5, OpenGL ES Texture caches were introduced to provide a direct way from the camera video data to OpenGL without the need of copying the buffers. There was a brief introduction to texture ca...
Hinshelwood asked 13/2, 2012 at 13:33

1

Solved

I am using glReadPixels to take a snapshot at regular intervals in drawFrame method of GLSurfaceView.Renderer. I need to take this snapshot at regular intervals to keep saving my data as per my app...
Dispersive asked 22/11, 2011 at 5:49

2

Solved

Can I use Pixel Buffer Object (PBO) to directly read the pixels values (i.e. using glReadPixels) from the FBO (i.e. while FBO is still attached)? If yes, What are the advantages and disadvantage...
Diazotize asked 26/5, 2011 at 19:54

1

Solved

I have an OpenGL ES 2 drawing app (iOS 4), so I'm retaining backing in my CAEAGLLayer rather than clearing on every frame: eaglLayer.opaque = TRUE; eaglLayer.drawableProperties = [NSDictionary dic...
Horny asked 29/11, 2010 at 18:15

1

Solved

I am writing an OpenGL ES 2.0 app for the iPhone (iOS 4.1). At the end of the computations, which are done in the shaders, i need to write back some data to the CPU. As far as I know this can be do...
Apomixis asked 26/4, 2011 at 9:6
1

© 2022 - 2024 — McMap. All rights reserved.