iOS场景套件显示具有顶点颜色的层模型

时间:2016-08-12 23:59:26

标签: ios scenekit ply-file-format

我有这个iOS应用程序正在尝试使用iOS Scene Kit显示3D模型。

ply 3d模型显示没有颜色属性(r,g,b,a)

但是,添加一些颜色属性后,Scene Kit会出现一个错误:无法识别的类型'uchar'

如果我们改变属性的类型会有用吗?或者只是因为SceneKit不能显示顶点颜色?

如果有人能说清楚,那真的很感激

我已附上以下的PLY文件

ply
format ascii 1.0
comment VCGLIB generated
element vertex 92869
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
property uchar alpha
element face 184532
property list uchar int vertex_indices
end_header
-3.79316 -2.28398 0 255 255 255 255 
-3.78155 -2.28398 0 255 255 255 255 
-3.76995 -2.28398 0 255 255 255 255 
-3.75834 -2.28398 0 255 255 255 255 
-3.74674 -2.28398 0 255 255 255 255 
-3.73513 -2.28398 0 255 255 255 255 
-3.72352 -2.28398 0 255 255 255 255 
-3.71192 -2.28398 0 255 255 255 255 
-3.70031 -2.28398 0 255 255 255 255 

0 个答案:

没有答案