{"action":"closed","issue":{"url":"https://api.github.com/repos/assimp/assimp/issues/987","repository_url":"https://api.github.com/repos/assimp/assimp","labels_url":"https://api.github.com/repos/assimp/assimp/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/assimp/assimp/issues/987/comments","events_url":"https://api.github.com/repos/assimp/assimp/issues/987/events","html_url":"https://github.com/assimp/assimp/issues/987","id":172062050,"number":987,"title":"Couldn't read color information in PLY file","user":{"login":"DolphinSong","id":15042687,"avatar_url":"https://avatars.githubusercontent.com/u/15042687?v=3","gravatar_id":"","url":"https://api.github.com/users/DolphinSong","html_url":"https://github.com/DolphinSong","followers_url":"https://api.github.com/users/DolphinSong/followers","following_url":"https://api.github.com/users/DolphinSong/following{/other_user}","gists_url":"https://api.github.com/users/DolphinSong/gists{/gist_id}","starred_url":"https://api.github.com/users/DolphinSong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolphinSong/subscriptions","organizations_url":"https://api.github.com/users/DolphinSong/orgs","repos_url":"https://api.github.com/users/DolphinSong/repos","events_url":"https://api.github.com/users/DolphinSong/events{/privacy}","received_events_url":"https://api.github.com/users/DolphinSong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T06:15:18Z","updated_at":"2016-08-23T05:54:22Z","closed_at":"2016-08-23T05:54:22Z","body":"Hi All,\r\n\r\nI'm using the assimp3.0 on windows with OpenGL.  I tried to load and display a ply model by following lines:\r\n`Assimp::Importer importer;`\r\n`const aiScene* scene = NULL;`\r\n`scene = importer.ReadFile('filename', 0);`\r\nI built the vertex buffer with `scene->mMeshes[0]->mVertices` and color buffer with `scene->mMeshes[0]->mColors`\r\nHowever, when I debug the code, only `scene->mMeshes[0]->mColors[0]` got the colors, `scene->mMeshes[0]->mColors[1]` and the following elements remains to be NULL\r\nfollowing is a short ply example I I wrote:\r\n\r\nply\r\nformat ascii 1.0\r\ncomment VCGLIB generated\r\nelement vertex 3\r\nproperty float x\r\nproperty float y\r\nproperty float z\r\nproperty uchar red\r\nproperty uchar green\r\nproperty uchar blue\r\nproperty uchar alpha\r\nelement face 1\r\nproperty list uchar int vertex_indices\r\nend_header\r\n0.0 0.0 0.0 219 227 248 255\r\n1.0 0.0 0.0 220 230 212 255\r\n2.0 0.0 2.0 160 122 221 255\r\n3 0 1 2\r\n\r\nI'm currently wondering if it was caused by the wrong pFlags parameter of importer.ReadFile(pFile,pFlags).\r\nCan anyone help me figure out where I went wrong."}}
{"actor":{"display_login":"DolphinSong"}}