使用widthSegmentCount属性修复锐利的几何对象

时间:2015-07-02 17:21:59

标签: ios geometry blender scenekit

是否可以将 widthSegmentCount (或高度或倒角)指定给在Blender中创建的自定义几何对象。导入到SceneKit时,我的几何图形非常清晰。但它在Blender看起来很棒。图中描绘了清晰度。

enter image description here

enter image description here

对象正在移动,因此将 enableJittering 设置为true无效。

我尝试使用此代码,因为我的对象基本上是一个框:

let box = boxNode.geometry as! SCNBox
box.widthSegmentCount = 150
box.heightSegmentCount = 150
box.chamferSegmentCount = 150

我收到错误:主题1:信号SIGABRT

这是最好的SceneKit可以做或者我需要以不同的方式从Blender导出我的对象吗?

1 个答案:

答案 0 :(得分:2)

这与网格的质量无关。您只是看到没有平滑的单个像素。 $(document).keypress(function (me) { // this function generates the inside one return function (event) { // this is the function used as the handler if (event.which === 109) { me.highlightKeyboard(scale, scale_classes); } }; }(this)); // passing in `this` as param `me` 公开SCNView属性,可帮助您获得更顺畅的边缘(尝试antialiasingMode.Multisampling2X)。