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

Non-exclusive UV-vertex correspondence #11

Closed
XiaodongGuan opened this issue Jan 1, 2022 · 1 comment
Closed

Non-exclusive UV-vertex correspondence #11

XiaodongGuan opened this issue Jan 1, 2022 · 1 comment

Comments

@XiaodongGuan
Copy link

XiaodongGuan commented Jan 1, 2022

Hello, in the template_mesh_uv.obj, there are five vertices are registered on the UV positions that have been occupied by other vertices, i.e. there are five pairs of UV points having identical coordinates. I think the UV positional map should exhibit an exclusive vertex-UVcoords relationship. How do you process this redundancy to generate the positional map properly?

@qianlim
Copy link
Owner

qianlim commented Jan 4, 2022

Hi, yes this is acceptable. In the uv mesh, each 'vt' is the image-plane coordinate; in an uv map with a large enough resolution (let's say infinite), each vt should be mapped to a unique pixel; however with a more practical resolution (128, 256 etc), it can happen that the coordinate of a vertex is not an integer, and hence rounded to its nearest integer coordinate. So there are cases where many vertices are mapped to the same pixel.

@qianlim qianlim closed this as completed Jan 4, 2022
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