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

texture rendering artifact #44

Closed
shinxg opened this issue Sep 23, 2019 · 2 comments
Closed

texture rendering artifact #44

shinxg opened this issue Sep 23, 2019 · 2 comments

Comments

@shinxg
Copy link

shinxg commented Sep 23, 2019

Thanks @pmh47 for releasing the code. I have tried some demos using my own data. Some artifact appeared when I testedsamples/textured.py.
image
I have modified the code slightly(just the input part). Here are the code and data.
Could you please explain what causes such blemish? Really appreciate your help!

@pmh47
Copy link
Owner

pmh47 commented Sep 23, 2019

OBJ files have vertex indices starting at one, but DIRT assumes they start at zero. Change line 70 of your code to cube_faces = F.astype(np.int64) - 1 and it works fine.

@shinxg
Copy link
Author

shinxg commented Sep 23, 2019

OBJ files have vertex indices starting at one, but DIRT assumes they start at zero. Change line 70 of your code to cube_faces = F.astype(np.int64) - 1 and it works fine.

Fool me. Thanks for the quick and accurate reply!

@pmh47 pmh47 closed this as completed Sep 23, 2019
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