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

Gutter helper #1

Open
walbourn opened this issue Jun 18, 2015 · 2 comments
Open

Gutter helper #1

walbourn opened this issue Jun 18, 2015 · 2 comments
Assignees

Comments

@walbourn
Copy link
Member

walbourn commented Jun 18, 2015

The function ID3DXTextureGutterHelper is not required, but can be useful for UVAtlas. It is not currently implemented as part of DirectXTex or DirectXMesh, and like UVAtlas itself combines elements of texture and mesh processing.

This could be useful functionality to consider adding to the library.

ID3DXTextureGutterHelper.ResampleTex was added in the DirectX SDK (August 2005) release.

This is required to implement the /rt switch for the uvatlas sample.

@xyzr0482
Copy link

Yes, I need ID3DXTextureGutterHelper.ResampleTex, when it will be added?

@walbourn
Copy link
Member Author

walbourn commented Nov 5, 2022

The original UVAtlas sample switches here:

  • /rt file Resamples a texture using the new UVAtlas parameterization. The resampled texture is saved to a filename with "_resampled" appended. Defaults to reading old texture parameterization from D3DDECLUSAGE_TEXCOORD[0] in original mesh. Use /rtu and /rti to override this.

  • /rtu usage Specifies the vertex data usage for texture resampling. It must be one of NORMAL, POSITION, COLOR, TEXCOORD, TANGENT, or BINORMAL. TEXCOORD

  • /rti int Specifies the usage index for texture resampling. 0

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

No branches or pull requests

2 participants