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

Implement tangent computation for OBJ loading #267

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

GrantMoyer
Copy link

Issue #266

I went ahead and implemented indiscriminate tangent computation during OBJ file loading. I should be relatively straightforward to convert it to one of the other options mention in the issue if that's desirable.

@GrantMoyer
Copy link
Author

This effectively loads per face tangents, since it computes tangents per tri without respect to neighboring tri's. The most straightforward way to compute per vertex tangents probably involves implementing proper indexing instead of duplicating shared vertices.

@GrantMoyer
Copy link
Author

Okay, this should now compute per vertex tangents. They should still probably be weighted by face area or some other method.

@fu5ha
Copy link
Member

fu5ha commented Feb 9, 2020 via email

@GrantMoyer
Copy link
Author

Thanks for the pointer. I was surprised how non-standardized tangent space computation was when I looked into it. I'm marking this ready for review now.

@GrantMoyer GrantMoyer marked this pull request as ready for review February 10, 2020 02:16
@GrantMoyer
Copy link
Author

Is there anything blocking this that I could fix or help with?

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

Successfully merging this pull request may close these issues.

2 participants