Skip to content
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

use 2d camera instead of 3d one #4

Closed
adsick opened this issue Apr 30, 2023 · 5 comments
Closed

use 2d camera instead of 3d one #4

adsick opened this issue Apr 30, 2023 · 5 comments

Comments

@adsick
Copy link
Contributor

adsick commented Apr 30, 2023

I'm not sure why this crate uses 3d camera, the content is all 2d. Camera 2d has OrthographicProjection component which has scale, it is what you want instead of adjusting z coordinate (unless you actually want images to float in 3d space)

useful: bevyengine/bevy#2580

P.S. beware of this issue: bevyengine/bevy#239

@AllenDang
Copy link
Owner

Will 2d has better performance?

@adsick
Copy link
Contributor Author

adsick commented May 1, 2023

It may not perform better, but it makes more sense, and (hopefully) is simpler to work with.

@piaoger
Copy link

piaoger commented May 4, 2023

float in 3d space

I just tried modify the camera to iso view when I known it's 3d camera. Image can have different coordinates and it looks interesting .

@AllenDang
Copy link
Owner

for me, 3d is more familiar, :)

@AllenDang
Copy link
Owner

change to use ortho camera, the distortion should be fixed now.

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

No branches or pull requests

3 participants