zoom doesnt work on orthographic camera, while OpenGL projection is 3D #2258
Unanswered
10100010010001001010
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Are you able to provide a minimal test case, screenshot or video of what it is you are seeing, and what it is you expect to see?
Do you mean culling? |
Beta Was this translation helpful? Give feedback.
4 replies
-
have you tried calling setZoom on the camera object? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is how I create my camera, and it does not apply the specified zoom, until I do this thing in my init scene function:
_director->setProjection(ax::Director::Projection::_2D);
I want to know if this is how I should do it, or if this is a bug in the engine code ? (or maybe I made a mistake somewhere )
As for the standard camera, when you increase the zoom, the culling starts to work incorrectly, and standard sprites are cut off before they disappear from the screen, while spine elements are displayed correctly.
Beta Was this translation helpful? Give feedback.
All reactions