Tag: isgl3d

3D对象(.pod)中的纹理映射不能正确使用isgl3D进行

我已经使用了一个3D iphone(.pod)模型,它在PVRShammon中正确显示。 但是当我将这个3D模型导入到isgl3D中时,它不能正确显示带纹理的图像,图像只用一些线和三angular形覆盖了对象的某些区域。 请帮助我以正确的方式做到这一点。 提前致谢… _cameraController = [[Isgl3dDemoCameraController alloc] initWithCamera:self.camera andView:self]; _cameraController.orbit = 10; _cameraController.theta = 20; _cameraController.phi = 0; _cameraController.doubleTapEnabled = NO; Isgl3dPODImporter * podImporter = [Isgl3dPODImporter podImporterWithFile:@"iPhone5Spod.pod"]; [podImporter printPODInfo]; [podImporter buildSceneObjects]; Isgl3dTextureMaterial *material2 = [[[Isgl3dTextureMaterial alloc] initWithTextureFile:@"DiffuseBody2.jpg" shininess:0.0 precision:Isgl3dTexturePrecisionHigh repeatX:YES repeatY:YES] autorelease]; mesh2 = [podImporter meshAtIndex:4]; node2 = [self.scene createNodeWithMesh: mesh2 andMaterial:material2]; mesh2.normalizationEnabled […]