By grire974
on Wed, 06/20/2012 - 17:12
Hi all,
Firstly, this is a new thread that I decided to start based off of a post on another thread (1229) I made a couple of days ago - so apologies if I'm giving anyone the run around.
I'm working with the frame markers example app at the moment to super impose a custom 2d image over the frame marker(s). I have it working perfectly in landscape orientation right; so thanks for all that sample code to get me started - would have taken me quite some time (3D / GL isn't really my thing).
However now I'm having difficulty with other orientations. I've tried applying the setRotationMatrix, and rotatePoseMatrix methods (from ShaderUtils.cpp) to the modelViewMatrix, & modelViewProjection matrix prior to my calcScreenCoordsOf call (from the sample code posted in this forum); however this seems to have no effect for me. I've also tried working directly in my UIView overlay with affine transforms; also no luck.
MoSR, I noticed in one of your other posts you mentioned you'd update the code with orientation translation.. Would be fantastic if you could do so, or even just give me a couple of pointers. Of course, advice from anyone else would be more than welcome also.
Cheers,
Reece.
Re: Frame markers custom overlay for different device orientatio