【问题标题】:isgl3d sphere not rendered completelyisgl3d 球体未完全渲染
【发布时间】:2012-10-04 07:47:17
【问题描述】:

尝试使用 isgl3d 渲染球体。问题是只有 75% 的球体正在被渲染。

代码如下:

[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];

【问题讨论】:

    标签: isgl3d


    【解决方案1】:

    请检查图片尺寸。我认为应该是32x3264X64128x128256x256。通过更改图像大小,您也许可以解决问题。

    【讨论】:

      猜你喜欢
      • 2014-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-09
      相关资源
      最近更新 更多