Closed Bezzu closed 10 years ago
No there is no method to take screenshots within vtm.
Jars can be created with './gradlew --info clean install'
Thanks for the reply. can I ask you a suggestion about how can I implement a method to capture a screenshot? Because traditional methods does not work and save a black image.
I guess one has to render to a FBO with a texture as color attachment.Then one needs to have a GL driver thats supports reading back pixel data of the texture.
It might not be that simple - but you could look into OffscreenRenderer class for the first part
This link could help...
http://stackoverflow.com/questions/4731589/android-opengl-screenshot
thanks a week ago I found the same way to solve the problem and after some tests I took, it seems to work. The only problem is that I can do the screenshot only from the class MapReader before calling mBufferPool.releaseBuffers(). there is another way or is it correct?
The suggested method seems to work when capturing the frame at the end of onDrawFrame: https://github.com/opensciencemap/vtm/commit/7df00e05431ee7813e0ffce6c84b9738e8b86a77
Hello, I would like to know if exits a method to capture a screenshot of the map. And I would like to know if you have already done (and in which way) the jar file of the project.
Thanks.