Questions tagged «texture-mapping»

1
使用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: …

1
如何使纹理始终面对相机..?
更新5 创建了另一个小提琴以显示预期的外观。添加了不可见的穹顶和魔方相机,并使用了环境贴图;就我而言,由于已经提到的原因,不应使用这些技术。 显示代码段 var MatcapTransformer = function(uvs, face) { for (var i = uvs.length; i-- > 0;) { uvs[i].x = face.vertexNormals[i].x * 0.5 + 0.5; uvs[i].y = face.vertexNormals[i].y * 0.5 + 0.5; } }; var TransformUv = function(geometry, xformer) { // The first argument is also used as an array …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.