Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLY list of indices for face is not supported? #302

Open
ComicAddict opened this issue Aug 7, 2024 · 4 comments
Open

PLY list of indices for face is not supported? #302

ComicAddict opened this issue Aug 7, 2024 · 4 comments

Comments

@ComicAddict
Copy link

When a PLY file with list of vertex indices as for defining a face is fed for the online demo I get the following error:

image

The header of the file is the following:

ply
format binary_little_endian 1.0
element vertex 10
property double x
property double y
property double z
property uchar r
property uchar g
property uchar b
element edge 2
property int vertex1
property int vertex2
property double w1
property double w2
element face 10
property list int int vertex_index
property uchar red
property uchar green
property uchar blue
property double v
end_header

Same file can is readable with both Blender and MeshLab.

@slimbuck
Copy link
Member

slimbuck commented Aug 7, 2024

Hi @ComicAddict ,

Model-viewer currently supports PLY files containing 3d gaussian splatting scenes only.

For models we generally rely on glb/gltf.

May I ask why you're using PLY for meshes? We've not had a request to support PLY meshes before.

Thanks!

@ComicAddict
Copy link
Author

Hi @slimbuck ,

I was checking out all the possible PLY viewers to see if there are some tools that can view the custom attributes. I have PLY files with custom per vertex, per face and per edge information. Are there any other file format that can support per face and per edge custom data?

@ComicAddict ComicAddict changed the title list of indices for face is not supported? PLY list of indices for face is not supported? Aug 7, 2024
@slimbuck
Copy link
Member

slimbuck commented Aug 7, 2024

Yes PLY is perfect for custom data and the only format I know of that supports this.

How would you expect the viewer to display the custom data? Show the values in a table or actually render the data on the 3d viewport?

@ComicAddict
Copy link
Author

Overlaying text on top of the geometric element(vertex, edge, face) like how Blender is doing with geometry node viewer node:
image

but if the dimensions of data is known we can display them as colours and choose which attribute to view at the moment with UI elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants