标签: isgl3d

使用isgl3D无法正确发生3D对象(.pod)中的纹理映射

我使用了3D iphone(.pod)模型,它在PVRShammon中正确显示.

但是当我将这个3D模型导入到isgl3D中时,它没有正确显示纹理图像,图像只覆盖了一些具有一些线条和三角形的对象区域.


_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 = YES;
node2.position = iv3(0, 0, 0);
node2.rotationY = 180;
[podImporter addMeshesToScene:self.scene];


Isgl3dLight * light  = [Isgl3dLight lightWithHexColor:@"FFFFFF" diffuseColor:@"FFFFFF" specularColor:@"FFFFFF" attenuation:0.000];
light.lightType = DirectionalLight;
[light setDirection:-1 y:-1 …
Run Code Online (Sandbox Code Playgroud)

3d objective-c texture-mapping ios isgl3d

70
推荐指数
1
解决办法
691
查看次数

在ISGL3D中,我们一次只能识别一个手势吗?

我正在开发ISGL3D中的应用程序.我需要一次只识别一个手势

即PICNH或PAN ..

有什么办法吗?

iphone uigesturerecognizer ios isgl3d

4
推荐指数
2
解决办法
131
查看次数