Reputation: 1
I'm trying to replace my own SLAM code with Kudan Unity Plugin (1.2.1, native 1.2). I've already succeeded in building and running sample app on my iPhone. I also checked the plugin works on my Unity project on the editor. But when I build it on my iPhone, it does not render the video background as like in the picture.
I attached:
added:
I appreciate if someone give me some suggestions for what I'm missing. Thank you in advance.
UPDATE (7/13):
I found that KudanSample scene also have same problem when Google Cardboard SDK plugin is added as shown in the screenshot. In this case, I just imported Cardboard plugin and didn't add any prefabs in it to the scene hierarchy. It seems some plugin parts of Kudan and Cardboard are conflicting.
For trial, I deleted Cardboard's static library, libvrunity.a (and CardboardAppController.mm/h and entire "Cardboard" folder as they are referencing the library). As the result, Kudan could render video background.
I also try to use the latest Google VR instead of Cardboard SDK, but the result was totally same as in the case of Cardboard.
I'd appreciate if someone knows how to fix it. Any suggestions are very welcome.
UPDATE (7/14):
As the signing problem of Xcode is now fixed, I'm checking the debug log. It says "[KudanAR] Failed to create external textures". It indicates _textureYp or _textureCbCr is null in TrackeriOS.cs. _textureYpID and _textureCbCrId do not change whether I remove libvrunity.a or not. Therefore, maybe there are something wrong with GetTextureForPlane(). I will keep you updated.
UPDATE (7/15):
I found that _textureYp and _textureCbCr are both null in TrackeriOS. As they are results of GetTextureForPlane(), I hope it can be solved by changing parameters for the function. Since I could't find the documents for the function, I would be very happy if someone give me the information about it.
Upvotes: 0
Views: 871
Reputation: 61
I have same problem. And I think this problem is very wired.
Please adjust Link Binary With Libraies of your xcode project setting build phases.
https://i.sstatic.net/jLYGh.png
Please follow this order. it's work for me.
libPhone-lib.a
libgvrunity.a
libkudanPlugin.a
Upvotes: 1