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

Add Wrap::UDIM mode for proper UDIM filtering #4563

Open
etheory opened this issue Dec 15, 2024 · 0 comments
Open

Add Wrap::UDIM mode for proper UDIM filtering #4563

etheory opened this issue Dec 15, 2024 · 0 comments
Labels
feature request texture / image cache ImageCache, TextureSystem, maketx

Comments

@etheory
Copy link
Contributor

etheory commented Dec 15, 2024

Currently, the wrap modes for textures are (https://openimageio.readthedocs.io/en/latest/texturesys.html):

  • Wrap::Black
  • Wrap::Clamp
  • Wrap::Periodic
  • Wrap::Mirror
  • Wrap::Default

But when using UDIM textures, what you really want, is filtering across UDIM seams, else, at low mip map levels, you get strange artifacts at UDIM edges.
So I would like to propose a new Wrap mode called Wrap::UDIM that implements such filtering.

I also propose to update maketx to support this new mode somehow (new command line argument?), such that during the mip-map generation, it also performs this cross-UDIM tile filtering also.

What do people think?

I further propose that "Wrap::Default" use "Wrap::UDIM" when passed one of the UDIM-specific path types.

If you think this is a good idea, are you OK with me going ahead and proposing an implementation and making a PR?

@lgritz? Thanks.

Does this already exist and I'm missing it?

@etheory etheory assigned etheory and unassigned etheory Dec 15, 2024
@etheory etheory added texture / image cache ImageCache, TextureSystem, maketx feature request labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request texture / image cache ImageCache, TextureSystem, maketx
Projects
None yet
Development

No branches or pull requests

1 participant