By jacksmash
on Thu, 11/08/2012 - 18:50
I realize this has been covered many times on this forum, but I can only get this working on a 5.0 device and not a 6.0 device. Not sure what the issue is!
The closest I've gotten it to working is by using the code found in this thread:
https://ar.qualcomm.at/content/take-screenshot
In fact, it works every time on my 5.0 device, but never works on my 6.0 device.
Any clues?
Vuforia SDK: how to take screenshots?
Ok, I've kinda got this working following the advice in this thread:
https://ar.qualcomm.at/content/texture2dreadpixels-not-working-ios6
Vuforia SDK: how to take screenshots?
Ok, so here's the code that is working, except the image result is rotated:
- (UIImage*) glToUIImage
{
Vuforia SDK: how to take screenshots?
Ok, thanks for sharing.
I will try to look at this some more in due course.
N
Vuforia SDK: how to take screenshots?
I'm going to try to describe this a little more succinctly.
1. I downloaded and ran the sample Vuforia SDK (ImageTargets) project as found in the samples directory.
Vuforia SDK: how to take screenshots?
Hi jacksmash,
When I run your sample it crashes in main()
return UIApplicationMain(argc, argv, nil, NSStringFromClass([ImageTargetsAppDelegate class]));
Vuforia SDK: how to take screenshots?
Hi N
Vuforia SDK: how to take screenshots?
I have no idea about the crash you are talking about...
N
Vuforia SDK: how to take screenshots?
You said in a comment:
"Hi jacksmash,
Vuforia SDK: how to take screenshots?
I cannot remember exactly as it was four months ago...
However, reading the thread below it had something to do with this:
Vuforia SDK: how to take screenshots?
Hi!
It seems to be a problem from how I was saving the photo in Camera. Fixed it.
Thanks anyway!
Vuforia SDK: how to take screenshots?
Great to hear :)
N
Vuforia SDK: how to take screenshots?
Hi jacksmash,
Vuforia SDK: how to take screenshots?
Many thanks for the feedback! Although I'm a bit embarrassed that I didn't see that...
First of all, thanks for
First of all, thanks for Your code,
Thanks for sharing! N
Thanks for sharing!
N
Thanks for this. I should
Thanks for this. I should have posted a long time ago when I solved this. My solution is analogous to yours.
Vuforia SDK: how to take screenshots?
Hi,
I got a half black screen on my album, When i take screenShot.
I written following code below :-
Vuforia SDK: how to take screenshots?
Unfortunately there is no magic solution - you need to debug your code.
Just because it worked for somebody else does not mean that the code will automatically work for you, especially since you have changed the code so significantly..
Vuforia SDK: how to take screenshots?
Vuforia SDK: how to take screenshots?
Vuforia SDK: how to take screenshots?
I found I was able to takle screenshots in both portrait and landscape mode by adding the code below to AR_EAGLView.mm. Moreover this takes the width and height parameters from openGL ES.