-
Notifications
You must be signed in to change notification settings - Fork 343
Camera Touchups for arcade 3.0RC1 #2094
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
Merged
eruvanos
merged 42 commits into
pythonarcade:development
from
DragonMoffon:camera-touchups
May 28, 2024
Merged
Camera Touchups for arcade 3.0RC1 #2094
eruvanos
merged 42 commits into
pythonarcade:development
from
DragonMoffon:camera-touchups
May 28, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Add docstrings for Projector, Projector.use, and Project.activate * Add docstring for Projection Protocol * Move PerspectiveProjector.activate onto Projector protocol & subclass * Replace Orthographic Projector's activate with Protocol default implementation
sadly it is harder to make generic than anticipated
…they can be reliably updated when viewport is changed
also fix bug in static camera methods
Also added method to quickly test if a point is inside the camera2d's view..
DigiDuncan
approved these changes
May 26, 2024
* Fix list-table syntax with newlines * Fix external intersphinx context manager cross-reference
DigiDuncan
reviewed
May 27, 2024
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.
Dragon in the Discord requested we wait to merge this since they found a bug.
Solved!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Full change list:
Camera2D
to arcade's top level now that its__init__
has been fixedStaticCamera
, which holds view and projection matrices directly for manual/temporary camerasCamera2D
for key points around the visible boundaryCamera2D
to quickly test if a point is visibleArcadeContext
so the default camera better behaves with framebuffers, and changing viewportsmap_screen_to_world_coordinate
, useunproject
instead.Window.viewport
now returns the screen's viewport, not the currently active viewport.Camera2D
is now optionalCamera2D
activating the render target twice inCamera2D.activate
Camera2D
ignoring the viewport when initialising with a RenderTarget