2012-10-04 2 views
0

isgl3d를 사용하여 구를 렌더링하려고합니다. 문제는 구의 75 % 만 렌더링된다는 것입니다.isgl3d 구가 완전히 렌더링되지 않음

여기에 코드입니다 :

[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

이미지 크기를 확인하시기 바랍니다. 나는 그것이 32x32, 64X64, 128x128 또는 256x256이어야한다고 생각합니다. 이미지 크기를 변경하면 문제를 해결할 수 있습니다.

+0

그 트릭을했습니다. 고마워요! – Anil

관련 문제