Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
[fixed] Couldn't reproduce at importing completely an .obj file that has vertex color
11-02-2018, 10:47 AM
Post: #7
RE: Couldn't reproduce at importing completely an "obj" file that has vertex...
ggaliens,dgud,Thank you for clarifying the circumstances.
I compiled the old wpc_ply module which originally existed in Wings3D, but it didn't work well surely.

Next, I thought of using the ply importer of the Manifoldlab version.
(I tried run wings3d_v2.0.0.2018-01-15---10-41.mlab by WINE on my Mac,but failed
So I put install into copy of wpc_ply.beam file in directly from Manifoldab version)

And,I got ply files distributed on the internet and a ply format file from some 3D softwares.
Although two problems occurred, I was able to edit the ply data and explore the cause.

In the header of ply format file,there are known as described as follows.
  • property uchar int vertex_index
  • property uchar int vertex_indices <-- Manifoldlab ply importer only support this type.


Originally "vertex_indices" is correct, but the file of "vertex_index" is already circulating in the world.
However both of Goxel and Magicavoxel export ply file that using "vertex_index" keyword Sad

FYI:
http://www.pcl-users.org/PLY-Header-Conf...35755.html
https://github.com/PointCloudLibrary/pcl/pull/579

Also, even if there is no WHITESPACE in each line's end of the vertex lists, reading fails.

correct
Code:
-11.0 7.80000 0.00 255 255 255
1 2 3 4
0 4 5 6
:
incorrect (import failed)
Code:
-11.0 7.80000 0.00 255 255 255
1 2 3 4
0 4 5 6
:

So I edited the ply file data manually and it was readable with ply importer.
(Ply mesh imoporting is OK,but I couldn't make sure the reproduction of the vertex color yet.)
If Manifoldlab ply importer can accommodate these differences, there will be more ply files that can be read.
I hope this can be used by default on Wings 3D.

I will continue to the test of importing/exporting ply file. Smile
Reply


Messages In This Thread
RE: Couldn't reproduce at importing completely an "obj" file that has vertex... - tkbd - 11-02-2018 10:47 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)