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

How to use the new texture coordinates (UV) generated by UVAtlas to render the 3D object? #90

Open
gyxiaochina opened this issue Dec 12, 2022 · 3 comments
Labels

Comments

@gyxiaochina
Copy link

I can use UVAtlas to generate the new texture coordinates (vt lines in the output obj file). I am also able to stretch certain areas of the triangular mesh by specifying corresponding IMT data, and I can see the desired effect by visualizing the _texture.obj. Now I would like to render the 3D mesh using the new UVs. I wonder how I could achieve that.

I noticed some people mentioned using ResampleTex. For example, I found a very old post here: how to use UVAtlas, but it did not elaborate. I also read the MS official doc ResampleTex, but still could not figure out what exactly I should do next. (Actually, I did not find much info after googling "ResampleTex". )

Can some one please give me some hint? Thank you very much!

@walbourn
Copy link
Member

walbourn commented Jan 8, 2023

ResampleTex is the gutter helper.

@gyxiaochina
Copy link
Author

Thank you for your reply. Yes, I did previously find that previous issue about gutter helper. But I am afraid that I do not quite understand your comment in Nov 2022. In particular, can you please let me know what exactly is "the original UVAtlas sample"? Is it some legacy code in another repo somewhere?

@walbourn
Copy link
Member

walbourn commented Jan 9, 2023

The gutter helper is currently only available in the legacy D3DX9 library which is on NuGet. I would like at some point to extract it and make it open source, which was the issue I linked.

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

No branches or pull requests

2 participants