0
我已經創建了一個iOS項目,其中包含了來自Wikitudes SDK示例(選擇POI)的建築師世界。我完全遵循了Wikitude的設置準則。Wikitude圖像資源加載錯誤
我已經確保包含文件夾引用,因此可以在包中訪問這些文件。我的世界的加載和工作方式與Wikitude示例完全相同,只是屏幕上沒有任何圖像資源可見。背景圖片,選中的圖片以及我添加的其他圖片。我檢查了捆綁包中的圖像,他們在資產文件夾下。
我比較了兩個項目,它們完全一樣。我無法找出差異。還有什麼需要做的,以確保包含圖像?我已經嘗試了一切。請幫忙!
這是我如何初始化了世界
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
if ([WTArchitectView isDeviceSupportedForARMode:WTARMode_Geo]) { // 1
if (!_architectView) {
self.architectView = [[WTArchitectView alloc] initWithFrame:self.view.bounds];
[self.architectView initializeWithKey:@"tW3Ht861dC8lNC2/xnahrP7DRI7nqfXDGZfUvdeIGJsc64QLICf0leLIO50svo8me8yrGBcglCEHwAQEhqs8eOceTQ0iXJhF6Glf016W/tDsCSXMetFz4vdZIHzOdNOOBJEKuIEPYZgyffutNigYtdWpPzS33L1OQLoVkdQ3z/NTYWx0ZWRfX21xcPVHf8nkO6IcVarrd+BPN3s78E/Ac39sjGX90LKiVK47DeMMovn5X5X3vXIcwrxe3WRZqL6sczpdObKvll+Qwvpbrnej1ausee5uUCCXFC6oevbcnuWyqgYXzctjCjrJlcdfzL1EgPi9W4i87bnT1uf8IYISiPwBlK7vNvLpBIfryzyn9t4EKMGr5X0GTgXA11G5BJW2wkgukMSt7zp8fE1XurT/C97tTtN9P/w5lyWnpjm/1Qt8n409QxB09A9ZW2x9vcOoTzyCKQyTXduWyhW4hv6gXHZUU5A88PJBGtFpX63f40VURgi+6hMNy2Q4I57Ck0d+NTJHQnPbm2NoHKiAkFr5LS2A91lnhF3BI9Qx8YPpjStPNslW93NJPXOstmSFDLep9MpNx+tLzPMRBj5HLjSTPCzWZSQSuXSj31hc/nwoaVl+0MvQzNC1YQdS1QcjeQx5Ln6nFaW+eCmRHOOAZZQJUJeaVvLSMll+zaYwZ+WrIYDCMx/nCwjtQ7Y+Voj2sivGIxPNrcDUuWul6q2D3WJmUwjquibs2M97lLljwojpgLfRf8hWynpvnfliTgk2OZUT96+vcwLW3FHkCLFteuRQ2g==" motionManager:nil]; // 2
[self.architectView start];
[self.view addSubview:self.architectView]; //3
NSURL * worldURL = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html" subdirectory:@"World2"];
[self.architectView loadArchitectWorldFromUrl:worldURL];
[self.architectView setShouldRotate:YES toInterfaceOrientation:[UIApplication sharedApplication].statusBarOrientation];
}
}
}
而且這是我創建的圖像資源
World.markerDrawable_idle = new AR.ImageResource("assets/marker_idle.png");
World.markerDrawable_selected = new AR.ImageResource("assets/image2.png");
World.markerDrawable_directionIndicator = new AR.ImageResource("assets/image3.png");