-
Notifications
You must be signed in to change notification settings - Fork 44
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
Camera translations #46
Comments
Hey, thanks for this! Is the standard methods worldToScreen/screenToWorld not working when resolution is above 1? |
Yes, the standard methods works only for resolution 1, that's why I am sending you the solution. The easiest way to replicate the bug is to zoom in/out the page - this makes the pixi renderer change its resolution, so try it. |
I included your fixes in the dev branch, please check if this resolves the issues you had with it. Could you please give some more details about PostProcessingSprite? The only thing happening in prerender is that the PPS is being resized (but only if you didn't provide a size yourself) - by default it want to be fullscreen. It could be an issue though that it's not resizing to correct resolution if above 1. |
Would be great help if you could reproduce these issues in a simple example. |
And about PPS, if you give it a width and height where the aspect ratio differs from the camera aspect ratio it will look wrong. The objects rendered to the PPS need to use a camera which have the same aspect ratio as the PPS. This is handled automatically if you don’t give it a width and height. |
Yep, my bad about the PPS width and height, thank you for the clarification. |
I created a PR which should fix the issues: djlastnight/Pixi3DCameraTests#1 |
Thank you, it is merged, I will test it when I go back to home. |
I guess we could close this now, thank you again ;) |
Hey, thank you for this extremely cool api. After 5 days head banging, I found that I need to take into account the pixi's renderer resolution in order to make the camera coord conversion to work as it should.
Here are the wrapped methods (I am not sure 100% about the z values, because I do not need z at all in my app).
I hope this helps and it will save time to someone using your api.
Thanks,
Ivan
The text was updated successfully, but these errors were encountered: