-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Separate Model and View Matrices. #6761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this so far! I left some comments where it seems like the behaviour we had before wouldn't be completely the same afterwards -- normally when we reset uMVMatrix
to just the camera matrix in the past, now that means we have to reset the model matrix and set the view matrix to the camera matrix.
This reverts commit 7267e59.
…into model-view
Looks like tests are failing because: It seems like it's because of this line still setting Lines 1393 to 1395 in 2ceca4e
Might be worth searching in the repo for |
@davepagurek I made a few changes, please let me know if they make sense.. |
Looks like tests are still failing because it still tries to set Line 1394 in f5baf36
Maybe try searching this file to make sure it doesn't reference
I think the camera matrices are OK as is! I think your code is making the right changes already, so it's just a matter of finding any bits that we missed where we need to apply the same pattern. |
Made these changes, please have a look.. |
Hi @davepagurek! I tried updating a few other tests, please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your continued work on this! I noticed a few more things that might be throwing the tests off, let's see if those changes get the tests passing.
Should we update the matrix here also? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're almost done! We only have a few tests still failing, and I think the suggestions I've left will hopefully be enough to resolve them.
Ah yes good catch, I think so! |
Hi @davepagurek! Sorry for the delay. I have made these changes and the tests do no fail anymore. Are any more updates required? |
Sorry for the delay! I think it's looking good now. We're just finishing up the p5.js website redesign (the source of the delays in my reviews 😅) and will probably be doing another quick release just to push out more documentation updates. After that, we'll be back in a more normal release schedule, including a beta release to do further testing in case we've missed anything from the tests. So I'll merge this in after that little release! |
Sure @davepagurek! Looking forward!🎉 |
Thank you all. @davepagurek, are we good to merge this? |
good to go if we've done our last docs deploy! |
Just to clarify, do you mean the updating all the reference doc? @davepagurek |
right, mostly we were just waiting to put this into a release where we would be able to have a standard beta testing period to catch any bugs. if we're going to be back into a regular release cadence again then this is good to merge! |
@all-contributors please add @deveshidwivedi for code |
@deveshidwivedi already contributed before to code |
Resolves #5287
Changes:
Introduced a distinct
modelMatrix
. By separating these matrices (modelViewMatrix
), it would become easier to manipulate each aspect of the transformation independently, allowing for more flexibility especially when working with shaders.PR Checklist
npm run lint
passes