-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
added texture mode on load_obj #1886
base: main
Are you sure you want to change the base?
Conversation
ShapeNetCore throws error texture UV coordinates are outside the range [0,1], this fixes it by clamping it with the clamp texture mode.
I think you need to pass And did you actually run the code and see success? |
Thanks, I fixed the issues you mentioned, it should run fine now. |
"it should run fine now" - please actually check. Does it fix a problem that you have been experiencing - i.e. can you load a model now which you couldn't before? Perhaps you can paste an image of what you now get? In particular, clamping may not actually do the right thing for any shapenet models. |
And while adding a new option is not dangerous, changing the default is. I think you really want a much more restricted change here. |
Thanks, sorry about not providing snippets and detailed report on the commit. The following error was showing up persistently alongside the regular warnings while I was loading the items on the shapenetcore dataset. Clamping the textures fixed the issue of the texture coordinates in shapenet being outside the range of [0,1]. best, |
But we need to know that this is the right fix, and that will take more investigation. I think coordinates might need to wrap around, which might mean we want to use the new multi-map option for TexturesUV. |
ShapeNetCore throws error texture UV coordinates are outside the range [0,1], this fixes it by clamping it with the clamp texture mode.