简体   繁体   English

SceneKit dae文件丢失在设备中的纹理,但在模拟器中工作正常

[英]SceneKit dae file loss texture in device but works fine in simulator

I exported the dae file which contains built-in texture from Maya and added it into Xcode. 我从Maya导出了包含内置纹理的dae文件,并将其添加到Xcode中。 It looks fine in finder and Xcode, even in simulator. 即使在模拟器中,在finder和Xcode中看起来也不错。 However, it's texture doesn't appear in my iPhone. 但是,它的纹理没有出现在我的iPhone中。

Here is the screenshot of my simulator. 这是我的模拟器的屏幕截图。 You can see a colorful chair, wall and gate. 您会看到五颜六色的椅子,墙壁和大门。

在此处输入图片说明

This is the screenshot of my iphone. 这是我的iPhone屏幕快照。 Can anyone tell me how can the same code behave differently in simulator and my device? 谁能告诉我相同的代码在模拟器和我的设备中如何表现不同?

在此处输入图片说明

It seems something wrong with relative path. 相对路径似乎有问题。 I really didn't figure out this wired problem but my solution is to export dae file without texture, then drag the png into Xcode and set the geometry's diffuse property. 我确实没有弄清楚这个有线问题,但是我的解决方案是导出不带纹理的dae文件,然后将png拖动到Xcode中并设置几何图形的diffuse属性。

If you use Maya and ColladaMaya plugin, try to check "relative path" when exporting dae file. 如果您使用Maya和ColladaMaya插件,请在导出dae文件时尝试检查“相对路径”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 加载本地文件在模拟器中工作正常但在设备上崩溃 - Loading local file works fine in simulator but crash on device 在iPhone模拟器中工作正常,但在iPhone设备中锁定 - Works fine in iphone simulator but lockup in an iphone device 在设备上启动app的例外,在模拟器中工作正常 - Exception on app startup in device,works fine in simulator Monotouch App不会在Device上启动,但在Simulator中工作正常 - Monotouch App will not launch on Device but works fine in Simulator 应用程式在装置上当机,但在Simulator上运作正常 - App crashes on device, however works fine on Simulator 设备上的VVOSC连接问题(在模拟器中可以正常运行) - VVOSC Connection Issues On Device (Works fine in simulator) 应用程序在模拟器上正常运行,但在设备上崩溃 - Application works fine on the simulator but crashes on the device 一个奇怪的行为是QLPreviewer或iPad设备,一个docx文件没有在设备中打开但在模拟器(iPad和iPhone)中工作正常 - A weird behaviour is with QLPreviewer or iPad Device that one docx file is not getting opened in device but works fine in simulator (iPad and iPhone) 渲染到iOS上的纹理OpenGL ES可以在模拟器上运行,但不能在设备上运行 - Rendering to texture on iOS OpenGL ES—works on simulator, but not on device MVVMCross绑定属性在iOS模拟器中工作正常,但在设备上失败 - MVVMCross binding property works fine in iOS simulator but fails on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM