Log in or register to post comments

Play remote video on image use calayer (sample code)

July 13, 2012 - 10:23pm #6

Hello Tim ,

I have implemented your .m code in place of AR_EAGLView.mm. 

Could you help me for the next step to be followed.

 

Play remote video on image use calayer (sample code)

July 12, 2012 - 11:06pm #5

Dear Tim,

I tried to integrate your code in Image Target Sample App of SDK but it is rendering errors such as QcarUtils.h not found.

I ahve also checked for the header paths and also for the frameworks included such as quartzcore but still unable to run the code.

Is it possible for you to share the sample app with me on

or

Please help me out as I am stuck in this for past 2 weeks.

Play remote video on image use calayer (sample code)

July 11, 2012 - 8:51am #4

Dear NalinS,

You are welcome, I hope this code can help more people.

However the performace is not as good as the code using openGL to render the video, there is still much room to improvement. 

Play remote video on image use calayer (sample code)

July 11, 2012 - 8:07am #3

Hi TimLai

This is great work - many thanks for posting it up.

I got the app working from the code you posted up and looks great.

Well done!

 

N

Play remote video on image use calayer (sample code)

July 10, 2012 - 1:58am #2

Good news here, I just fixed all the problem, for question 1 and 2, there are some column-major and row-major matrix convertion problem from GLKMultiply, I just replace all of them by ShaderUnits::multiplyMatrix. For question 3, you can fix it by set

cameraLayer.contentsGravity = kCAGravityResizeAspectFill;

This will fix the problem that the aspect ratio of the camera image is different with the iphone screen's.

I updated all my code on pastebin, good luck!

http://pastebin.com/kmeVZ7jy

Pages

Log in or register to post comments