-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Add QuadMesh back as a subclass of PlaneMesh. #65918
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.
Uses the is-a relationship. 👍
You should also remove the compat mapping:
BTW I noticed two typos worth fixing in "behavior" on this line (en_US spelling + actual typo):
|
Owh, this is a nice way of dealing with this. Totally see how people are used to using QuadMesh for billboards and screen aligned stuff, while PlaneMesh is usually associated with creating a floor (heightmap). So the difference in default orientation in an otherwise identical implementation is a quality of life improvement. Subclassing solves that nicely. |
This simplifies the creation of billboarded meshes without any code overhead.
@akien-mga updated! As a side, typing "behavior" physically hurts me. But it certainly beats "behvaiour" |
Thanks! |
Fixes: #65186
In #64801 we removed the QuadMesh in favour of PlaneMesh. However, this has led to confusion for many users as the button is suddenly gone. Even for users who were aware of the change, the extra steps to get a screen-aligned quad are seen as annoying. Changing the default orientation of PlaneMesh is not a good option as some users prefer it stay the way it is.
Overall, our goal behind #64801 was to remove code overhead and to bring features from PlaneMesh over to QuadMesh (namely subdivision and center). I believe this is achieved by exposing QuadMesh as a subclass of PlaneMesh. QuadMesh will still have all the features of PlaneMesh without us having to maintain two separate classes.
cc @QbieShay @RPicster @BastiaanOlij