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

create sementic maps #28

Open
leyuan-sun opened this issue Sep 5, 2023 · 2 comments
Open

create sementic maps #28

leyuan-sun opened this issue Sep 5, 2023 · 2 comments

Comments

@leyuan-sun
Copy link

p1 = ply_data["vertex"][vids[0]]
p1 = [p1[0], p1[2], -p1[1]]
p2 = ply_data["vertex"][vids[1]]
p2 = [p2[0], p2[2], -p2[1]]
p3 = ply_data["vertex"][vids[2]]
p3 = [p3[0], p3[2], -p3[1]]
obj_id_to_faces[obj_id].append([p1, p2, p3])

could you plz explain why you change the vertex order in semantic.ply file to [x z -y] for all objects?

@srama2512
Copy link
Owner

The coordinate convention from the PLY file does not match habitat's. This transformation will convert it to habitat's format.

@leyuan-sun
Copy link
Author

I see, since I am converting the obj file generated by 3D scene graph annotations, I found out that the vertex position is different between semantic.ply and .obj file (from 3D scene graph), do you know why? But the visualization of .ply and .obj looks same. Besides, could you let me know where is the definition of habitat's format. Thanks!!!

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