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

iOS场景套件显示具有顶点颜色的层模型,ios,scenekit,ply-file-format,Ios,Scenekit,Ply File Format,我有一个iOS应用程序,它试图用iOS场景工具包显示3d模型 ply 3d模型显示良好,没有颜色属性(r、g、b、a) 但是,在添加一些颜色属性后,场景工具包会出现一个错误,称为:无法识别的类型“uchar” 如果我们更改属性的类型,它会起作用吗?或者只是因为SceneKit无法显示顶点颜色 如果有人能透露一些情况,我会非常感激的 我已附上下面的PLY文件 ply format ascii 1.0 comment VCGLIB generated element vertex 92869 pro

我有一个iOS应用程序,它试图用iOS场景工具包显示3d模型

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

但是,在添加一些颜色属性后,场景工具包会出现一个错误,称为:无法识别的类型“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