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

Display Triangle on Texture UVs #3156

Closed
Raildex opened this issue Nov 30, 2023 · 1 comment
Closed

Display Triangle on Texture UVs #3156

Raildex opened this issue Nov 30, 2023 · 1 comment

Comments

@Raildex
Copy link

Raildex commented Nov 30, 2023

Description

In the Mesh Viewer, we can inspect a mesh pre and post Vertex Shader.
It also neatly displays all attributes in a table.
I would like to have the ability to select vertices and have it's UVs displayed over a texture.
image
image

This would help debugging texture coordinates a lot.

Environment

  • RenderDoc version: 1.29
  • Operating System: Windows 11 x64
  • Graphics API: D3D11
@baldurk
Copy link
Owner

baldurk commented Nov 30, 2023

This is something that I do not intend to support due to the difficulties in mapping a vertex attribute or output to the actual sampled UVs (as they're not guaranteed to be used unchanged) as well as the extra burden and complexity required in building a UI to map between a given element in the mesh viewer and a given texture since it's not guaranteed that there's only one texture or indeed one set of texture co-ordinates.

For this kind of case you can select the attribute and display it as position, to view the texture co-ordinates in UV space. This is still local to the mesh-viewer and doesn't display it overlayed on the texture but is more useful in visualising texture co-ordinates:

texture co-ordinates rendered in UV space

@baldurk baldurk closed this as completed Nov 30, 2023
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