Skip to content

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