0

Trying to render a sphere using isgl3d. The problem is that only say 75% of the sphere is being rendered.

Here's the code:

[self.camera setPosition:iv3(0, 3, 7)];
_container = [self.scene createNode];

Isgl3dTextureMaterial * ballMaterial = [Isgl3dTextureMaterial materialWithTextureFile:@"balltext.jpg" shininess:0.7 precision:Isgl3dTexturePrecisionLow repeatX:YES repeatY:YES];

_sphere = [Isgl3dSphere meshWithGeometry:1 longs:40 lats:40];
node = [ _container createNodeWithMesh:_sphere andMaterial:ballMaterial];
[self.scene addChild:node];
4

1 に答える 1

4

画像サイズをご確認ください。32x3264X64128x128またはであるべきだと思います256x256。画像サイズを変更することで、問題を解決できる場合があります。

于 2012-10-19T14:03:44.557 に答える